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, useDefaultWhenNullpublic 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()
AbstractColumnMappinggetInsertionInputParameter in interface ColumnMappinggetInsertionInputParameter in class AbstractColumnMappingAbstractColumnMapping.getInsertionInputParameter()public boolean insertValuesOnInsert()
insertValuesOnInsert in interface ColumnMappinginsertValuesOnInsert in class AbstractColumnMappingpublic Object getObject(ResultSet rs, int param)
getObject in interface ColumnMappinggetObject in class AbstractColumnMappingrs - 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)
ColumnMappingresultSet
at position specified by exprIndex.getString in interface ColumnMappinggetString in class AbstractColumnMappingresultSet - ResultSetexprIndex - the position of the value in the resultAbstractColumnMapping.getString(ResultSet, int)public int getJDBCType()
AbstractColumnMappinggetJDBCType in class AbstractColumnMappingpublic String getUpdateInputParameter()
AbstractColumnMappinggetUpdateInputParameter in interface ColumnMappinggetUpdateInputParameter in class AbstractColumnMappingAbstractColumnMapping.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 UPDATE
and 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.