edu.sdsc.inca.depot.commands
Class Query

java.lang.Object
  extended by edu.sdsc.inca.protocol.MessageHandler
      extended by edu.sdsc.inca.depot.util.HibernateMessageHandler
          extended by 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.depot.util.HibernateMessageHandler
execute
 
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
 

Constructor Detail

Query

public Query()
Method Detail

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 document
r - the Report for the document
ii - the latest InstanceInfo for the document
cr - 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 document
cr - the latest comparison result for sc
ii - the latest instance info for sc
r - the latest report for sc
Throws:
PersistenceException