Package org.hibernate.jpa.event.spi
Interface CallbackRegistry
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
CallbackBuilder.CallbackRegistrar,CallbackRegistrar
public interface CallbackRegistry extends java.io.SerializableRegistry of Callbacks by entity and type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanhasPostCreateCallbacks(java.lang.Class entityClass)Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_PERSISTbooleanhasPostRemoveCallbacks(java.lang.Class entityClass)Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_REMOVEbooleanhasPostUpdateCallbacks(java.lang.Class entityClass)Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_UPDATEbooleanhasRegisteredCallbacks(java.lang.Class entityClass, java.lang.Class annotationClass)Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead.booleanhasRegisteredCallbacks(java.lang.Class entityClass, CallbackType callbackType)Do we have any registered callbacks of the given type for the given entity?voidpostCreate(java.lang.Object entity)booleanpostLoad(java.lang.Object entity)voidpostRemove(java.lang.Object entity)voidpostUpdate(java.lang.Object entity)voidpreCreate(java.lang.Object entity)voidpreRemove(java.lang.Object entity)booleanpreUpdate(java.lang.Object entity)
-
-
-
Method Detail
-
hasRegisteredCallbacks
boolean hasRegisteredCallbacks(java.lang.Class entityClass, CallbackType callbackType)Do we have any registered callbacks of the given type for the given entity?- Parameters:
entityClass- The entity Class to check againstcallbackType- The type of callback to look for- Returns:
trueindicates there are already registered callbacks of that type for that class;falseindicates there are not.
-
preCreate
void preCreate(java.lang.Object entity)
-
postCreate
void postCreate(java.lang.Object entity)
-
preUpdate
boolean preUpdate(java.lang.Object entity)
-
postUpdate
void postUpdate(java.lang.Object entity)
-
preRemove
void preRemove(java.lang.Object entity)
-
postRemove
void postRemove(java.lang.Object entity)
-
postLoad
boolean postLoad(java.lang.Object entity)
-
hasPostCreateCallbacks
@Deprecated boolean hasPostCreateCallbacks(java.lang.Class entityClass)
Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_PERSIST
-
hasPostUpdateCallbacks
@Deprecated boolean hasPostUpdateCallbacks(java.lang.Class entityClass)
Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_UPDATE
-
hasPostRemoveCallbacks
@Deprecated boolean hasPostRemoveCallbacks(java.lang.Class entityClass)
Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead passingCallbackType.POST_REMOVE
-
hasRegisteredCallbacks
@Deprecated boolean hasRegisteredCallbacks(java.lang.Class entityClass, java.lang.Class annotationClass)Deprecated.UsehasRegisteredCallbacks(Class, CallbackType)instead.
-
-