edu.sdsc.inca.depot.commands
Class Insert

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.Insert

public class Insert
extends HibernateMessageHandler

The task that will take a report and insert it to the database. the REPORT and RESEND commands are supported by this class.


Constructor Summary
Insert()
           
 
Method Summary
 void executeHibernateAction(edu.sdsc.inca.protocol.ProtocolReader reader, edu.sdsc.inca.protocol.ProtocolWriter writer)
          Execute the insert task.
 
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

Insert

public Insert()
Method Detail

executeHibernateAction

public void executeHibernateAction(edu.sdsc.inca.protocol.ProtocolReader reader,
                                   edu.sdsc.inca.protocol.ProtocolWriter writer)
                            throws java.lang.Exception
Execute the insert task.

Specified by:
executeHibernateAction in class HibernateMessageHandler
Throws:
java.lang.Exception
edu.sdsc.inca.protocol.ProtocolException