edu.sdsc.inca.depot.persistent
Class ComparisonResult

java.lang.Object
  extended by edu.sdsc.inca.depot.persistent.PersistentObject
      extended by edu.sdsc.inca.depot.persistent.ComparisonResult

public class ComparisonResult
extends PersistentObject

Represents results of a comparison between accepted values and report output.


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
ComparisonResult()
          Default constructor.
 
Method Summary
 PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
          Copies information from an Inca schema XmlBean object so that this object contains equivalent information.
 java.lang.Long getId()
          Retrieve the id -- null if not yet connected to database.
 java.lang.Long getReportId()
          Get the id of the Report that was used in this comparison.
 java.lang.String getResult()
          Return the result of the comparison in the DB.
 java.lang.Long getSeriesConfigId()
          Get the id of the SeriesConfig that was used in this comparison.
 void setId(java.lang.Long id)
          Set the id.
 void setReportId(java.lang.Long id)
          Set the id of the report that was used in this comparison.
 void setResult(java.lang.String result)
          Set the result of the comparison.
 void setSeriesConfigId(java.lang.Long id)
          Set the id of the SeriesConfig that was used in this comparison.
 org.apache.xmlbeans.XmlObject toBean()
          Returns a Inca schema XmlBean object that contains information equivalent to this object.
 java.lang.String toXml()
          Returns XML that represents the information in this object.
 
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject
truncate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparisonResult

public ComparisonResult()
Default constructor.

Method Detail

fromBean

public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean object so that this object contains equivalent information.

Specified by:
fromBean in class PersistentObject
Parameters:
o - the XmlBean object to copy
Returns:
this, for convenience

getId

public java.lang.Long getId()
Retrieve the id -- null if not yet connected to database.

Returns:
The Long representation of the DB ID

setId

public void setId(java.lang.Long id)
Set the id. Hibernate use only.

Parameters:
id - The DB ID.

getResult

public java.lang.String getResult()
Return the result of the comparison in the DB.

Returns:
the result of this comparison

setResult

public void setResult(java.lang.String result)
Set the result of the comparison.

Parameters:
result - the result of the comparison

getReportId

public java.lang.Long getReportId()
Get the id of the Report that was used in this comparison.

Returns:
the id of the report that was used in this comparison

setReportId

public void setReportId(java.lang.Long id)
Set the id of the report that was used in this comparison.

Parameters:
id - the id of the report that was used in this comparison

getSeriesConfigId

public java.lang.Long getSeriesConfigId()
Get the id of the SeriesConfig that was used in this comparison.

Returns:
the id of the SeriesConfig that was used in this comparison

setSeriesConfigId

public void setSeriesConfigId(java.lang.Long id)
Set the id of the SeriesConfig that was used in this comparison.

Parameters:
id - the id of the SeriesConfig that was used in this comparison

toBean

public org.apache.xmlbeans.XmlObject toBean()
Returns a Inca schema XmlBean object that contains information equivalent to this object.

Specified by:
toBean in class PersistentObject
Returns:
an XmlBean object that contains equivalent information

toXml

public java.lang.String toXml()
Returns XML that represents the information in this object.

Overrides:
toXml in class PersistentObject