org.dbmaintain.launch.commandline
Enum CommandLine.DbMaintainOperation

java.lang.Object
  extended by java.lang.Enum<CommandLine.DbMaintainOperation>
      extended by org.dbmaintain.launch.commandline.CommandLine.DbMaintainOperation
All Implemented Interfaces:
Serializable, Comparable<CommandLine.DbMaintainOperation>
Enclosing class:
CommandLine

public static enum CommandLine.DbMaintainOperation
extends Enum<CommandLine.DbMaintainOperation>

Enum that defines all DbMaintain operations that can be invoked using this class.


Enum Constant Summary
CHECK_SCRIPT_UPDATES
           
CLEAN_DATABASE
           
CLEAR_DATABASE
           
CREATE_SCRIPT_ARCHIVE
           
DISABLE_CONSTRAINTS
           
MARK_DATABASE_AS_UPTODATE
           
MARK_ERROR_SCRIPT_PERFORMED
           
MARK_ERROR_SCRIPT_REVERTED
           
UPDATE_DATABASE
           
UPDATE_SEQUENCES
           
 
Method Summary
static CommandLine.DbMaintainOperation getByOperationName(String operationName)
           
 String getOperationName()
           
static CommandLine.DbMaintainOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandLine.DbMaintainOperation[] 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_SCRIPT_ARCHIVE

public static final CommandLine.DbMaintainOperation CREATE_SCRIPT_ARCHIVE

CHECK_SCRIPT_UPDATES

public static final CommandLine.DbMaintainOperation CHECK_SCRIPT_UPDATES

UPDATE_DATABASE

public static final CommandLine.DbMaintainOperation UPDATE_DATABASE

MARK_ERROR_SCRIPT_PERFORMED

public static final CommandLine.DbMaintainOperation MARK_ERROR_SCRIPT_PERFORMED

MARK_ERROR_SCRIPT_REVERTED

public static final CommandLine.DbMaintainOperation MARK_ERROR_SCRIPT_REVERTED

MARK_DATABASE_AS_UPTODATE

public static final CommandLine.DbMaintainOperation MARK_DATABASE_AS_UPTODATE

CLEAR_DATABASE

public static final CommandLine.DbMaintainOperation CLEAR_DATABASE

CLEAN_DATABASE

public static final CommandLine.DbMaintainOperation CLEAN_DATABASE

DISABLE_CONSTRAINTS

public static final CommandLine.DbMaintainOperation DISABLE_CONSTRAINTS

UPDATE_SEQUENCES

public static final CommandLine.DbMaintainOperation UPDATE_SEQUENCES
Method Detail

values

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

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

valueOf

public static CommandLine.DbMaintainOperation 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

getOperationName

public String getOperationName()
Returns:
The name of the operation, that can be used as first command line argument to invoke an operation

getByOperationName

public static CommandLine.DbMaintainOperation getByOperationName(String operationName)
Parameters:
operationName - The name of the operation, that can be used as first command line argument to invoke an operation
Returns:
The operation identified by the given operation name


Copyright © 2011. All Rights Reserved.