public interface CallbackRegistry extends Serializable
boolean hasRegisteredCallbacks(Class entityClass, CallbackType callbackType)
entityClass
- The entity Class to check againstcallbackType
- The type of callback to look fortrue
indicates there are already registered callbacks of
that type for that class; false
indicates there are not.void preCreate(Object entity)
void postCreate(Object entity)
boolean preUpdate(Object entity)
void postUpdate(Object entity)
void preRemove(Object entity)
void postRemove(Object entity)
boolean postLoad(Object entity)
@Deprecated boolean hasPostCreateCallbacks(Class entityClass)
hasRegisteredCallbacks(Class, CallbackType)
instead passing
CallbackType.POST_PERSIST
@Deprecated boolean hasPostUpdateCallbacks(Class entityClass)
hasRegisteredCallbacks(Class, CallbackType)
instead passing
CallbackType.POST_UPDATE
@Deprecated boolean hasPostRemoveCallbacks(Class entityClass)
hasRegisteredCallbacks(Class, CallbackType)
instead passing
CallbackType.POST_REMOVE
@Deprecated boolean hasRegisteredCallbacks(Class entityClass, Class annotationClass)
hasRegisteredCallbacks(Class, CallbackType)
instead.Copyright © 2017 JBoss by Red Hat. All rights reserved.