|
|||||||||
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.ManifestDBO
public class ManifestDBO
Database information representing the current set of manifest data for a server.
Field Summary | |
---|---|
static java.lang.String |
TYPE_KEY
|
Constructor Summary | |
---|---|
ManifestDBO()
|
Method Summary | |
---|---|
void |
addProperty(ManifestPropertyDBO newProperty)
|
ManifestDBO |
fromArray(java.lang.Object[] data)
Deserialize the database object's settings from a request array. |
java.lang.String |
getName()
|
java.util.Collection<ManifestPropertyDBO> |
getProperties()
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties(ManifestPropertyDBO.Category category)
Returns manifest properties in an easy-to-use map format |
ManifestPropertyDBO |
getProperty(java.lang.String propertyName)
|
java.lang.String |
getPropertyValue(java.lang.String propertyName)
|
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. |
ManifestPropertyDBO |
removeProperty(java.lang.String propertyName)
|
static void |
sanityCheck(java.lang.String name)
|
void |
setName(java.lang.String name)
|
void |
setProperties(java.util.Collection<ManifestPropertyDBO> newProperties)
|
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
Constructor Detail |
---|
public ManifestDBO()
Method Detail |
---|
public java.lang.String getTypeKey()
DBObject
getTypeKey
in class DBObject
public boolean isLive()
DBObject
isLive
in class DBObject
public java.lang.String getName()
public java.util.Collection<ManifestPropertyDBO> getProperties()
public java.util.Map<java.lang.String,java.lang.String> getProperties(ManifestPropertyDBO.Category category)
category
- The category of properties desired
public void setName(java.lang.String name)
public void setProperties(java.util.Collection<ManifestPropertyDBO> newProperties)
public void addProperty(ManifestPropertyDBO newProperty)
public java.lang.String getPropertyValue(java.lang.String propertyName)
public ManifestPropertyDBO getProperty(java.lang.String propertyName)
public ManifestPropertyDBO removeProperty(java.lang.String propertyName)
public static void sanityCheck(java.lang.String name) throws APIException
APIException
public java.lang.String toString()
toString
in class java.lang.Object
public ManifestDBO 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 |