Interface EntityCallbacks<E>
- Type Parameters:
E- The entity type
public interface EntityCallbacks<E>
Jakarta Persistence style callbacks for a particular entity.
-
Method Summary
Modifier and TypeMethodDescriptionaddListener(CallbackType type, Consumer<? super E> listener) addListener(CallbackType type, Callback<? super E> callback) booleanhasRegisteredCallbacks(CallbackType callbackType) Whether there are any callbacks registered for the entity of this type.<S extends E>
booleanpostCreate(S entity) HandlePostInsertcallbacks.<S extends E>
booleanpostLoad(S entity) HandlePostLoadcallbacks.<S extends E>
booleanpostRemove(S entity) HandlePostRemovecallbacks.<S extends E>
booleanpostUpdate(S entity) HandlePostUpdatecallbacks.<S extends E>
booleanpreCreate(S entity) HandlePreInsertcallbacks.<S extends E>
booleanpreRemove(S entity) HandlePreRemovecallbacks.<S extends E>
booleanpreUpdate(S entity) HandlePreUpdatecallbacks.
-
Method Details
-
hasRegisteredCallbacks
Whether there are any callbacks registered for the entity of this type. -
preCreate
-
postCreate
HandlePostInsertcallbacks. -
preUpdate
-
postUpdate
HandlePostUpdatecallbacks. -
preRemove
-
postRemove
HandlePostRemovecallbacks. -
postLoad
-
addListener
- See Also:
-
addListener
- See Also:
-