public enum Action extends Enum<Action>
| Enum Constant and Description |
|---|
CREATE
Database dropping will be generated followed by database creation.
|
CREATE_DROP
Drop the schema and recreate it on SessionFactory startup.
|
CREATE_ONLY
Database creation will be generated.
|
DROP
Database dropping will be generated.
|
NONE
No action will be performed.
|
UPDATE
"update" (Hibernate only) - update (alter) the database schema
|
VALIDATE
"validate" (Hibernate only) - validate the database schema
|
| Modifier and Type | Method and Description |
|---|---|
static Action |
interpretHbm2ddlSetting(Object value)
Used to interpret the value of
AvailableSettings.HBM2DDL_AUTO |
static Action |
interpretJpaSetting(Object value)
Used when processing JPA configuration to interpret the user config values.
|
String |
toString() |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action NONE
public static final Action CREATE_ONLY
CREATE
Corresponds to a call to SchemaCreatorpublic static final Action DROP
SchemaDropperpublic static final Action CREATE
SchemaDropper
followed immediately by a call to SchemaCreatorpublic static final Action CREATE_DROP
public static final Action VALIDATE
public static final Action UPDATE
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action 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 Action interpretJpaSetting(Object value)
AvailableSettings.HBM2DDL_DATABASE_ACTION
or AvailableSettings.HBM2DDL_SCRIPTS_ACTIONvalue - The encountered config valueNONE.IllegalArgumentException - If the incoming value is unrecognizedpublic static Action interpretHbm2ddlSetting(Object value)
AvailableSettings.HBM2DDL_AUTOvalue - The encountered config valueNONE.IllegalArgumentException - If the incoming value is unrecognizedCopyright © 2017 JBoss by Red Hat. All rights reserved.