Package org.hibernate.engine.internal
Enum Class CascadePoint
- All Implemented Interfaces:
Serializable
,Comparable<CascadePoint>
,Constable
Describes the point at which a cascade is occurring
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA cascade point that occurs just after eviction of the parent entity from the session cacheA cascade point that occurs just after the insertion of the parent entity and just before deletionA cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collectionA cascade point that occurs just after refreshing a parent entityA cascade point that occurs just after update of the parent entityA cascade point that occurs just before the session is flushedA cascade point that occurs just before the insertion of the parent entity and just after deletionA cascade point that occurs just before merging from a transient parent entity into the object in the session cacheA cascade point that occurs just after locking a transient parent entity into the session cache -
Method Summary
Modifier and TypeMethodDescriptionstatic CascadePoint
Returns the enum constant of this class with the specified name.static CascadePoint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AFTER_INSERT_BEFORE_DELETE
A cascade point that occurs just after the insertion of the parent entity and just before deletion -
BEFORE_INSERT_AFTER_DELETE
A cascade point that occurs just before the insertion of the parent entity and just after deletion -
AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION
A cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collection -
AFTER_UPDATE
A cascade point that occurs just after update of the parent entity -
BEFORE_FLUSH
A cascade point that occurs just before the session is flushed -
AFTER_EVICT
A cascade point that occurs just after eviction of the parent entity from the session cache -
BEFORE_REFRESH
A cascade point that occurs just after locking a transient parent entity into the session cache -
AFTER_LOCK
A cascade point that occurs just after refreshing a parent entity -
BEFORE_MERGE
A cascade point that occurs just before merging from a transient parent entity into the object in the session cache
-
-
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
-