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

public Interface CallbackRegistry

Known Direct Implementers
org.hibernate.jpa.event.internal.CallbackRegistryImpl, org.hibernate.jpa.event.internal.EmptyCallbackRegistryImpl

Registry of Callbacks by entity and type
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true indicates there are already registered callbacks of that type for that class; false indicates there are not.
hasRegisteredCallbacks
(Class<?>
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 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)

public void
release()

Signals that the CallbackRegistry will no longer be used.

Method Detail

hasRegisteredCallbacksback to summary
public boolean hasRegisteredCallbacks(Class<?> entityClass, CallbackType callbackType)

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

Parameters
entityClass:Class<?>

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.

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)
releaseback to summary
public void release()

Signals that the CallbackRegistry will no longer be used. In particular, it is important to release references to class types to avoid classloader leaks.