edu.jhu.tmaj.beans
Class BlockBean

java.lang.Object
  extended by edu.jhu.tmaj.beans.JBean
      extended by edu.jhu.tmaj.beans.BlockBean
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class BlockBean
extends JBean
implements java.io.Serializable

Represents a donor (regular,non-array) block cut from a Specimen. A Specimen yields many blocks. A Block yields many TissueDiagnosis's. A SpecimenID, PartNumber, and BlockDesignation uniquely identify a Block.

See Also:
Serialized Form

Field Summary
static DatabaseField AREA_FIELD
           
static DatabaseField BLOCK_DESIGNATION_FIELD
           
static DatabaseField BLOCK_STATUS_ID_FIELD
           
static DatabaseField COLLECTION_DATE_FIELD
           
static DatabaseField CONTACT_USER_ID_FIELD
           
static DatabaseField FIXATION_FIELD
           
static DatabaseField HAS_H_AND_E_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUT_FIELD
           
static DatabaseField IS_DIVIDED_FIELD
           
static DatabaseField NOT_INFILE_LOCATION_FIELD
           
static DatabaseField NOTES_FIELD
           
static DatabaseField OUTSIDE_BLOCK_NUMBER_FIELD
           
static DatabaseField PART_FIELD
           
static DatabaseField SPECIMEN_ID_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
BlockBean(StaticMetaData staticMetaData)
           
 
Method Summary
 java.lang.String getBlockDesignation()
          Returns the block Designation, a letter and number written on the physical block.
 DatabaseField[] getFieldsArray()
          Returns an Array of TFields representing the columnnames of this bean.
 JBean getNewInstance()
          Returns a new instance of this bean.
 java.lang.String getOutsideBlockNumber()
           
 java.lang.String getPart()
          Returns the part number (written on the physical block.)
 java.lang.Integer getSpecimenID()
          Returns the SpecimenID from which this block was cut.
 java.lang.String getSQL(Search search)
          Returns a SELECT SQL statement given a Search.
 DatabaseTable getTable()
           
 
Methods inherited from class edu.jhu.tmaj.beans.JBean
compareTo, createFromResultSet, createFromSwingMap, delete, equals, getAllStaticColumnIdentifiers, getBaseSQL, getBeanInDatabase, getBeanList, getBeanList, getBooleanField, getClassForType, getColumnIdentifiers, getColumnNamesSet, getDateField, getDefaultBeanObjectForType, getDefaultSwingObjectForType, getDoubleField, getEnumerations, getFieldValue, getID_Bean_Map, getID, getIntegerField, getNonNullString, getPrimaryKeyField, getPrimaryKeyName, getSelectResponse, getStaticMetaData, getStringField, getSwingHash, getSwingToBeanObject, getTableName, getUserBean, getWantedColumnsString, getWantedStaticColumnIdentifiers, getWhereClause, hashCode, insert, isEnumerated, setBooleanField, setDateField, setDoubleField, setID, setIntegerField, setStringField, setUserBean, toString, update, verify
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_FIELD

public static final DatabaseField ID_FIELD

SPECIMEN_ID_FIELD

public static final DatabaseField SPECIMEN_ID_FIELD

BLOCK_DESIGNATION_FIELD

public static final DatabaseField BLOCK_DESIGNATION_FIELD

PART_FIELD

public static final DatabaseField PART_FIELD

FIXATION_FIELD

public static final DatabaseField FIXATION_FIELD

AREA_FIELD

public static final DatabaseField AREA_FIELD

OUTSIDE_BLOCK_NUMBER_FIELD

public static final DatabaseField OUTSIDE_BLOCK_NUMBER_FIELD

CONTACT_USER_ID_FIELD

public static final DatabaseField CONTACT_USER_ID_FIELD

NOT_INFILE_LOCATION_FIELD

public static final DatabaseField NOT_INFILE_LOCATION_FIELD

HAS_H_AND_E_FIELD

public static final DatabaseField HAS_H_AND_E_FIELD

IS_DIVIDED_FIELD

public static final DatabaseField IS_DIVIDED_FIELD

BLOCK_STATUS_ID_FIELD

public static final DatabaseField BLOCK_STATUS_ID_FIELD

COLLECTION_DATE_FIELD

public static final DatabaseField COLLECTION_DATE_FIELD

NOTES_FIELD

public static final DatabaseField NOTES_FIELD

INPUT_FIELD

public static final DatabaseField INPUT_FIELD
Constructor Detail

BlockBean

public BlockBean(StaticMetaData staticMetaData)
Method Detail

getSpecimenID

public java.lang.Integer getSpecimenID()
Returns the SpecimenID from which this block was cut.


getBlockDesignation

public java.lang.String getBlockDesignation()
Returns the block Designation, a letter and number written on the physical block.


getPart

public java.lang.String getPart()
Returns the part number (written on the physical block.)


getOutsideBlockNumber

public java.lang.String getOutsideBlockNumber()

getTable

public DatabaseTable getTable()
Specified by:
getTable in class JBean

getNewInstance

public JBean getNewInstance()
Description copied from class: JBean
Returns a new instance of this bean.

Specified by:
getNewInstance in class JBean

getFieldsArray

public DatabaseField[] getFieldsArray()
Description copied from class: JBean
Returns an Array of TFields representing the columnnames of this bean.

Specified by:
getFieldsArray in class JBean

getSQL

public java.lang.String getSQL(Search search)
Description copied from class: JBean
Returns a SELECT SQL statement given a Search.

Overrides:
getSQL in class JBean