com.buildforge.services.common.dbo
Enum ProjectDBO.InUse

java.lang.Object
  extended by java.lang.Enum<ProjectDBO.InUse>
      extended by 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.

ValueMeaning
NOThe project is not in use and can be deleted normally.
YESThe project has dependent data, such as existing builds or scheduler entries, and can only be deleted by clobbering it.
CHAINThe 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.


Enum Constant Summary
CHAIN
           
NO
           
YES
           
 
Field Summary
static java.lang.Class<ProjectDBO.InUse> CLASS
           
 
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
 

Enum Constant Detail

NO

public static final ProjectDBO.InUse NO

YES

public static final ProjectDBO.InUse YES

CHAIN

public static final ProjectDBO.InUse CHAIN
Field Detail

CLASS

public static final java.lang.Class<ProjectDBO.InUse> CLASS
Method Detail

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