|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.buildforge.services.common.dbo.DBObject
com.buildforge.services.common.dbo.BuildClassDBO
public class BuildClassDBO
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 |
---|
public static final java.lang.String TYPE_KEY
public static final java.lang.Class<BuildClassDBO> CLASS
Constructor Detail |
---|
public BuildClassDBO()
Method Detail |
---|
public java.lang.String getTypeKey()
DBObject
getTypeKey
in class DBObject
public boolean isLive()
DBObject
isLive
in class DBObject
public java.lang.String getId()
public int getEnterChainProjectId()
public int getExitChainProjectId()
public int getLevel()
public int getMaxBuilds()
public java.lang.String getName()
public int getPurgeChainProjectId()
public int getPurgeDays()
public BuildClassDBO.PurgeRule getPurgeRule()
public BuildClassDBO.PurgeType getPurgeType()
public void setId(java.lang.String id)
public void setEnterChainProjectId(int enterChainProjectId)
public void setExitChainProjectId(int exitChainProjectId)
public void setLevel(int level)
public void setMaxBuilds(int maxBuilds)
public void setName(java.lang.String name)
public void setPurgeChainProjectId(int purgeChainProjectId)
public void setPurgeDays(int purgeDays)
public void setPurgeRule(BuildClassDBO.PurgeRule purgeRule)
public void setPurgeType(BuildClassDBO.PurgeType purgeType)
public java.lang.String toString()
toString
in class java.lang.Object
public BuildClassDBO fromArray(java.lang.Object[] data) throws APIException
DBObject
DBObject.toArray()
.
fromArray
in class DBObject
data
- the object list that renders this object
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.public java.lang.Object[] toArray()
DBObject
Protocol
, all supported
protocols transfer database objects in this form.
toArray
in class DBObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |