Interface JpaCallbackSource
public interface JpaCallbackSource
-
Method Summary
Modifier and TypeMethodDescriptiongetCallbackMethod(Class<? extends Annotation> callbackType) getName()boolean
-
Method Details
-
getCallbackMethod
- Parameters:
callbackType-PrePersist,PreRemove,PreUpdate,PostLoad,PostPersist,PostRemove, orPostUpdate- Returns:
- the name of the JPA callback method defined for the associated entity or mapped superclass and for the supplied callback annotation class.
-
getName
String getName()- Returns:
- the name of the instantiated container where the JPA callbacks for the associated entity or mapped superclass are defined. This can be either the entity/mapped superclass itself or an entity listener.
-
isListener
boolean isListener()- Returns:
trueif this callback class represents callbacks defined within anentity listener.
-