Top Description Methods
org.hibernate.jpa.event.spi

public Interface CallbackRegistry

extends Serializable
Known Direct Subinterfaces
org.hibernate.jpa.event.spi.CallbackRegistrar
Imports
java.io.Serializable

Registry of Callbacks by entity and type
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
public boolean

Returns:

true indicates there are already registered callbacks of that type for that class; false indicates there are not.
hasRegisteredCallbacks
(Class<T>
The entity Class to check against
entityClass
,
CallbackType
The type of callback to look for
callbackType
)

Do we have any registered callbacks of the given type for the given entity?

public boolean
hasRegisteredCallbacks(Class<T> entityClass, Class<T> annotationClass)

public void
public boolean
postLoad(Object entity)

public void
public void
public void
preCreate(Object entity)

public void
preRemove(Object entity)

public boolean
preUpdate(Object entity)

Method Detail

hasPostCreateCallbacksback to summary
public boolean hasPostCreateCallbacks(Class<T> entityClass)
Annotations
@Deprecated
hasPostRemoveCallbacksback to summary
public boolean hasPostRemoveCallbacks(Class<T> entityClass)
Annotations
@Deprecated
hasPostUpdateCallbacksback to summary
public boolean hasPostUpdateCallbacks(Class<T> entityClass)
Annotations
@Deprecated
hasRegisteredCallbacksback to summary
public boolean hasRegisteredCallbacks(Class<T> entityClass, CallbackType callbackType)

Do we have any registered callbacks of the given type for the given entity?

Parameters
entityClass:Class<T>

The entity Class to check against

callbackType:CallbackType

The type of callback to look for

Returns:boolean

true indicates there are already registered callbacks of that type for that class; false indicates there are not.

hasRegisteredCallbacksback to summary
public boolean hasRegisteredCallbacks(Class<T> entityClass, Class<T> annotationClass)
Annotations
@Deprecated
postCreateback to summary
public void postCreate(Object entity)
postLoadback to summary
public boolean postLoad(Object entity)
postRemoveback to summary
public void postRemove(Object entity)
postUpdateback to summary
public void postUpdate(Object entity)
preCreateback to summary
public void preCreate(Object entity)
preRemoveback to summary
public void preRemove(Object entity)
preUpdateback to summary
public boolean preUpdate(Object entity)