public enum UniqueConstraintSchemaUpdateStrategy extends Enum<UniqueConstraintSchemaUpdateStrategy>
Enum Constant and Description |
---|
DROP_RECREATE_QUIETLY
Attempt to drop, then (re-)create each unique constraint.
|
RECREATE_QUIETLY
Attempt to (re-)create unique constraints, ignoring exceptions thrown
(e.g., if the constraint already existed)
|
SKIP
Do not attempt to create unique constraints on a schema update
|
Modifier and Type | Method and Description |
---|---|
static UniqueConstraintSchemaUpdateStrategy |
byName(String name) |
static UniqueConstraintSchemaUpdateStrategy |
interpret(Object setting) |
static UniqueConstraintSchemaUpdateStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UniqueConstraintSchemaUpdateStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UniqueConstraintSchemaUpdateStrategy DROP_RECREATE_QUIETLY
public static final UniqueConstraintSchemaUpdateStrategy RECREATE_QUIETLY
public static final UniqueConstraintSchemaUpdateStrategy SKIP
public static UniqueConstraintSchemaUpdateStrategy[] values()
for (UniqueConstraintSchemaUpdateStrategy c : UniqueConstraintSchemaUpdateStrategy.values()) System.out.println(c);
public static UniqueConstraintSchemaUpdateStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static UniqueConstraintSchemaUpdateStrategy byName(String name)
public static UniqueConstraintSchemaUpdateStrategy interpret(Object setting)
Copyright © 2020 JBoss by Red Hat. All rights reserved.