public class OracleBlobRDBMSMapping extends AbstractDatastoreMapping
column, mapping, storeMgr| Modifier | Constructor and Description |
|---|---|
|
OracleBlobRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col)
Constructor.
|
protected |
OracleBlobRDBMSMapping(RDBMSStoreManager storeMgr,
JavaTypeMapping mapping)
Creates a OracleBlobRDBMSMapping
|
| 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 sm,
Table table,
DatastoreMapping 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, setStringpublic OracleBlobRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
mapping - The Java mappingstoreMgr - Store Manager in usecol - Columnprotected OracleBlobRDBMSMapping(RDBMSStoreManager storeMgr, JavaTypeMapping mapping)
storeMgr - Store Managermapping - The Java mappingpublic String getInsertionInputParameter()
AbstractDatastoreMappinggetInsertionInputParameter in class AbstractDatastoreMappingAbstractDatastoreMapping.getInsertionInputParameter()public boolean insertValuesOnInsert()
insertValuesOnInsert in class AbstractDatastoreMappingpublic Object getObject(ResultSet rs, int param)
getObject in interface DatastoreMappinggetObject in class AbstractDatastoreMappingrs - 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)
DatastoreMappingresultSet
at position specified by exprIndex.getString in interface DatastoreMappinggetString in class AbstractDatastoreMappingresultSet - ResultSetexprIndex - the position of the value in the resultAbstractDatastoreMapping.getString(ResultSet, int)public int getJDBCType()
AbstractDatastoreMappinggetJDBCType in class AbstractDatastoreMappingpublic String getUpdateInputParameter()
AbstractDatastoreMappinggetUpdateInputParameter in class AbstractDatastoreMappingAbstractDatastoreMapping.getUpdateInputParameter()public boolean includeInSQLFetchStatement()
public static void updateBlobColumn(org.datanucleus.state.ObjectProvider sm,
Table table,
DatastoreMapping mapping,
byte[] bytes)
SELECT {blobColumn} FROM TABLE WHERE ID=? FOR UPDATE
and then updates the Blob value returned.sm - 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 © 2017. All rights reserved.