Interface MappingCallbacks
-
- All Known Implementing Classes:
ArrayMapping,CollectionMapping,EmbeddedPCMapping,InterfaceMapping,MapMapping,ObjectMapping,OptionalMapping,OracleArrayMapping,OracleBitSetMapping,OracleCollectionMapping,OracleMapMapping,OracleSerialisedObjectMapping,OracleSerialisedPCMapping,OracleStringLobMapping,PersistableIdMapping,PersistableMapping,ReferenceIdMapping,ReferenceMapping,SerialisedLocalFileMapping,SingleCollectionMapping
public interface MappingCallbacksInterface defining a series of callbacks that are called when this mapping goes through certain lifecycle events. This interface would be implemented by any type of mapping that handles a relation and so may need to perform action just before or just after a lifecycle event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinsertPostProcessing(org.datanucleus.state.ObjectProvider op)Hook so that we can handle any post-processing on the insert of a particular field.voidpostFetch(org.datanucleus.state.ObjectProvider op)Method called after the retrieval of the object, so that additional operations can be performed if necessary.voidpostInsert(org.datanucleus.state.ObjectProvider op)Method called after the insert of the object so that additional operations can be performed if necessary.voidpostUpdate(org.datanucleus.state.ObjectProvider op)Method called after the update of the object, so that additional operations can be performed if necessary.voidpreDelete(org.datanucleus.state.ObjectProvider op)Method called before the delete of objects, so that additional operations can be performed if necessary.
-
-
-
Method Detail
-
insertPostProcessing
void insertPostProcessing(org.datanucleus.state.ObjectProvider op)
Hook so that we can handle any post-processing on the insert of a particular field. For example with Oracle we need to insert "EMPTY_CLOB" and then immediately after do a SELECT of it and update the contents of the CLOB/BLOB.- Parameters:
op- ObjectProvider
-
postInsert
void postInsert(org.datanucleus.state.ObjectProvider op)
Method called after the insert of the object so that additional operations can be performed if necessary.- Parameters:
op- ObjectProvider of the owner
-
postFetch
void postFetch(org.datanucleus.state.ObjectProvider op)
Method called after the retrieval of the object, so that additional operations can be performed if necessary.- Parameters:
op- ObjectProvider of the owner
-
postUpdate
void postUpdate(org.datanucleus.state.ObjectProvider op)
Method called after the update of the object, so that additional operations can be performed if necessary.- Parameters:
op- ObjectProvider of the owner
-
preDelete
void preDelete(org.datanucleus.state.ObjectProvider op)
Method called before the delete of objects, so that additional operations can be performed if necessary.- Parameters:
op- ObjectProvider of the owner
-
-