- All Implemented Interfaces:
Serializable
,Comparable<DataErrorType>
Specific persistence error types we wish to map.
-
Enum Constant Summary
Enum ConstantDescriptionError trying to acquire lock (e.g.Data integrity error like an invalid foreign key.Error with a duplicate primary or unique key.Non recoverable concurrency conflict. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataErrorType
Returns the enum constant of this type with the specified name.static DataErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AcquireLock
Error trying to acquire lock (e.g. failure executing select for update nowait) -
DuplicateKey
Error with a duplicate primary or unique key. -
DataIntegrity
Data integrity error like an invalid foreign key. -
SerializableConflict
Non recoverable concurrency conflict.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-