|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.depot.persistent.PersistentObject edu.sdsc.inca.depot.persistent.Suite
public class Suite
A Suite is a named collection of SeriesConfigs.
Field Summary |
---|
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
---|
DB_EMPTY_STRING, logger, MAX_DB_LONG_STRING_LENGTH, MAX_DB_STRING_LENGTH |
Constructor Summary | |
---|---|
Suite()
Default constructor. |
|
Suite(java.lang.String name,
java.lang.String guid,
java.lang.String description)
Constructs a new Suite containing the specified values. |
Method Summary | |
---|---|
void |
addSeriesConfig(SeriesConfig sc)
Add a SeriesConfig to the set of those associated with the Suite. |
boolean |
equals(java.lang.Object o)
Compares another object to this Suite for logical equality. |
Suite |
fromBean(edu.sdsc.inca.dataModel.suite.Suite s)
Copies information from an Inca schema XmlBean Suite object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Suite object so that this object contains equivalent information. |
static Suite |
generate(java.lang.String guid,
int seriesConfigs)
Returns a phony suite with a given number of unrelated (sharing neither resource nor context) SeriesConfigs. |
java.lang.String |
getDescription()
Get the (usually user-supplied) Suite description string. |
java.lang.String |
getGuid()
Get the guid (agent id + name) of the Suite. |
java.lang.Long |
getId()
Retrieve the id -- null if not yet connected to database. |
java.lang.String |
getName()
Get the name of the Suite. |
SeriesConfig |
getSeriesConfig(int i)
Retrieves a specified SeriesConfig from the associated set. |
java.util.Set |
getSeriesConfigs()
Gets the collection of SeriesConfig objects associated with this Suite. |
int |
getVersion()
Get the version number of the Suite--the number of times updated. |
int |
hashCode()
Calculate a hash code using the same fields that where used in equals. |
void |
incrementVersion()
Add 1 to the version number of the Suite--the number of times updated. |
void |
setDescription(java.lang.String description)
Set the (usually user-supplied) Suite description string. |
void |
setGuid(java.lang.String guid)
Set the guid (agent id + name) of the Suite. |
protected void |
setId(java.lang.Long id)
Set the id. |
void |
setName(java.lang.String name)
Set the name of the Suite. |
protected void |
setSeriesConfigs(java.util.Set configs)
Sets the collection of SeriesConfig objects associated with this Suite. |
void |
setVersion(int version)
Set the version number of the Suite--the number of times updated. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Suite object that contains information equivalent to this object. |
java.lang.String |
toXml()
Returns XML text for this Suite. |
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
---|
truncate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Suite()
public Suite(java.lang.String name, java.lang.String guid, java.lang.String description)
name
- the name of the Suiteguid
- the guid (agent + name) of the Suitedescription
- the description of the SuiteMethod Detail |
---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean
in class PersistentObject
o
- the XmlBean Suite object to copy
public Suite fromBean(edu.sdsc.inca.dataModel.suite.Suite s)
s
- the XmlBean Suite object to copy
public java.lang.Long getId()
protected void setId(java.lang.Long id)
id
- The DB ID.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the Suite namepublic java.lang.String getGuid()
public void setGuid(java.lang.String guid)
guid
- the Suite guidpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the Suite descriptionpublic int getVersion()
public void setVersion(int version)
version
- the Suite version numberpublic void incrementVersion()
public SeriesConfig getSeriesConfig(int i)
i
- the index into the set of the desired SeriesConfig
public java.util.Set getSeriesConfigs()
protected void setSeriesConfigs(java.util.Set configs)
configs
- the set of associated SeriesConfigspublic void addSeriesConfig(SeriesConfig sc)
sc
- a SeriesConfig to associatepublic org.apache.xmlbeans.XmlObject toBean()
toBean
in class PersistentObject
public java.lang.String toXml()
toXml
in class PersistentObject
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare
public int hashCode()
hashCode
in class java.lang.Object
public static Suite generate(java.lang.String guid, int seriesConfigs)
guid
- the suite guidseriesConfigs
- the number of series configs to populate the suite
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |