com.buildforge.services.common.dbo
Enum ResultDBO.Floating

java.lang.Object
  extended by java.lang.Enum<ResultDBO.Floating>
      extended by com.buildforge.services.common.dbo.ResultDBO.Floating
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResultDBO.Floating>
Enclosing class:
ResultDBO

public static enum ResultDBO.Floating
extends java.lang.Enum<ResultDBO.Floating>

Floating state is related to the implementation of the project sticky flag. A step is floating, and therefore eligible to be stuck, if

  1. The step did not specify a selector to use, and
  2. The step has not already been stuck, and
  3. The project is marked as sticky
Otherwise, the step is floating. When the first floating step runs, it and all the following steps that are floating are assigned to a server.

The floating state also interacts with .bset server. That command will change the server for all steps except those that explicitly specified a selector; that is, those that are FIXED.

The values for this field have the following meanings:

ValueMeaning
FIXEDThe step specified a selector.
STUCKThe step is already stuck.
NOThe project is not marked sticky.
YESThe step is floating.


Enum Constant Summary
FIXED
           
NO
           
STUCK
           
YES
           
 
Field Summary
static java.lang.Class<ResultDBO.Floating> CLASS
           
 char code
           
 
Method Summary
static ResultDBO.Floating fromDB(char c)
           
static ResultDBO.Floating fromObject(java.lang.Object o)
           
static ResultDBO.Floating valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResultDBO.Floating[] 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

FIXED

public static final ResultDBO.Floating FIXED

STUCK

public static final ResultDBO.Floating STUCK

NO

public static final ResultDBO.Floating NO

YES

public static final ResultDBO.Floating YES
Field Detail

CLASS

public static final java.lang.Class<ResultDBO.Floating> CLASS

code

public final char code
Method Detail

values

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

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

valueOf

public static ResultDBO.Floating 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

fromDB

public static ResultDBO.Floating fromDB(char c)

fromObject

public static ResultDBO.Floating fromObject(java.lang.Object o)
                                     throws APIException
Throws:
APIException