Package org.copperengine.core.persistent
Enum DBProcessingState
- java.lang.Object
-
- java.lang.Enum<DBProcessingState>
-
- org.copperengine.core.persistent.DBProcessingState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DBProcessingState>
public enum DBProcessingState extends java.lang.Enum<DBProcessingState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBProcessingState
getByOrdinal(int ordinal)
static ProcessingState
getProcessingStateByState(DBProcessingState state)
static DBProcessingState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DBProcessingState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENQUEUED
public static final DBProcessingState ENQUEUED
-
PROCESSING
public static final DBProcessingState PROCESSING
-
WAITING
public static final DBProcessingState WAITING
-
FINISHED
public static final DBProcessingState FINISHED
-
INVALID
public static final DBProcessingState INVALID
-
ERROR
public static final DBProcessingState ERROR
-
-
Method Detail
-
values
public static DBProcessingState[] 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 (DBProcessingState c : DBProcessingState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBProcessingState 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 namejava.lang.NullPointerException
- if the argument is null
-
getByOrdinal
public static DBProcessingState getByOrdinal(int ordinal)
-
getProcessingStateByState
public static ProcessingState getProcessingStateByState(DBProcessingState state)
-
-