Class OracleCollectionMapping
- java.lang.Object
-
- org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping
-
- org.datanucleus.store.rdbms.mapping.java.SingleFieldMapping
-
- org.datanucleus.store.rdbms.mapping.java.AbstractContainerMapping
-
- org.datanucleus.store.rdbms.mapping.java.CollectionMapping
-
- org.datanucleus.store.rdbms.mapping.java.OracleCollectionMapping
-
- All Implemented Interfaces:
MappingCallbacks
public class OracleCollectionMapping extends CollectionMapping
Oracle variant of the CollectionMapping for cases where we are serialising the field into a single (BLOB/CLOB) column.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.java.SingleFieldMapping
EXTENSION_CHECK_CONSTRAINT_VALUES
-
Fields inherited from class org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping
absFieldNumber, columnMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type
-
-
Constructor Summary
Constructors Constructor Description OracleCollectionMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidperformSetPostProcessing(org.datanucleus.state.DNStateManager sm)Perform any INSERT/UPDATE post processing as required by constituent ColumnMappings.voidpostInsert(org.datanucleus.state.DNStateManager ownerSM)Method called after the insert of the object so that additional operations can be performed if necessary.voidpostUpdate(org.datanucleus.state.DNStateManager ownerSM)Method to be called after any update of the owner class element.-
Methods inherited from class org.datanucleus.store.rdbms.mapping.java.CollectionMapping
getJavaType, preDelete
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.java.AbstractContainerMapping
containerIsStoredInSingleColumn, getColumnMapping, getColumnMappings, getJavaTypeForColumnMapping, getNumberOfColumnMappings, getObject, getTable, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, postFetch, prepareColumnMapping, replaceFieldWithWrapper, setObject
-
Methods inherited from class org.datanucleus.store.rdbms.mapping.java.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.rdbms.mapping.java.JavaTypeMapping
addColumnMapping, equals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getType, getValueForColumnMapping, hashCode, initialize, isNullable, isSerialised, representableAsStringLiteralInStatement, requiresSetPostProcessing, setAbsFieldNumber, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember, setTable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datanucleus.store.rdbms.mapping.MappingCallbacks
postFetch
-
-
-
-
Method Detail
-
performSetPostProcessing
public void performSetPostProcessing(org.datanucleus.state.DNStateManager sm)
Description copied from class:JavaTypeMappingPerform any INSERT/UPDATE post processing as required by constituent ColumnMappings. Default implementation does nothing.- Overrides:
performSetPostProcessingin classJavaTypeMapping- Parameters:
sm- StateManager of the object with this mapping
-
postInsert
public void postInsert(org.datanucleus.state.DNStateManager ownerSM)
Description copied from interface:MappingCallbacksMethod called after the insert of the object so that additional operations can be performed if necessary.- Specified by:
postInsertin interfaceMappingCallbacks- Overrides:
postInsertin classCollectionMapping- Parameters:
ownerSM- StateManager of the owner
-
postUpdate
public void postUpdate(org.datanucleus.state.DNStateManager ownerSM)
Description copied from class:CollectionMappingMethod to be called after any update of the owner class element. This method could be called in two situations- Update a collection field of an object by replacing the collection with a new collection, so UpdateRequest is called, which calls here
- Persist a new object, and it needed to wait til the element was inserted so goes into dirty state and then flush() triggers UpdateRequest, which comes here
- Specified by:
postUpdatein interfaceMappingCallbacks- Overrides:
postUpdatein classCollectionMapping- Parameters:
ownerSM- StateManager of the owner
-
-