public class OracleClobRDBMSMapping extends ClobRDBMSMapping
column, mapping, storeMgr| Constructor and Description |
|---|
OracleClobRDBMSMapping(JavaTypeMapping mapping,
RDBMSStoreManager storeMgr,
Column col) |
| 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)
Obtains a value from
resultSet
at position specified by exprIndex. |
String |
getString(ResultSet rs,
int param)
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 |
includeInFetchStatement()
Whether this mapping is included in the fetch statement.
|
boolean |
insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT.
|
static void |
updateClobColumn(org.datanucleus.state.ObjectProvider op,
Table table,
DatastoreMapping mapping,
String value)
Convenience method to update the contents of a CLOB column.
|
getJDBCType, setObject, setStringisStringBasedequals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, getTypeInfo, hashCode, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, useDefaultWhenNullpublic OracleClobRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public String getInsertionInputParameter()
AbstractDatastoreMappinggetInsertionInputParameter in interface DatastoreMappinggetInsertionInputParameter in class AbstractDatastoreMappingpublic boolean includeInFetchStatement()
AbstractDatastoreMappingincludeInFetchStatement in class AbstractDatastoreMappingpublic String getUpdateInputParameter()
AbstractDatastoreMappinggetUpdateInputParameter in interface DatastoreMappinggetUpdateInputParameter in class AbstractDatastoreMappingpublic boolean insertValuesOnInsert()
insertValuesOnInsert in interface DatastoreMappinginsertValuesOnInsert in class AbstractDatastoreMappingpublic String getString(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getString in interface DatastoreMappinggetString in class ClobRDBMSMappingrs - ResultSetparam - the position of the value in the resultpublic Object getObject(ResultSet rs, int param)
DatastoreMappingresultSet
at position specified by exprIndex.getObject in interface DatastoreMappinggetObject in class ClobRDBMSMappingrs - ResultSetparam - the position of the value in the resultpublic static void updateClobColumn(org.datanucleus.state.ObjectProvider op,
Table table,
DatastoreMapping mapping,
String value)
SELECT {clobColumn} FROM TABLE WHERE ID=? FOR UPDATE
and then updates the Clob value returned.op - ObjectProvider of the objecttable - Table storing the CLOB columnmapping - Datastore mapping for the CLOB columnvalue - The value to store in the CLOBorg.datanucleus.exceptions.NucleusObjectNotFoundException - Thrown if an object is not foundorg.datanucleus.exceptions.NucleusDataStoreException - Thrown if an error occurs in datastore communicationCopyright © 2019. All rights reserved.