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

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

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

Enables use of the "Automatic Lookup Feature" to lookup a Diagnosis (not a type) in ArrayImages. Given an ArrayImageID the class looks up the original diagnosis in TissueDiagonsis, and then returns a DiagnosisLookupResponse with the ArrayImageFieldID and the appropriate ArrayImageEnumID. Currently the only supported field for lookup is HistologicType.

See Also:
Serialized Form

Field Summary
static java.lang.String HISTOLOGIC_TYPE_FIELD
           
static java.lang.String SECONDARY_HISTOLOGIC_TYPE_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
DiagnosisLookupRequest(int arrayImageID)
           
 
Method Summary
static void lookup(int arrayImageID, javax.swing.JTable table, GeneralTableModel tableModel, JBean bean)
          Looks up the original Diagnosis and sets the appropriate ComboBox editor of the table
 CommandResponse processRequest(UserBean userBean)
          This request is executed on the server assuming the username and password returns a valid UserBean.
 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
 

Field Detail

HISTOLOGIC_TYPE_FIELD

public static final java.lang.String HISTOLOGIC_TYPE_FIELD
See Also:
Constant Field Values

SECONDARY_HISTOLOGIC_TYPE_FIELD

public static final java.lang.String SECONDARY_HISTOLOGIC_TYPE_FIELD
See Also:
Constant Field Values
Constructor Detail

DiagnosisLookupRequest

public DiagnosisLookupRequest(int arrayImageID)
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
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

lookup

public static void lookup(int arrayImageID,
                          javax.swing.JTable table,
                          GeneralTableModel tableModel,
                          JBean bean)
Looks up the original Diagnosis and sets the appropriate ComboBox editor of the table