com.buildforge.services.common.dbo
Enum ProjectDBO.InUse
java.lang.Object
java.lang.Enum<ProjectDBO.InUse>
com.buildforge.services.common.dbo.ProjectDBO.InUse
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ProjectDBO.InUse>
- Enclosing class:
- ProjectDBO
public static enum ProjectDBO.InUse
- extends java.lang.Enum<ProjectDBO.InUse>
How this project is currently being used.
Value | Meaning |
NO | The project is not in use and can be
deleted normally. |
YES | The project has dependent data, such as
existing builds or scheduler entries, and can only be deleted
by clobbering it. |
CHAIN | The project is the target of a chaining
behavior, such as the pass chain for a step or the purge chain
for a class. The project can only be deleted by clobbering it,
WHICH WILL CLEAR ALL CHAINS TO THE PROJECT AND VERY LIKELY
BREAK SOMETHING ELSE. |
Method Summary |
static ProjectDBO.InUse |
fromObject(java.lang.Object o)
Like valueOf, but uses internationalized exception messages. |
static ProjectDBO.InUse |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ProjectDBO.InUse[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NO
public static final ProjectDBO.InUse NO
YES
public static final ProjectDBO.InUse YES
CHAIN
public static final ProjectDBO.InUse CHAIN
CLASS
public static final java.lang.Class<ProjectDBO.InUse> CLASS
values
public static final ProjectDBO.InUse[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ProjectDBO.InUse c : ProjectDBO.InUse.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ProjectDBO.InUse 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 name
fromObject
public static ProjectDBO.InUse fromObject(java.lang.Object o)
throws APIException
- Like valueOf, but uses internationalized exception messages.
- Parameters:
inUse
- the enum to look up
- Returns:
- the enum
- Throws:
APIException
- if inUse is null or
does not specify a valid enum name