Enum CascadeType

java.lang.Object
java.lang.Enum<CascadeType>
com.codename1.annotations.db.CascadeType
All Implemented Interfaces:
Comparable<CascadeType>

public enum CascadeType extends Enum<CascadeType>
Operations propagated from an entity to its related entities.
  • Enum Constant Details

    • ALL

      public static final CascadeType ALL
      Propagates all supported cascade operations.
    • PERSIST

      public static final CascadeType PERSIST
      Persists new related entities.
    • MERGE

      public static final CascadeType MERGE
      Merges related entity state.
    • REMOVE

      public static final CascadeType REMOVE
      Removes related entities.
    • REFRESH

      public static final CascadeType REFRESH
      Reloads related entities from storage.
    • DETACH

      public static final CascadeType DETACH
      Detaches already loaded related entities.
  • Method Details

    • values

      public static CascadeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CascadeType 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 name
      NullPointerException - if the argument is null