org.dbmaintain.launch.commandline
Enum CommandLine.DbMaintainOperation
java.lang.Object
java.lang.Enum<CommandLine.DbMaintainOperation>
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.
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
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.