Package org.hibernate.jpa.event.spi
Enum CallbackType
- java.lang.Object
-
- java.lang.Enum<CallbackType>
-
- org.hibernate.jpa.event.spi.CallbackType
-
- All Implemented Interfaces:
Serializable
,Comparable<CallbackType>
public enum CallbackType extends Enum<CallbackType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POST_LOAD
POST_PERSIST
POST_REMOVE
POST_UPDATE
PRE_PERSIST
PRE_REMOVE
PRE_UPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>
getCallbackAnnotation()
static CallbackType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CallbackType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_UPDATE
public static final CallbackType PRE_UPDATE
-
POST_UPDATE
public static final CallbackType POST_UPDATE
-
PRE_PERSIST
public static final CallbackType PRE_PERSIST
-
POST_PERSIST
public static final CallbackType POST_PERSIST
-
PRE_REMOVE
public static final CallbackType PRE_REMOVE
-
POST_REMOVE
public static final CallbackType POST_REMOVE
-
POST_LOAD
public static final CallbackType POST_LOAD
-
-
Method Detail
-
values
public static CallbackType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CallbackType c : CallbackType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallbackType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCallbackAnnotation
public Class<? extends Annotation> getCallbackAnnotation()
-
-