Class OracleClobColumnMapping
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.LongVarcharColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.ClobColumnMapping
-
- org.datanucleus.store.rdbms.mapping.column.OracleClobColumnMapping
-
- All Implemented Interfaces:
ColumnMapping,ColumnMappingPostSet
public class OracleClobColumnMapping extends ClobColumnMapping implements ColumnMappingPostSet
Mapping for an Oracle CLOB column. Extends the standard JDBC handler so that we can insert an empty CLOB, and then update it (Oracle non-standard behaviour).
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
column, mapping, storeMgr
-
-
Constructor Summary
Constructors Constructor Description OracleClobColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInsertionInputParameter()Accessor for the string to put in any retrieval datastore statement for this field.ObjectgetObject(ResultSet rs, int param)Obtains a value fromresultSetat position specified byexprIndex.StringgetString(ResultSet rs, int param)Obtains a value fromresultSetat position specified byexprIndex.StringgetUpdateInputParameter()Accessor for the string to put in any update datastore statements for this field.booleanincludeInFetchStatement()Whether this mapping is included in the fetch statement.booleaninsertValuesOnInsert()Accessor for whether this mapping requires values inserting on an INSERT.voidsetPostProcessing(org.datanucleus.state.DNStateManager sm, Object value)Perform any post "set" processing on this column, using the provided value.-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.ClobColumnMapping
getJDBCType, setObject, setString
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.LongVarcharColumnMapping
isStringBased
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.column.AbstractColumnMapping
equals, 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, useDefaultWhenNull
-
-
-
-
Constructor Detail
-
OracleClobColumnMapping
public OracleClobColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
-
-
Method Detail
-
getInsertionInputParameter
public String getInsertionInputParameter()
Description copied from class:AbstractColumnMappingAccessor for the string to put in any retrieval datastore statement for this field. In RDBMS, this is typically a ? to be used in JDBC statements.- Specified by:
getInsertionInputParameterin interfaceColumnMapping- Overrides:
getInsertionInputParameterin classAbstractColumnMapping- Returns:
- The input parameter
-
includeInFetchStatement
public boolean includeInFetchStatement()
Description copied from class:AbstractColumnMappingWhether this mapping is included in the fetch statement.- Overrides:
includeInFetchStatementin classAbstractColumnMapping- Returns:
- Whether to include in fetch statement
-
getUpdateInputParameter
public String getUpdateInputParameter()
Description copied from class:AbstractColumnMappingAccessor for the string to put in any update datastore statements for this field. In RDBMS, this is typically a ? to be used in JDBC statements.- Specified by:
getUpdateInputParameterin interfaceColumnMapping- Overrides:
getUpdateInputParameterin classAbstractColumnMapping- Returns:
- The input parameter.
-
insertValuesOnInsert
public boolean insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT.- Specified by:
insertValuesOnInsertin interfaceColumnMapping- Overrides:
insertValuesOnInsertin classAbstractColumnMapping- Returns:
- Whether values are to be inserted into this mapping on an INSERT
-
getString
public String getString(ResultSet rs, int param)
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getStringin interfaceColumnMapping- Overrides:
getStringin classClobColumnMapping- Parameters:
rs- ResultSetparam- the position of the value in the result- Returns:
- the value
-
getObject
public Object getObject(ResultSet rs, int param)
Description copied from interface:ColumnMappingObtains a value fromresultSetat position specified byexprIndex.- Specified by:
getObjectin interfaceColumnMapping- Overrides:
getObjectin classClobColumnMapping- Parameters:
rs- ResultSetparam- the position of the value in the result- Returns:
- the value
-
setPostProcessing
public void setPostProcessing(org.datanucleus.state.DNStateManager sm, Object value)Description copied from interface:ColumnMappingPostSetPerform any post "set" processing on this column, using the provided value.- Specified by:
setPostProcessingin interfaceColumnMappingPostSet- Parameters:
sm- StateManager for object being setvalue- The value to use on the set
-
-