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

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

public final class ArrayCoreReferenceRequest
extends BaseRequest
implements java.io.Serializable

Used to get information about Specimens,Blocks, and TissueDiagnosis in the ArrayBuilder application. When the user clicks on an ArrayCore, information about the specimen, block, and TissueDiagnosis is displayed. This class returns the information to the client so that this "lookup" information can be displayed for each of the ArrayCores.

See Also:
Serialized Form

Nested Class Summary
static class ArrayCoreReferenceRequest.ReferenceRequestType
          How an ArrayCoreReferenceBean may be initialized, either by the entire ArrayBlock, or just one TissueDiagnosisID.
 
Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
ArrayCoreReferenceRequest(int id, ArrayCoreReferenceRequest.ReferenceRequestType initType)
          Initializes the Request.
 
Method Summary
 CommandResponse processRequest(UserBean userBean)
          Returns an Response that contains an ArrayCoreReferenceBean initialized with either an entire ArrayBlock of TissueDiagnosisIDs, or just one individual TissueDiagonsisID.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

ArrayCoreReferenceRequest

public ArrayCoreReferenceRequest(int id,
                                 ArrayCoreReferenceRequest.ReferenceRequestType initType)
Initializes the Request.

Parameters:
id - a TissueDiagnosisID or an ArrayBlockID
initType - either ARRAY_BLOCK or TISSUE_DIAGNOSIS_ID
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

processRequest

public CommandResponse processRequest(UserBean userBean)
                               throws java.sql.SQLException
Returns an Response that contains an ArrayCoreReferenceBean initialized with either an entire ArrayBlock of TissueDiagnosisIDs, or just one individual TissueDiagonsisID.

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