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

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.AbstractContainerMapping
              extended by org.datanucleus.store.mapped.mapping.MapMapping
                  extended by org.datanucleus.store.rdbms.mapping.oracle.OracleMapMapping
All Implemented Interfaces:
org.datanucleus.store.mapped.mapping.MappingCallbacks

public class OracleMapMapping
extends org.datanucleus.store.mapped.mapping.MapMapping

Oracle variant of the MapMapping for cases where we are serialising the field into a single column. This is necessary so we can intercept perform any necessary postInsert, postUpdate nonsense for inserting BLOBs


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

Constructor Detail

OracleMapMapping

public OracleMapMapping()
Method Detail

postInsert

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

Specified by:
postInsert in interface org.datanucleus.store.mapped.mapping.MappingCallbacks
Overrides:
postInsert in class org.datanucleus.store.mapped.mapping.MapMapping
Parameters:
sm - the current StateManager

postUpdate

public void postUpdate(org.datanucleus.StateManager sm)
Specified by:
postUpdate in interface org.datanucleus.store.mapped.mapping.MappingCallbacks
Overrides:
postUpdate in class org.datanucleus.store.mapped.mapping.MapMapping
See Also:
MappingCallbacks.postUpdate(org.datanucleus.StateManager)


Copyright © 2009. All Rights Reserved.