Class CollectionMapping
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
- All Implemented Interfaces:
MappingCallbacks
Mapping for Collection types.
-
Field Summary
Fields inherited from class SingleFieldMapping
EXTENSION_CHECK_CONSTRAINT_VALUESFields inherited from class JavaTypeMapping
absFieldNumber, columnMappings, mmd, referenceMapping, roleForMember, storeMgr, table, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccessor for the Java type represented here.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.voidpreDelete(org.datanucleus.state.DNStateManager ownerSM) Method called before the delete of objects, so that additional operations can be performed if necessary.Methods inherited from class AbstractContainerMapping
containerIsStoredInSingleColumn, getColumnMapping, getColumnMappings, getJavaTypeForColumnMapping, getNumberOfColumnMappings, getObject, getTable, hasSimpleDatastoreRepresentation, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, postFetch, prepareColumnMapping, replaceFieldWithWrapper, setObjectMethods inherited from class SingleFieldMapping
getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getLong, getShort, getString, getValidValues, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setStringMethods inherited from class JavaTypeMapping
addColumnMapping, equals, failureMessage, getAbsoluteFieldNumber, getColumnMetaDataForMember, getMemberMetaData, getObject, getReferenceMapping, getRoleForMember, getStoreManager, getType, getValueForColumnMapping, hashCode, initialize, isNullable, isSerialised, performSetPostProcessing, representableAsStringLiteralInStatement, requiresSetPostProcessing, setAbsFieldNumber, setMemberMetaData, setObject, setReferenceMapping, setRoleForMember, setTableMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MappingCallbacks
postFetch
-
Constructor Details
-
CollectionMapping
public CollectionMapping()
-
-
Method Details
-
getJavaType
Accessor for the Java type represented here.- Specified by:
getJavaTypein classJavaTypeMapping- Returns:
- The java type
-
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- Parameters:
ownerSM- StateManager of the owner
-
postUpdate
public void postUpdate(org.datanucleus.state.DNStateManager ownerSM) Method 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- Parameters:
ownerSM- StateManager of the owner
-
preDelete
public void preDelete(org.datanucleus.state.DNStateManager ownerSM) Description copied from interface:MappingCallbacksMethod called before the delete of objects, so that additional operations can be performed if necessary.- Specified by:
preDeletein interfaceMappingCallbacks- Parameters:
ownerSM- StateManager of the owner
-