|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Orm2ddlPolicy>
org.ujorm.orm.ao.Orm2ddlPolicy
public enum Orm2ddlPolicy
Values list to control how the DLL (Data Definition Language) statements will be used
to a defining data structure modification.
The default value is CREATE_OR_UPDATE_DDL.
MetaParams,
Default value| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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_DDL| Method Detail |
|---|
public 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 name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||