org.activiti
Enum DbSchemaStrategy

java.lang.Object
  extended by java.lang.Enum<DbSchemaStrategy>
      extended by org.activiti.DbSchemaStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DbSchemaStrategy>

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

Author:
Tom Baeyens

Enum Constant Summary
CHECK_VERSION
          checks the version of the DB schema against the library when the process engine is being created.
CREATE
          Creates the schema when the process engine is being created.
CREATE_DROP
          creates the schema when the process engine is being created and drops the schema when the process engine is being closed.
DROP_CREATE
          drops and creates the schema when the process engine is being created.
 
Method Summary
static DbSchemaStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DbSchemaStrategy[] 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 DbSchemaStrategy CREATE
Creates the schema when the process engine is being created. Probably only useful in testing (eg. when testing rebooting the process engine).


CREATE_DROP

public static final DbSchemaStrategy CREATE_DROP
creates the schema when the process engine is being created and drops the schema when the process engine is being closed.


DROP_CREATE

public static final DbSchemaStrategy DROP_CREATE
drops and creates the schema when the process engine is being created.


CHECK_VERSION

public static final DbSchemaStrategy CHECK_VERSION
checks the version of the DB schema against the library when the process engine is being created.

Method Detail

values

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

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

valueOf

public static DbSchemaStrategy 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 Alfresco. All Rights Reserved.