Enum Class CascadePoint

java.lang.Object
java.lang.Enum<CascadePoint>
org.hibernate.engine.internal.CascadePoint
All Implemented Interfaces:
Serializable, Comparable<CascadePoint>, Constable

public enum CascadePoint extends Enum<CascadePoint>
Describes the point at which a cascade is occurring
  • Enum Constant Details

    • 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 Details

    • values

      public static CascadePoint[] 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

      public static CascadePoint valueOf(String name)
      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 name
      NullPointerException - if the argument is null