Package org.hibernate.envers
Enum RelationTargetNotFoundAction
- java.lang.Object
-
- java.lang.Enum<RelationTargetNotFoundAction>
-
- org.hibernate.envers.RelationTargetNotFoundAction
-
- All Implemented Interfaces:
Serializable
,Comparable<RelationTargetNotFoundAction>
public enum RelationTargetNotFoundAction extends Enum<RelationTargetNotFoundAction>
Defines the actions on how to handleEntityNotFoundException
cases when a relation between two entities (audited or not) cannot be found in the data store.- See Also:
NotFoundAction
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Specifies that exception handling should be based on the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.ERROR
Specifies that exceptions should be thrown regardless of the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.IGNORE
Specifies that exceptions should be ignored regardless of the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelationTargetNotFoundAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static RelationTargetNotFoundAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final RelationTargetNotFoundAction DEFAULT
Specifies that exception handling should be based on the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.
-
ERROR
public static final RelationTargetNotFoundAction ERROR
Specifies that exceptions should be thrown regardless of the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.
-
IGNORE
public static final RelationTargetNotFoundAction IGNORE
Specifies that exceptions should be ignored regardless of the global system property:EnversSettings.GLOBAL_RELATION_NOT_FOUND_LEGACY_FLAG
.
-
-
Method Detail
-
values
public static RelationTargetNotFoundAction[] 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 (RelationTargetNotFoundAction c : RelationTargetNotFoundAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelationTargetNotFoundAction 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 nameNullPointerException
- if the argument is null
-
-