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.
|
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 . |
SQLTypeInfo |
getTypeInfo()
Accessor for the (SQL) type info for this datastore type.
|
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, hashCode, includeInFetchStatement, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString
public 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()
AbstractDatastoreMapping
getInsertionInputParameter
in class AbstractDatastoreMapping
AbstractDatastoreMapping.getInsertionInputParameter()
public boolean insertValuesOnInsert()
insertValuesOnInsert
in class AbstractDatastoreMapping
public Object getObject(ResultSet rs, int param)
getObject
in interface DatastoreMapping
getObject
in class AbstractDatastoreMapping
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)
DatastoreMapping
resultSet
at position specified by exprIndex
.getString
in interface DatastoreMapping
getString
in class AbstractDatastoreMapping
resultSet
- ResultSetexprIndex
- the position of the value in the resultAbstractDatastoreMapping.getString(ResultSet, int)
public SQLTypeInfo getTypeInfo()
AbstractDatastoreMapping
getTypeInfo
in class AbstractDatastoreMapping
AbstractDatastoreMapping.getTypeInfo()
public String getUpdateInputParameter()
AbstractDatastoreMapping
getUpdateInputParameter
in class AbstractDatastoreMapping
AbstractDatastoreMapping.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 UPDATEand 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 © 2015. All rights reserved.