public enum SchemaGenAction extends Enum<SchemaGenAction>
AvailableSettings.SCHEMA_GEN_SCRIPTS_ACTION
settings.Enum Constant and Description |
---|
BOTH
"drop-and-create" - both database creation and database dropping will be generated.
|
CREATE
"create" - database creation will be generated
|
DROP
"drop" - database dropping will be generated
|
NONE
"none" - no actions will be performed (aka, generation is disabled).
|
Modifier and Type | Method and Description |
---|---|
boolean |
includesCreate()
Does this action include creations?
|
boolean |
includesDrop()
Does this action include drops?
|
static SchemaGenAction |
interpret(Object value)
Used when processing JPA configuration to interpret the user config values.
|
String |
toString() |
static SchemaGenAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaGenAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaGenAction NONE
public static final SchemaGenAction CREATE
public static final SchemaGenAction DROP
public static final SchemaGenAction BOTH
public static SchemaGenAction[] values()
for (SchemaGenAction c : SchemaGenAction.values()) System.out.println(c);
public static SchemaGenAction 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 SchemaGenAction interpret(Object value)
value
- The encountered config valueNONE
.IllegalArgumentException
- If the incoming value is unrecognizedpublic boolean includesCreate()
public boolean includesDrop()
public String toString()
toString
in class Enum<SchemaGenAction>
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.