net.java.ao.schema.ddl
Enum DDLActionType

java.lang.Object
  extended by java.lang.Enum<DDLActionType>
      extended by net.java.ao.schema.ddl.DDLActionType
All Implemented Interfaces:
Serializable, Comparable<DDLActionType>

public enum DDLActionType
extends Enum<DDLActionType>

Specifies a specific DDL action type in a database-agnostic manner. This enum contains all of the DDL action types supported by ActiveObjects, regardless of the fact that not all databases support all of these actions.

Author:
Daniel Spiewak

Enum Constant Summary
ALTER_ADD_COLUMN
           
ALTER_ADD_KEY
           
ALTER_CHANGE_COLUMN
           
ALTER_DROP_COLUMN
           
ALTER_DROP_KEY
           
CREATE
           
CREATE_INDEX
           
DROP
           
DROP_INDEX
           
 
Method Summary
static DDLActionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DDLActionType[] 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

CREATE

public static final DDLActionType CREATE

DROP

public static final DDLActionType DROP

ALTER_ADD_COLUMN

public static final DDLActionType ALTER_ADD_COLUMN

ALTER_CHANGE_COLUMN

public static final DDLActionType ALTER_CHANGE_COLUMN

ALTER_DROP_COLUMN

public static final DDLActionType ALTER_DROP_COLUMN

ALTER_ADD_KEY

public static final DDLActionType ALTER_ADD_KEY

ALTER_DROP_KEY

public static final DDLActionType ALTER_DROP_KEY

CREATE_INDEX

public static final DDLActionType CREATE_INDEX

DROP_INDEX

public static final DDLActionType DROP_INDEX
Method Detail

values

public static DDLActionType[] 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 (DDLActionType c : DDLActionType.values())
    System.out.println(c);

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

valueOf

public static DDLActionType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null