|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.mapping.AbstractDatastoreMapping
org.datanucleus.store.rdbms.mapping.RDBMSMapping
org.datanucleus.store.rdbms.mapping.LongVarcharRDBMSMapping
org.datanucleus.store.rdbms.mapping.ClobRDBMSMapping
org.datanucleus.store.rdbms.mapping.oracle.OracleClobRDBMSMapping
public class OracleClobRDBMSMapping
Mapping for Oracle CLOB type.
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
column, LOCALISER_RDBMS, storeMgr |
| Fields inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
LOCALISER, mapping |
| Constructor Summary | |
|---|---|
|
OracleClobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
Constructor. |
protected |
OracleClobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor |
| Method Summary | |
|---|---|
String |
getInsertionInputParameter()
Accessor for the string to put in any retrieval datastore statement for this field. |
Object |
getObject(Object rs,
int param)
|
String |
getString(Object rs,
int param)
|
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.store.ObjectProvider sm,
org.datanucleus.store.mapped.DatastoreContainerObject datastoreContainer,
org.datanucleus.store.mapped.mapping.DatastoreMapping mapping,
String value)
Convenience method to update the contents of a CLOB column. |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.ClobRDBMSMapping |
|---|
setObject, setString |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.LongVarcharRDBMSMapping |
|---|
isStringBased |
| Methods inherited from class org.datanucleus.store.rdbms.mapping.RDBMSMapping |
|---|
equals, failureMessage, failureMessage, getDatabaseAdapter, getDatastoreField, hashCode, initTypeInfo, isNullable |
| Methods inherited from class org.datanucleus.store.mapped.mapping.AbstractDatastoreMapping |
|---|
failureMessage, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getJavaTypeMapping, getLong, getShort, isBitBased, isBooleanBased, isDecimalBased, isIntegerBased, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected OracleClobRDBMSMapping(org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
storeMgr - Store Managermapping - The Java type mapping
public OracleClobRDBMSMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
org.datanucleus.store.mapped.MappedStoreManager storeMgr,
org.datanucleus.store.mapped.DatastoreField field)
mapping - The java type mapping for the field.storeMgr - Manager for the storefield - The field| Method Detail |
|---|
public SQLTypeInfo getTypeInfo()
ClobRDBMSMapping
getTypeInfo in class ClobRDBMSMappingpublic String getInsertionInputParameter()
RDBMSMapping
getInsertionInputParameter in class RDBMSMappingpublic boolean includeInFetchStatement()
RDBMSMapping
includeInFetchStatement in class RDBMSMappingpublic String getUpdateInputParameter()
RDBMSMapping
getUpdateInputParameter in class RDBMSMappingpublic boolean insertValuesOnInsert()
insertValuesOnInsert in class RDBMSMapping
public String getString(Object rs,
int param)
getString in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetString in class ClobRDBMSMapping
public Object getObject(Object rs,
int param)
getObject in interface org.datanucleus.store.mapped.mapping.DatastoreMappinggetObject in class ClobRDBMSMapping
public static void updateClobColumn(org.datanucleus.store.ObjectProvider sm,
org.datanucleus.store.mapped.DatastoreContainerObject datastoreContainer,
org.datanucleus.store.mapped.mapping.DatastoreMapping mapping,
String value)
SELECT {clobColumn} FROM TABLE WHERE ID=? FOR UPDATE
and then updates the Clob value returned.
sm - StateManager of the objectdatastoreContainer - Table storing the CLOB columnmapping - Datastore mapping for the CLOB columnvalue - The value to store in the CLOB
org.datanucleus.exceptions.NucleusObjectNotFoundException
org.datanucleus.exceptions.NucleusDataStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||