Package net.sf.basedb.core
Enum Job.Type
- All Implemented Interfaces:
Serializable
,Comparable<Job.Type>
,java.lang.constant.Constable
- Enclosing class:
- Job
public static enum Job.Type extends Enum<Job.Type>
The type of job.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description OTHER
The job is executed by some other program.RUN_PLUGIN
The job is executed by a plugin. -
Field Summary
Fields Modifier and Type Field Description private String
displayValue
private int
value
private static Map<Integer,Job.Type>
valueMapping
Maps the integer that is stored in the database. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static Job.Type
fromValue(int value)
Get theJob.Status
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aJob.Status
to the database.String
toString()
static Job.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Job.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RUN_PLUGIN
The job is executed by a plugin. -
OTHER
The job is executed by some other program.
-
-
Field Details
-
valueMapping
Maps the integer that is stored in the database. -
value
private final int value -
displayValue
-
-
Constructor Details
-
Type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
fromValue
Get theJob.Status
object when you know the integer code.- Parameters:
value
- The integer value.- Returns:
- The type object or null if the value is unknown
-
toString
-
getValue
public int getValue()Get the integer value that is used when storing aJob.Status
to the database.- Returns:
- The intger value of this type
-