com.buildforge.services.common.dbo
Class BuildClassDBO

java.lang.Object
  extended by com.buildforge.services.common.dbo.DBObject
      extended by com.buildforge.services.common.dbo.BuildClassDBO

public class BuildClassDBO
extends DBObject

Database information representing a build class.


Nested Class Summary
static class BuildClassDBO.PurgeRule
          Specifies which of a project's builds may be purged automatically by the system on the basis of whether or not they passed.
static class BuildClassDBO.PurgeType
          Identifies what is deleted and what is kept when a build is purged.
 
Field Summary
static java.lang.Class<BuildClassDBO> CLASS
          This class.
static java.lang.String TYPE_KEY
           
 
Constructor Summary
BuildClassDBO()
           
 
Method Summary
 BuildClassDBO fromArray(java.lang.Object[] data)
          Deserialize the database object's settings from a request array.
 int getEnterChainProjectId()
           
 int getExitChainProjectId()
           
 java.lang.String getId()
           
 int getLevel()
           
 int getMaxBuilds()
           
 java.lang.String getName()
           
 int getPurgeChainProjectId()
           
 int getPurgeDays()
           
 BuildClassDBO.PurgeRule getPurgeRule()
           
 BuildClassDBO.PurgeType getPurgeType()
           
 java.lang.String getTypeKey()
          Retrieve the key that should be used to look up the display name for a data type.
 boolean isLive()
          Checks whether or not the object is live.
 void setEnterChainProjectId(int enterChainProjectId)
           
 void setExitChainProjectId(int exitChainProjectId)
           
 void setId(java.lang.String id)
           
 void setLevel(int level)
           
 void setMaxBuilds(int maxBuilds)
           
 void setName(java.lang.String name)
           
 void setPurgeChainProjectId(int purgeChainProjectId)
           
 void setPurgeDays(int purgeDays)
           
 void setPurgeRule(BuildClassDBO.PurgeRule purgeRule)
           
 void setPurgeType(BuildClassDBO.PurgeType purgeType)
           
 java.lang.Object[] toArray()
          Serializes this database object as an array of objects.
 java.lang.String toString()
           
 
Methods inherited from class com.buildforge.services.common.dbo.DBObject
badId, badName, checkDead, checkLive, collision, collision
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_KEY

public static final java.lang.String TYPE_KEY
See Also:
Constant Field Values

CLASS

public static final java.lang.Class<BuildClassDBO> CLASS
This class.

Constructor Detail

BuildClassDBO

public BuildClassDBO()
Method Detail

getTypeKey

public java.lang.String getTypeKey()
Description copied from class: DBObject
Retrieve the key that should be used to look up the display name for a data type.

Specified by:
getTypeKey in class DBObject
Returns:
the type key for this object's class

isLive

public boolean isLive()
Description copied from class: DBObject
Checks whether or not the object is live. Note that this is not valid for object types that do not have a unique identifier. Those for which no reasonable implementation exists should always return false.

Specified by:
isLive in class DBObject
Returns:
true iff liveness is a valid concept for this object, and the object is live; otherwise, false is returned.

getId

public java.lang.String getId()

getEnterChainProjectId

public int getEnterChainProjectId()

getExitChainProjectId

public int getExitChainProjectId()

getLevel

public int getLevel()

getMaxBuilds

public int getMaxBuilds()

getName

public java.lang.String getName()

getPurgeChainProjectId

public int getPurgeChainProjectId()

getPurgeDays

public int getPurgeDays()

getPurgeRule

public BuildClassDBO.PurgeRule getPurgeRule()

getPurgeType

public BuildClassDBO.PurgeType getPurgeType()

setId

public void setId(java.lang.String id)

setEnterChainProjectId

public void setEnterChainProjectId(int enterChainProjectId)

setExitChainProjectId

public void setExitChainProjectId(int exitChainProjectId)

setLevel

public void setLevel(int level)

setMaxBuilds

public void setMaxBuilds(int maxBuilds)

setName

public void setName(java.lang.String name)

setPurgeChainProjectId

public void setPurgeChainProjectId(int purgeChainProjectId)

setPurgeDays

public void setPurgeDays(int purgeDays)

setPurgeRule

public void setPurgeRule(BuildClassDBO.PurgeRule purgeRule)

setPurgeType

public void setPurgeType(BuildClassDBO.PurgeType purgeType)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fromArray

public BuildClassDBO fromArray(java.lang.Object[] data)
                        throws APIException
Description copied from class: DBObject
Deserialize the database object's settings from a request array. This method is used to reconstruct a database object from the array that was created by DBObject.toArray().

Specified by:
fromArray in class DBObject
Parameters:
data - the object list that renders this object
Returns:
this object, for convenience
Throws:
APIException - if there is something wrong with the serialized data that interferes with the reconstruction of the object. The most obvious reason for this would be if the serialized array contains the wrong number of fields or otherwise does not match the serialized form for this type of database object.

toArray

public java.lang.Object[] toArray()
Description copied from class: DBObject
Serializes this database object as an array of objects. As specified in the description for Protocol, all supported protocols transfer database objects in this form.

Specified by:
toArray in class DBObject