Package org.hibernate.boot.models
Enum Class JpaEventListenerStyle
- All Implemented Interfaces:
Serializable
,Comparable<JpaEventListenerStyle>
,Constable
JPA defines 2 ways events callbacks can happen...
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe event method is declared on the entity class.The event method is declared on a separate "listener" class named by EntityListeners. -
Method Summary
Modifier and TypeMethodDescriptionstatic JpaEventListenerStyle
Returns the enum constant of this class with the specified name.static JpaEventListenerStyle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CALLBACK
The event method is declared on the entity class. The annotated method should define no arguments and have a void return type. -
LISTENER
The event method is declared on a separate "listener" class named by EntityListeners. The annotated method should accept a single argument - the entity instance - and have a void return type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-