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 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 fromresultSet
at position specified byexprIndex
.String
getString(ResultSet rs, int param)
Obtains a value fromresultSet
at position specified byexprIndex
.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.void
setPostProcessing(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:AbstractColumnMapping
Accessor 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:
getInsertionInputParameter
in interfaceColumnMapping
- Overrides:
getInsertionInputParameter
in classAbstractColumnMapping
- Returns:
- The input parameter
-
includeInFetchStatement
public boolean includeInFetchStatement()
Description copied from class:AbstractColumnMapping
Whether this mapping is included in the fetch statement.- Overrides:
includeInFetchStatement
in classAbstractColumnMapping
- Returns:
- Whether to include in fetch statement
-
getUpdateInputParameter
public String getUpdateInputParameter()
Description copied from class:AbstractColumnMapping
Accessor 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:
getUpdateInputParameter
in interfaceColumnMapping
- Overrides:
getUpdateInputParameter
in classAbstractColumnMapping
- Returns:
- The input parameter.
-
insertValuesOnInsert
public boolean insertValuesOnInsert()
Accessor for whether this mapping requires values inserting on an INSERT.- Specified by:
insertValuesOnInsert
in interfaceColumnMapping
- Overrides:
insertValuesOnInsert
in 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:ColumnMapping
Obtains a value fromresultSet
at position specified byexprIndex
.- Specified by:
getString
in interfaceColumnMapping
- Overrides:
getString
in 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:ColumnMapping
Obtains a value fromresultSet
at position specified byexprIndex
.- Specified by:
getObject
in interfaceColumnMapping
- Overrides:
getObject
in 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:ColumnMappingPostSet
Perform any post "set" processing on this column, using the provided value.- Specified by:
setPostProcessing
in interfaceColumnMappingPostSet
- Parameters:
sm
- StateManager for object being setvalue
- The value to use on the set
-
-