接口 Callback
-
- 所有超级接口:
Serializable
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- 作者:
- Kabir Khan, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 CallbackTypegetCallbackType()The type of callback (pre-update, pre-persist, etc) handledbooleanperformCallback(Object entity)Contract for performing the callback
-
-
-
方法详细资料
-
getCallbackType
CallbackType getCallbackType()
The type of callback (pre-update, pre-persist, etc) handled
-
performCallback
boolean performCallback(Object entity)
Contract for performing the callback- 参数:
entity- Reference to the entity for which the callback is triggered.- 返回:
- Did a callback actually happen?
-
-