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

public Interface Callback

extends Serializable
Known Direct Implementers
org.hibernate.jpa.event.internal.AbstractCallback
Imports
java.io.Serializable

Represents a JPA event callback (the method). Generally there are 2 flavors of this; either an annotated method on the entity itself or an annotated method on a separate "listener" class. This contract presents a unified abstraction for both cases
Authors
Kabir Khan, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CallbackType
getCallbackType()

The type of callback (pre-update, pre-persist, etc) handled

public boolean

Returns:

Did a callback actually happen?
performCallback
(Object
Reference to the entity for which the callback is triggered.
entity
)

Contract for performing the callback

Method Detail

getCallbackTypeback to summary
public CallbackType getCallbackType()

The type of callback (pre-update, pre-persist, etc) handled

performCallbackback to summary
public boolean performCallback(Object entity)

Contract for performing the callback

Parameters
entity:Object

Reference to the entity for which the callback is triggered.

Returns:boolean

Did a callback actually happen?