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

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

public class OracleCollectionMapping
extends org.datanucleus.store.mapped.mapping.CollectionMapping

Oracle variant of the CollectionMapping 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
OracleCollectionMapping()
           
 
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 BLOB object.
 void postUpdate(org.datanucleus.StateManager sm)
           
 
Methods inherited from class org.datanucleus.store.mapped.mapping.CollectionMapping
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

OracleCollectionMapping

public OracleCollectionMapping()
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 BLOB object.

Specified by:
postInsert in interface org.datanucleus.store.mapped.mapping.MappingCallbacks
Overrides:
postInsert in class org.datanucleus.store.mapped.mapping.CollectionMapping
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.CollectionMapping
See Also:
MappingCallbacks.postUpdate(org.datanucleus.StateManager)


Copyright © 2009. All Rights Reserved.