|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
org.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.oracle.OracleBlobRDBMSMapping
public class OracleBlobRDBMSMapping
Maps a Field to an Oracle BLOB.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
column, LOCALISER_RDBMS, storeMgr |
| Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
LOCALISER, mapping |
| Constructor Summary | |
|---|---|
|
OracleBlobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
Constructor. |
protected |
OracleBlobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Creates a OracleBlobRDBMSMapping |
| Method Summary | |
|---|---|
String |
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field. |
Object |
getObject(Object rs,
int param)
Returns the object to be loaded from the Orale BLOB. |
String |
getString(Object resultSet,
int 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.store.ObjectProvider sm,
org.datanucleus.store.mapped.DatastoreContainerObject datastoreContainer,
org.datanucleus.store.mapped.mapping.DatastoreMapping mapping,
byte[] bytes)
Convenience method to update the contents of a BLOB column. |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
equals, failureMessage, failureMessage, getDatabaseAdapter, getDatastoreField, hashCode, includeInFetchStatement, initTypeInfo, isNullable |
| Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
failureMessage, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isStringBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleBlobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
mapping - The Java mappingstoreMgr - Store Manager in usefield - The column in the datastore
protected OracleBlobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
storeMgr - Store Managermapping - The Java mapping| Method Detail |
|---|
public String getInsertionInputParameter()
RDBMSMapping
getInsertionInputParameter in class RDBMSMappingRDBMSMapping.getInsertionInputParameter()public boolean insertValuesOnInsert()
insertValuesOnInsert in class RDBMSMapping
public Object getObject(Object rs,
int param)
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetObject in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingrs - the ResultSet from the queryparam - the index in the query
org.datanucleus.exceptions.NucleusDataStoreException
public String getString(Object resultSet,
int exprIndex)
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetString in class org.datanucleus.store.mapped.mapping.AbstractDatastoreMappingAbstractDatastoreMapping.getString(Object, int)public SQLTypeInfo getTypeInfo()
RDBMSMapping
getTypeInfo in class RDBMSMappingRDBMSMapping.getTypeInfo()public String getUpdateInputParameter()
RDBMSMapping
getUpdateInputParameter in class RDBMSMappingRDBMSMapping.getUpdateInputParameter()public boolean includeInSQLFetchStatement()
public static void updateBlobColumn(org.datanucleus.store.ObjectProvider sm,
org.datanucleus.store.mapped.DatastoreContainerObject datastoreContainer,
org.datanucleus.store.mapped.mapping.DatastoreMapping mapping,
byte[] bytes)
SELECT {blobColumn} FROM TABLE WHERE ID=? FOR UPDATE
and then updates the Blob value returned.
sm - StateManager of the objectdatastoreContainer - Table storing the BLOB columnmapping - Datastore mapping for the BLOB columnbytes - The bytes to store in the BLOB
org.datanucleus.exceptions.NucleusObjectNotFoundException
org.datanucleus.exceptions.NucleusDataStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||