Enum Integrity

    • Enum Constant Detail

      • NONE

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

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

        public static final Integrity RELATED
        application-level and foreign keys for non-composite relations.
      • COMPOSITE

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

        public static final Integrity RELATED_DBONLY
        same as RELATED but no check on application level.
      • 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 Detail

      • values

        public static Integrity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Integrity c : Integrity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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