Interface MappingCallbacks
-
- All Known Implementing Classes:
ArrayMapping
,CollectionMapping
,EmbeddedPCMapping
,InterfaceMapping
,MapMapping
,ObjectMapping
,OptionalMapping
,OracleArrayMapping
,OracleCollectionMapping
,OracleMapMapping
,PersistableIdMapping
,PersistableMapping
,ReferenceIdMapping
,ReferenceMapping
,SerialisedLocalFileMapping
,SingleCollectionMapping
public interface MappingCallbacks
Interface 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 Default Methods Modifier and Type Method Description default void
postFetch(org.datanucleus.state.DNStateManager sm)
Method called after the retrieval of the object, so that additional operations can be performed if necessary.default void
postInsert(org.datanucleus.state.DNStateManager sm)
Method called after the insert of the object so that additional operations can be performed if necessary.default void
postUpdate(org.datanucleus.state.DNStateManager sm)
Method called after the update of the object, so that additional operations can be performed if necessary.default void
preDelete(org.datanucleus.state.DNStateManager sm)
Method called before the delete of objects, so that additional operations can be performed if necessary.
-
-
-
Method Detail
-
postInsert
default void postInsert(org.datanucleus.state.DNStateManager sm)
Method called after the insert of the object so that additional operations can be performed if necessary.- Parameters:
sm
- StateManager of the owner
-
postFetch
default void postFetch(org.datanucleus.state.DNStateManager sm)
Method called after the retrieval of the object, so that additional operations can be performed if necessary.- Parameters:
sm
- StateManager of the owner
-
postUpdate
default void postUpdate(org.datanucleus.state.DNStateManager sm)
Method called after the update of the object, so that additional operations can be performed if necessary.- Parameters:
sm
- StateManager of the owner
-
preDelete
default void preDelete(org.datanucleus.state.DNStateManager sm)
Method called before the delete of objects, so that additional operations can be performed if necessary.- Parameters:
sm
- StateManager of the owner
-
-