public class OracleClobColumnMapping extends ClobColumnMapping
column, mapping, storeMgr| Constructor and Description |
|---|
OracleClobColumnMapping(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,
ColumnMapping 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 OracleClobColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public String getInsertionInputParameter()
AbstractColumnMappinggetInsertionInputParameter in interface ColumnMappinggetInsertionInputParameter in class AbstractColumnMappingpublic boolean includeInFetchStatement()
AbstractColumnMappingincludeInFetchStatement in class AbstractColumnMappingpublic String getUpdateInputParameter()
AbstractColumnMappinggetUpdateInputParameter in interface ColumnMappinggetUpdateInputParameter in class AbstractColumnMappingpublic boolean insertValuesOnInsert()
insertValuesOnInsert in interface ColumnMappinginsertValuesOnInsert in class AbstractColumnMappingpublic String getString(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getString in interface ColumnMappinggetString in class ClobColumnMappingrs - ResultSetparam - the position of the value in the resultpublic Object getObject(ResultSet rs, int param)
ColumnMappingresultSet
at position specified by exprIndex.getObject in interface ColumnMappinggetObject in class ClobColumnMappingrs - ResultSetparam - the position of the value in the resultpublic static void updateClobColumn(org.datanucleus.state.ObjectProvider op,
Table table,
ColumnMapping 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 © 2020. All rights reserved.