Interface JpaCallbackSource
-
public interface JpaCallbackSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCallbackMethod(java.lang.Class<? extends java.lang.annotation.Annotation> callbackType)java.lang.StringgetName()booleanisListener()
-
-
-
Method Detail
-
getCallbackMethod
java.lang.String getCallbackMethod(java.lang.Class<? extends java.lang.annotation.Annotation> callbackType)
- Parameters:
callbackType-PrePersist,PreRemove,PreUpdate,PostLoad,PostPersist,PostRemove, orPostUpdate- Returns:
- the name of the JPA callback method defined for the associated
entityormapped superclassand for the supplied callback annotation class.
-
getName
java.lang.String getName()
- Returns:
- 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()
- Returns:
trueif this callback class represents callbacks defined within anentity listener.
-
-