枚举 CascadePoint
- java.lang.Object
-
- java.lang.Enum<CascadePoint>
-
- org.hibernate.engine.internal.CascadePoint
-
- 所有已实现的接口:
Serializable,Comparable<CascadePoint>
public enum CascadePoint extends Enum<CascadePoint>
Describes the point at which a cascade is occurring- 作者:
- Steve Ebersole
-
-
枚举常量概要
枚举常量 枚举常量 说明 AFTER_EVICTA cascade point that occurs just after eviction of the parent entity from the session cacheAFTER_INSERT_BEFORE_DELETEA cascade point that occurs just after the insertion of the parent entity and just before deletionAFTER_INSERT_BEFORE_DELETE_VIA_COLLECTIONA cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collectionAFTER_LOCKA cascade point that occurs just after refreshing a parent entityAFTER_UPDATEA cascade point that occurs just after update of the parent entityBEFORE_FLUSHA cascade point that occurs just before the session is flushedBEFORE_INSERT_AFTER_DELETEA cascade point that occurs just before the insertion of the parent entity and just after deletionBEFORE_MERGEA cascade point that occurs just before merging from a transient parent entity into the object in the session cacheBEFORE_REFRESHA cascade point that occurs just after locking a transient parent entity into the session cache
-
-
-
枚举常量详细资料
-
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
-
-
方法详细资料
-
values
public static CascadePoint[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (CascadePoint c : CascadePoint.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static CascadePoint valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-