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

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

public final class ArrayCoreDetailsRequest
extends DetailsRequest
implements java.io.Serializable

Returns the detailed design of an ArrayBlock to be printed to a tab-delimited file. Each row in the response represents one ArrayCore. Details about the ArrayCore such as SpecimenType, are indicated in the columns.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.impl.DetailsRequest
userBean
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
ArrayCoreDetailsRequest(java.util.Set<java.lang.Integer> arrayBlockIDs, DynamicMetaData specimenDynamicMetaData, DynamicMetaData tissueDiagnosisDynamicMetaData, java.util.Map<java.lang.Integer,LookupRecord> specimenTypeID_specimenTypeBean, java.util.Map<java.lang.Integer,LookupRecord> tissueTypeID_tissueTypeBean)
          Since this is executed on the server side, the request must pass in the cached MetaData from MyBeans
 
Method Summary
protected  void doMetaDataQueries()
          Add meta data to the rows from the Specimens and TissueDiagnosis meta data
protected  java.lang.String getMainQuerySQL()
          Returns the non-dynamic SQL.
protected  ExpandingMap getNewExpandingMap()
           
protected  StaticFields getStaticFields()
          Returns fields from the non-dynamic tables Specimens,Blocks,TissueDiagnosis, and ArrayCores tables
protected  void lookupStaticValuesInRecord(java.util.Map record)
          Looks up the TissueTypeID,SpecimenTypeID and Block Fixation fields
protected  java.util.List<java.util.Map> sortListOfMaps(java.util.List<java.util.Map> listOfMaps)
          Sorts the List by Y then by X
 java.lang.String toString()
           
protected  void verifyUser(UserBean userBean)
          Returns true if the user can access the requested ArrayBlockID and the ArrayBuilder application.
 
Methods inherited from class edu.jhu.tmaj.servlet.request.impl.DetailsRequest
doMetaDataQuery, getExpandingMap, getWarnings, lookupStaticField, processRequest, renameFields
 
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

ArrayCoreDetailsRequest

public ArrayCoreDetailsRequest(java.util.Set<java.lang.Integer> arrayBlockIDs,
                               DynamicMetaData specimenDynamicMetaData,
                               DynamicMetaData tissueDiagnosisDynamicMetaData,
                               java.util.Map<java.lang.Integer,LookupRecord> specimenTypeID_specimenTypeBean,
                               java.util.Map<java.lang.Integer,LookupRecord> tissueTypeID_tissueTypeBean)
Since this is executed on the server side, the request must pass in the cached MetaData from MyBeans

Method Detail

getNewExpandingMap

protected ExpandingMap getNewExpandingMap()
Specified by:
getNewExpandingMap in class DetailsRequest

toString

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

verifyUser

protected void verifyUser(UserBean userBean)
                   throws java.sql.SQLException
Returns true if the user can access the requested ArrayBlockID and the ArrayBuilder application.

Specified by:
verifyUser in class DetailsRequest
Throws:
java.sql.SQLException

getStaticFields

protected StaticFields getStaticFields()
Returns fields from the non-dynamic tables Specimens,Blocks,TissueDiagnosis, and ArrayCores tables

Specified by:
getStaticFields in class DetailsRequest

getMainQuerySQL

protected java.lang.String getMainQuerySQL()
Description copied from class: DetailsRequest
Returns the non-dynamic SQL. Each row in this SQL statement returns a different RowIdentifier() from getRowIdentifier(ResultSet).

Specified by:
getMainQuerySQL in class DetailsRequest

doMetaDataQueries

protected void doMetaDataQueries()
                          throws java.sql.SQLException
Add meta data to the rows from the Specimens and TissueDiagnosis meta data

Specified by:
doMetaDataQueries in class DetailsRequest
Throws:
java.sql.SQLException

lookupStaticValuesInRecord

protected void lookupStaticValuesInRecord(java.util.Map record)
Looks up the TissueTypeID,SpecimenTypeID and Block Fixation fields

Specified by:
lookupStaticValuesInRecord in class DetailsRequest

sortListOfMaps

protected java.util.List<java.util.Map> sortListOfMaps(java.util.List<java.util.Map> listOfMaps)
Sorts the List by Y then by X

Specified by:
sortListOfMaps in class DetailsRequest