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 . |
SQLTypeInfo |
getTypeInfo()
Accessor for the type info for this datastore field
|
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.
|
setObject, setString
isStringBased
equals, failureMessage, failureMessage, failureMessage, getBoolean, getByte, getChar, getColumn, getDatastoreAdapter, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, hashCode, initTypeInfo, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, isNullable, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort
public OracleClobRDBMSMapping(JavaTypeMapping mapping, RDBMSStoreManager storeMgr, Column col)
public SQLTypeInfo getTypeInfo()
ClobRDBMSMapping
getTypeInfo
in class ClobRDBMSMapping
public String getInsertionInputParameter()
AbstractDatastoreMapping
getInsertionInputParameter
in class AbstractDatastoreMapping
public boolean includeInFetchStatement()
AbstractDatastoreMapping
includeInFetchStatement
in class AbstractDatastoreMapping
public String getUpdateInputParameter()
AbstractDatastoreMapping
getUpdateInputParameter
in class AbstractDatastoreMapping
public boolean insertValuesOnInsert()
insertValuesOnInsert
in class AbstractDatastoreMapping
public String getString(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getString
in interface DatastoreMapping
getString
in class ClobRDBMSMapping
rs
- ResultSetparam
- the position of the value in the resultpublic Object getObject(ResultSet rs, int param)
DatastoreMapping
resultSet
at position specified by exprIndex
.getObject
in interface DatastoreMapping
getObject
in class ClobRDBMSMapping
rs
- 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 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 © 2015. All rights reserved.