Enum Class Deferrability
- All Implemented Interfaces:
Serializable, Comparable<Deferrability>, Constable
The deferrability of a unique index or foreign key constraint.
Controlled by the
Controlled by the
deferred/deferrable/immediate keywords on an
index line, or by the model defaults' deferred/deferrable/immediate
option (see ModelDefaults.getDeferrability()).- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe constraint is deferrable and checked at the end of the transaction by default.
Selected by thedeferredkeyword.The constraint is deferrable but checked immediately by default.
A transaction may still defer it via@Transaction(deferred=true)/Session.setConstraintsDeferred(true).The constraint is not deferrable: it is always checked immediately.
The default if nothing is specified, and the meaning of the explicitimmediatekeyword. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeferrabilityReturns the enum constant of this class with the specified name.static Deferrability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_DEFERRABLE
The constraint is not deferrable: it is always checked immediately.
The default if nothing is specified, and the meaning of the explicitimmediatekeyword. -
DEFERRABLE_IMMEDIATE
The constraint is deferrable but checked immediately by default.
A transaction may still defer it via@Transaction(deferred=true)/Session.setConstraintsDeferred(true). Selected by thedeferrablekeyword. -
DEFERRABLE_DEFERRED
The constraint is deferrable and checked at the end of the transaction by default.
Selected by thedeferredkeyword.
-
-
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
-