接口 JpaCallbackSource
-
public interface JpaCallbackSource- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetCallbackMethod(Class<? extends Annotation> callbackType)StringgetName()booleanisListener()
-
-
-
方法详细资料
-
getCallbackMethod
String getCallbackMethod(Class<? extends Annotation> callbackType)
- 参数:
callbackType-PrePersist,PreRemove,PreUpdate,PostLoad,PostPersist,PostRemove, orPostUpdate- 返回:
- the name of the JPA callback method defined for the associated
entityormapped superclassand for the supplied callback annotation class.
-
getName
String getName()
- 返回:
- the name of the instantiated container where the JPA callbacks for the associated
entityormapped superclassare defined. This can be either the entity/mapped superclass itself or anentity listener.
-
isListener
boolean isListener()
- 返回:
trueif this callback class represents callbacks defined within anentity listener.
-
-