Enum InverseRemoveStrategy

java.lang.Object
java.lang.Enum<InverseRemoveStrategy>
com.blazebit.persistence.view.InverseRemoveStrategy
All Implemented Interfaces:
Serializable, Comparable<InverseRemoveStrategy>, java.lang.constant.Constable

public enum InverseRemoveStrategy extends Enum<InverseRemoveStrategy>
The strategy to use when an element was removed from the inverse relation.
Since:
1.2.0
Author:
Christian Beikov
  • Enum Constant Details

    • IGNORE

      public static final InverseRemoveStrategy IGNORE
      Ignores the fact that elements were removed from the inverse relation.
    • SET_NULL

      public static final InverseRemoveStrategy SET_NULL
      Sets the mapped by attribute of removed elements to null.
    • REMOVE

      public static final InverseRemoveStrategy REMOVE
      Actually deletes the removed elements.
  • Method Details

    • values

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