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, setString
isStringBased
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
public OracleClobColumnMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public String getInsertionInputParameter()
AbstractColumnMapping
getInsertionInputParameter
in interface ColumnMapping
getInsertionInputParameter
in class AbstractColumnMapping
public boolean includeInFetchStatement()
AbstractColumnMapping
includeInFetchStatement
in class AbstractColumnMapping
public String getUpdateInputParameter()
AbstractColumnMapping
getUpdateInputParameter
in interface ColumnMapping
getUpdateInputParameter
in class AbstractColumnMapping
public boolean insertValuesOnInsert()
insertValuesOnInsert
in interface ColumnMapping
insertValuesOnInsert
in class AbstractColumnMapping
public String getString(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getString
in interface ColumnMapping
getString
in class ClobColumnMapping
rs
- ResultSetparam
- the position of the value in the resultpublic Object getObject(ResultSet rs, int param)
ColumnMapping
resultSet
at position specified by exprIndex
.getObject
in interface ColumnMapping
getObject
in class ClobColumnMapping
rs
- 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 UPDATEand 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.