name.angoca.db2sa
Enum ExecutionState

Package class diagram package ExecutionState
java.lang.Object
  extended by java.lang.Enum<ExecutionState>
      extended by name.angoca.db2sa.ExecutionState
All Implemented Interfaces:
Serializable, Comparable<ExecutionState>

public enum ExecutionState
extends Enum<ExecutionState>

This class represents the state of a command's execution, and the state of the program after execution.
Control Version

Version:
1.0.0 2009-07-19
Author:
Andres Gomez Casanova (AngocA)

Enum Constant Summary
APPLICATION_EXIT
          The application has to finish its execution.
EXECUTED
          The command was successfully executed.
UNKNOWN
          The command has not been executed.
 
Method Summary
static ExecutionState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExecutionState[] 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

UNKNOWN

public static final ExecutionState UNKNOWN
The command has not been executed. State before execution.


EXECUTED

public static final ExecutionState EXECUTED
The command was successfully executed. State after execution to continue the application's execution.


APPLICATION_EXIT

public static final ExecutionState APPLICATION_EXIT
The application has to finish its execution.

Method Detail

values

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

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

valueOf

public static ExecutionState 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


Andres Gomez Casanova (AngocA) Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.