Enum Class Integrity

java.lang.Object
java.lang.Enum<Integrity>
org.tentackle.model.Integrity
All Implemented Interfaces:
Serializable, Comparable<Integrity>, Constable

public enum Integrity extends Enum<Integrity>
The referential integrity mode.
Author:
harald
  • Enum Constant Details

    • NONE

      public static final Integrity NONE
      no integrity checks at all.
    • SOFT

      public static final Integrity SOFT
      application-level integrity checks only.
    • COMPOSITE

      public static final Integrity COMPOSITE
      application-level and composite relations.
    • COMPOSITE_DBONLY

      public static final Integrity COMPOSITE_DBONLY
      same as COMPOSITE but no check on application level.
    • FULL_DBONLY

      public static final Integrity FULL_DBONLY
      same as FULL but no check on application level.
    • FULL

      public static final Integrity FULL
      application-level and all related and composite relations.
  • Method Details

    • values

      public static Integrity[] 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 Integrity 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
    • isCheckedByApplication

      public boolean isCheckedByApplication()
      Returns whether integrity is checked on the application level.
      Returns:
      true if integrity is checked on the application level
    • isRelatedCheckedByDatabase

      public boolean isRelatedCheckedByDatabase()
      Returns whether integrity is checked by the database for related entities.
      Returns:
      true if integrity is checked by the database
    • isCompositesCheckedByDatabase

      public boolean isCompositesCheckedByDatabase()
      Returns whether integrity is checked by the database for composite entities.
      Returns:
      true if integrity is checked by the database