Package org.hibernate.engine.internal
Enum CascadePoint
- java.lang.Object
-
- java.lang.Enum<CascadePoint>
-
- org.hibernate.engine.internal.CascadePoint
-
- All Implemented Interfaces:
Serializable
,Comparable<CascadePoint>
public enum CascadePoint extends Enum<CascadePoint>
Describes the point at which a cascade is occurring
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_EVICT
A cascade point that occurs just after eviction of the parent entity from the session cacheAFTER_INSERT_BEFORE_DELETE
A cascade point that occurs just after the insertion of the parent entity and just before deletionAFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION
A cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collectionAFTER_LOCK
A cascade point that occurs just after refreshing a parent entityAFTER_UPDATE
A cascade point that occurs just after update of the parent entityBEFORE_FLUSH
A cascade point that occurs just before the session is flushedBEFORE_INSERT_AFTER_DELETE
A cascade point that occurs just before the insertion of the parent entity and just after deletionBEFORE_MERGE
A cascade point that occurs just before merging from a transient parent entity into the object in the session cacheBEFORE_REFRESH
A cascade point that occurs just after locking a transient parent entity into the session cache
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CascadePoint
valueOf(String name)
Returns the enum constant of this type with the specified name.static CascadePoint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AFTER_INSERT_BEFORE_DELETE
public static final CascadePoint 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
public static final CascadePoint 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
public static final CascadePoint 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
public static final CascadePoint AFTER_UPDATE
A cascade point that occurs just after update of the parent entity
-
BEFORE_FLUSH
public static final CascadePoint BEFORE_FLUSH
A cascade point that occurs just before the session is flushed
-
AFTER_EVICT
public static final CascadePoint AFTER_EVICT
A cascade point that occurs just after eviction of the parent entity from the session cache
-
BEFORE_REFRESH
public static final CascadePoint BEFORE_REFRESH
A cascade point that occurs just after locking a transient parent entity into the session cache
-
AFTER_LOCK
public static final CascadePoint AFTER_LOCK
A cascade point that occurs just after refreshing a parent entity
-
BEFORE_MERGE
public static final CascadePoint BEFORE_MERGE
A cascade point that occurs just before merging from a transient parent entity into the object in the session cache
-
-
Method Detail
-
values
public static CascadePoint[] 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 (CascadePoint c : CascadePoint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CascadePoint 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
-
-