Interface JpaCallbackSource
-
public interface JpaCallbackSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCallbackMethod(java.lang.Class<? extends java.lang.annotation.Annotation> callbackType)
java.lang.String
getName()
boolean
isListener()
-
-
-
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
entity
ormapped superclass
and 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
entity
ormapped superclass
are defined. This can be either the entity/mapped superclass itself or anentity listener
.
-
isListener
boolean isListener()
- Returns:
true
if this callback class represents callbacks defined within anentity listener
.
-
-