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(java.lang.Object value)
Used to interpret the value of
AvailableSettings.HBM2DDL_AUTO |
static Action |
interpretJpaSetting(java.lang.Object value)
Used when processing JPA configuration to interpret the user config values.
|
java.lang.String |
toString() |
static Action |
valueOf(java.lang.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 SchemaCreator
public static final Action DROP
SchemaDropper
public static final Action CREATE
SchemaDropper
followed immediately by a call to SchemaCreator
public 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(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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Action>
public static Action interpretJpaSetting(java.lang.Object value)
AvailableSettings.HBM2DDL_DATABASE_ACTION
or AvailableSettings.HBM2DDL_SCRIPTS_ACTION
value
- The encountered config valueNONE
.java.lang.IllegalArgumentException
- If the incoming value is unrecognizedpublic static Action interpretHbm2ddlSetting(java.lang.Object value)
AvailableSettings.HBM2DDL_AUTO
value
- The encountered config valueNONE
.java.lang.IllegalArgumentException
- If the incoming value is unrecognizedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.