public class OracleBlobColumnMapping extends AbstractColumnMapping
column, mapping, storeMgr
Modifier | Constructor and Description |
---|---|
|
OracleBlobColumnMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
protected |
OracleBlobColumnMapping(RDBMSStoreManager storeMgr,
JavaTypeMapping mapping)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field.
|
int |
getJDBCType()
Method to return the java.sql.Types type that this relates to.
|
Object |
getObject(ResultSet rs,
int param)
Returns the object to be loaded from the Orale BLOB.
|
String |
getString(ResultSet resultSet,
int exprIndex)
Obtains a value from
resultSet
at position specified by exprIndex . |
String |
getUpdateInputParameter()
Accessor for the string to put in any update datastore statements for this field.
|
boolean |
includeInSQLFetchStatement()
Whether to include this mapping in a fetch statement.
|
boolean |
insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT.
|
static void |
updateBlobColumn(org.datanucleus.state.ObjectProvider op,
Table table,
ColumnMapping mapping,
byte[] bytes)
Convenience method to update the contents of a BLOB column.
|
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, hashCode, includeInFetchStatement, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString, useDefaultWhenNull
public OracleBlobColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping
- The Java mappingstoreMgr
- Store Manager in usecol
- Columnprotected OracleBlobColumnMapping(RDBMSStoreManager storeMgr, JavaTypeMapping mapping)
storeMgr
- Store Managermapping
- The Java mappingpublic String getInsertionInputParameter()
AbstractColumnMapping
getInsertionInputParameter
in interface ColumnMapping
getInsertionInputParameter
in class AbstractColumnMapping
AbstractColumnMapping.getInsertionInputParameter()
public boolean insertValuesOnInsert()
insertValuesOnInsert
in interface ColumnMapping
insertValuesOnInsert
in class AbstractColumnMapping
public Object getObject(ResultSet rs, int param)
getObject
in interface ColumnMapping
getObject
in class AbstractColumnMapping
rs
- the ResultSet from the queryparam
- the index in the queryorg.datanucleus.exceptions.NucleusDataStoreException
- Thrown if an error occurs in datastore communicationpublic String getString(ResultSet resultSet, int exprIndex)
ColumnMapping
resultSet
at position specified by exprIndex
.getString
in interface ColumnMapping
getString
in class AbstractColumnMapping
resultSet
- ResultSetexprIndex
- the position of the value in the resultAbstractColumnMapping.getString(ResultSet, int)
public int getJDBCType()
AbstractColumnMapping
getJDBCType
in class AbstractColumnMapping
public String getUpdateInputParameter()
AbstractColumnMapping
getUpdateInputParameter
in interface ColumnMapping
getUpdateInputParameter
in class AbstractColumnMapping
AbstractColumnMapping.getUpdateInputParameter()
public boolean includeInSQLFetchStatement()
public static void updateBlobColumn(org.datanucleus.state.ObjectProvider op, Table table, ColumnMapping mapping, byte[] bytes)
SELECT {blobColumn} FROM TABLE WHERE ID=? FOR UPDATEand then updates the Blob value returned.
op
- ObjectProvider of the objecttable
- Table storing the BLOB columnmapping
- Datastore mapping for the BLOB columnbytes
- The bytes to store in the BLOBorg.datanucleus.exceptions.NucleusObjectNotFoundException
- thrown if an object isnt foundorg.datanucleus.exceptions.NucleusDataStoreException
- thrown if an error occurs in datastore communicationCopyright © 2020. All rights reserved.