org.datanucleus.store.rdbms.mapping.oracle
Class OracleStringMapping

java.lang.Object
  extended by org.datanucleus.store.mapped.mapping.JavaTypeMapping
      extended by org.datanucleus.store.mapped.mapping.SingleFieldMapping
          extended by org.datanucleus.store.mapped.mapping.StringMapping
              extended by org.datanucleus.store.rdbms.mapping.oracle.OracleStringMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.MappingCallbacks

public class OracleStringMapping
extends org.datanucleus.store.mapped.mapping.StringMapping
implements org.datanucleus.store.mapped.mapping.MappingCallbacks

Mapping for a String type for Oracle when stored in a BLOB or CLOB column.


Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.mapping.StringMapping
mappingSampleValue
 
Fields inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
datastoreContainer, datastoreMappings, dba, LOCALISER, mmd, referenceMapping, roleForMember, type
 
Constructor Summary
OracleStringMapping()
           
 
Method Summary
 void postFetch(org.datanucleus.StateManager sm)
           
 void postInsert(org.datanucleus.StateManager sm)
          Retrieve the empty BLOB/CLOB locator created by the insert statement and write out the current BLOB/CLOB field value to the Oracle BLOB/CLOB object
 void postUpdate(org.datanucleus.StateManager sm)
           
 void preDelete(org.datanucleus.StateManager sm)
           
 
Methods inherited from class org.datanucleus.store.mapped.mapping.StringMapping
getJavaType, getSampleValue, newLiteral, newScalarExpression
 
Methods inherited from class org.datanucleus.store.mapped.mapping.SingleFieldMapping
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getObject, getShort, getString, getValidValues, initialize, prepareDatastoreMapping, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setShort, setString
 
Methods inherited from class org.datanucleus.store.mapped.mapping.JavaTypeMapping
addDataStoreMapping, failureMessage, getDatastoreContainer, getDataStoreMapping, getDataStoreMappings, getMemberMetaData, getNumberOfDatastoreFields, getObject, getReferenceMapping, getRoleForMember, getType, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, setDatastoreContainer, setDefault, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleStringMapping

public OracleStringMapping()
Method Detail

postInsert

public void postInsert(org.datanucleus.StateManager sm)
Retrieve the empty BLOB/CLOB locator created by the insert statement and write out the current BLOB/CLOB field value to the Oracle BLOB/CLOB object

Specified by:
postInsert in interface org.datanucleus.store.mapped.mapping.MappingCallbacks
Parameters:
sm - The StateManager owner of this field

postFetch

public void postFetch(org.datanucleus.StateManager sm)
Specified by:
postFetch in interface org.datanucleus.store.mapped.mapping.MappingCallbacks

postUpdate

public void postUpdate(org.datanucleus.StateManager sm)
Specified by:
postUpdate in interface org.datanucleus.store.mapped.mapping.MappingCallbacks

preDelete

public void preDelete(org.datanucleus.StateManager sm)
Specified by:
preDelete in interface org.datanucleus.store.mapped.mapping.MappingCallbacks


Copyright © 2009. All Rights Reserved.