org.ujoframework.orm.ao
Enum Orm2ddlPolicy

java.lang.Object
  extended by java.lang.Enum<Orm2ddlPolicy>
      extended by org.ujoframework.orm.ao.Orm2ddlPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Orm2ddlPolicy>

public enum Orm2ddlPolicy
extends java.lang.Enum<Orm2ddlPolicy>

Possible values to create the DLL (Data Definition Language) for for defining data structures.

Author:
Pavel Ponec
See Also:
MetaParams

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.
VALIDATE
          Throw the IllegalStateException in case missing a table, index, or column in the connected database.
 
Method Summary
static Orm2ddlPolicy valueOf(java.lang.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

DO_NOTHING

public static final Orm2ddlPolicy DO_NOTHING
Framework is expected to match the DDL structure with the ORM model and do not make any validation.


CREATE_DDL

public static final Orm2ddlPolicy CREATE_DDL
Create full DDL structure in condition that the the database structure was not found.


CREATE_OR_UPDATE_DDL

public static final Orm2ddlPolicy CREATE_OR_UPDATE_DDL
Create or update full DDL structure. It is the default value.


VALIDATE

public static final Orm2ddlPolicy VALIDATE
Throw the IllegalStateException in case missing a table, index, or column in the connected database.

Method Detail

values

public static Orm2ddlPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Orm2ddlPolicy c : Orm2ddlPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Orm2ddlPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2010. All Rights Reserved.