Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Enum Class ReferentialIntegrityErrorHandling
java.lang.Object
java.lang.Enum<ReferentialIntegrityErrorHandling>
is.codion.swing.framework.ui.ReferentialIntegrityErrorHandling
- All Implemented Interfaces:
Serializable
,Comparable<ReferentialIntegrityErrorHandling>
,Constable
The possible actions to take on a referential integrity error.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisplay the dependencies causing the error.Display the error. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<ReferentialIntegrityErrorHandling>
Specifies whether to display the error message or the dependent entities in case of a referential integrity error on delete Value type:ReferentialIntegrityErrorHandling
Default value:DISPLAY_ERROR
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ReferentialIntegrityErrorHandling[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISPLAY_ERROR
Display the error. -
DISPLAY_DEPENDENCIES
Display the dependencies causing the error.
-
-
Field Details
-
REFERENTIAL_INTEGRITY_ERROR_HANDLING
public static final PropertyValue<ReferentialIntegrityErrorHandling> REFERENTIAL_INTEGRITY_ERROR_HANDLINGSpecifies whether to display the error message or the dependent entities in case of a referential integrity error on delete- Value type:
ReferentialIntegrityErrorHandling
- Default value:
DISPLAY_ERROR
- Value type:
-
-
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
-