Interface JpaCallbackSource
-
public interface JpaCallbackSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCallbackMethod(Class<? extends Annotation> callbackType)
String
getName()
boolean
isListener()
-
-
-
Method Detail
-
getCallbackMethod
String getCallbackMethod(Class<? extends Annotation> callbackType)
- 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:
true
if this callback class represents callbacks defined within anentity listener
.
-
-