- All Implemented Interfaces:
Serializable,Comparable<Integrity>,Constable
The referential integrity mode.
- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionapplication-level and composite relations.same asCOMPOSITEbut no check on application level.application-level and all related and composite relations.same asFULLbut no check on application level.no integrity checks at all.application-level and foreign keys for non-composite relations.same asRELATEDbut no check on application level.application-level integrity checks only. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether integrity is checked on the application level.booleanReturns whether integrity is checked by the database for composite entities.booleanReturns whether integrity is checked by the database for related entities.static IntegrityReturns the enum constant of this class with the specified name.static Integrity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
no integrity checks at all. -
SOFT
application-level integrity checks only. -
RELATED
application-level and foreign keys for non-composite relations. -
COMPOSITE
application-level and composite relations. -
RELATED_DBONLY
same asRELATEDbut no check on application level. -
COMPOSITE_DBONLY
same asCOMPOSITEbut no check on application level. -
FULL_DBONLY
same asFULLbut no check on application level. -
FULL
application-level and all related and composite relations.
-
-
Method Details
-
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
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 nameNullPointerException- 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
-