edu.sdsc.inca.depot.commands
Class Query
java.lang.Object
edu.sdsc.inca.protocol.MessageHandler
edu.sdsc.inca.depot.util.HibernateMessageHandler
edu.sdsc.inca.depot.commands.Query
public class Query
- extends HibernateMessageHandler
Constructor Summary |
Query()
|
Method Summary |
void |
executeHibernateAction(edu.sdsc.inca.protocol.ProtocolReader reader,
edu.sdsc.inca.protocol.ProtocolWriter writer)
Execute queries on the depot. |
protected static edu.sdsc.inca.queryResult.ReportSummaryDocument |
toBean(SeriesConfig sc,
ComparisonResult cr,
InstanceInfo ii,
Report r)
Creates a ReportSummaryDocument by copying fields from a DB SeriesConfig. |
protected static edu.sdsc.inca.dataModel.reportDetails.ReportDetailsDocument |
toBean(SeriesConfig sc,
Report r,
InstanceInfo ii,
ComparisonResult cr)
Creates a ReportDetailsDocument by copying fields from a DB SeriesConfig,
a DB report, and a DB InstanceInfo. |
Methods inherited from class edu.sdsc.inca.protocol.MessageHandler |
errorReply |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Query
public Query()
executeHibernateAction
public void executeHibernateAction(edu.sdsc.inca.protocol.ProtocolReader reader,
edu.sdsc.inca.protocol.ProtocolWriter writer)
throws java.lang.Exception
- Execute queries on the depot.
- Specified by:
executeHibernateAction
in class HibernateMessageHandler
- Parameters:
reader
- Reader to the query request.writer
- Writer to the remote process making the request.
- Throws:
java.lang.Exception
edu.sdsc.inca.protocol.ProtocolException
toBean
protected static edu.sdsc.inca.dataModel.reportDetails.ReportDetailsDocument toBean(SeriesConfig sc,
Report r,
InstanceInfo ii,
ComparisonResult cr)
throws PersistenceException
- Creates a ReportDetailsDocument by copying fields from a DB SeriesConfig,
a DB report, and a DB InstanceInfo.
- Parameters:
sc
- the SeriesConfig for the documentr
- the Report for the documentii
- the latest InstanceInfo for the documentcr
- the latest ComparisonResult for the document
- Throws:
PersistenceException
toBean
protected static edu.sdsc.inca.queryResult.ReportSummaryDocument toBean(SeriesConfig sc,
ComparisonResult cr,
InstanceInfo ii,
Report r)
throws PersistenceException
- Creates a ReportSummaryDocument by copying fields from a DB SeriesConfig.
- Parameters:
sc
- the SeriesConfig for the documentcr
- the latest comparison result for scii
- the latest instance info for scr
- the latest report for sc
- Throws:
PersistenceException