edu.jhu.tmaj.servlet.request.impl
Class CheckIfSpecimenExistsRequest

java.lang.Object
  extended by edu.jhu.tmaj.servlet.request.BaseRequest
      extended by edu.jhu.tmaj.servlet.request.impl.CheckIfSpecimenExistsRequest
All Implemented Interfaces:
CommandRequest, java.io.Serializable

public class CheckIfSpecimenExistsRequest
extends BaseRequest
implements java.io.Serializable

Checks to see if a specimen with the same SurgPathNumber and HospitalID exists. Rememeber that a SurgPathNumber and a HospitalID uniquely identify a Specimen. Also checks to see if a TissueDiagnosis of the same information exists in the database. Remember a specimenID, BlockDesignation, and PartNumber uniquely identify a Block. A BlockID and LesionLetter uniquely identify a TissueDiagnosisID.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
CheckIfSpecimenExistsRequest(java.lang.String surgPathNumber, int hospitalID, java.lang.String blockDesignation, java.lang.String partNumber, java.lang.String lesionLetter)
           
 
Method Summary
 CommandResponse processRequest(UserBean userBean)
          This request is executed on the server assuming the username and password returns a valid UserBean.
 
Methods inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
executeCommand, getPassword, getUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckIfSpecimenExistsRequest

public CheckIfSpecimenExistsRequest(java.lang.String surgPathNumber,
                                    int hospitalID,
                                    java.lang.String blockDesignation,
                                    java.lang.String partNumber,
                                    java.lang.String lesionLetter)
Method Detail

processRequest

public CommandResponse processRequest(UserBean userBean)
                               throws java.sql.SQLException
Description copied from class: BaseRequest
This request is executed on the server assuming the username and password returns a valid UserBean.

Specified by:
processRequest in class BaseRequest
Throws:
java.sql.SQLException