public interface Callback extends 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
| Modifier and Type | Method and Description |
|---|---|
CallbackType |
getCallbackType()
The type of callback (pre-update, pre-persist, etc) handled
|
boolean |
performCallback(Object entity)
Contract for performing the callback
|
CallbackType getCallbackType()
The type of callback (pre-update, pre-persist, etc) handled
boolean performCallback(Object entity)
Contract for performing the callback
entity - Reference to the entity for which the callback is triggered.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.