public enum Orm2ddlPolicy extends Enum<Orm2ddlPolicy>
CREATE_OR_UPDATE_DDL.MetaParams,
Default value| Enum Constant and Description |
|---|
CREATE_DDL
Create full DDL structure in condition that the the database structure was not found.
|
CREATE_OR_UPDATE_DDL
Create or update full DDL structure.
|
DO_NOTHING
Framework is expected to match the DDL structure with the ORM model and do not make any validation.
|
INHERITED
The value is defined from a parent.
|
VALIDATE
Throw the IllegalStateException in case missing a table, index, or column in the connected database.
|
WARNING
The policy makes no change in the database, however it logs a message in case missing a table, index, or column
in the connected database - unlike option
DO_NOTHING which make no log. |
| Modifier and Type | Method and Description |
|---|---|
static Orm2ddlPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Orm2ddlPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Orm2ddlPolicy DO_NOTHING
WARNINGpublic static final Orm2ddlPolicy WARNING
DO_NOTHING which make no log.DO_NOTHINGpublic static final Orm2ddlPolicy CREATE_DDL
public static final Orm2ddlPolicy CREATE_OR_UPDATE_DDL
public static final Orm2ddlPolicy VALIDATE
public static final Orm2ddlPolicy INHERITED
CREATE_OR_UPDATE_DDL will be used.CREATE_OR_UPDATE_DDLpublic static Orm2ddlPolicy[] values()
for (Orm2ddlPolicy c : Orm2ddlPolicy.values()) System.out.println(c);
public static Orm2ddlPolicy 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 nullCopyright 2013, Pavel Ponec