public enum ConflictStrategy extends java.lang.Enum<ConflictStrategy>
Unique to specify the conflict resolution strategy.| Enum Constant and Description |
|---|
FAIL
Throws UniqueViolationException if any property violates a
Unique constraint. |
REPLACE
Any conflicting objects are deleted before the object is inserted.
|
| Modifier and Type | Method and Description |
|---|---|
static ConflictStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConflictStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConflictStrategy FAIL
Unique constraint.public static final ConflictStrategy REPLACE
public static ConflictStrategy[] values()
for (ConflictStrategy c : ConflictStrategy.values()) System.out.println(c);
public static ConflictStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null