edu.jhu.tmaj.beans.dynamic
Class SpecimenBean

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

public final class SpecimenBean
extends DynamicJBean
implements java.io.Serializable

Represents the Specimens table, with the accompaning dynamic table, SpecimenData. A Specimen represents all the tissue that is taken out of a patient during a surgery. It is possible for a patient to have multiple specimens, since some patients have to come back for another surgery. A Specimen can be uniquely identified by knowing the SurgPathNumber and Hospital where the surgery was performed. The SurgPathNumber is the hospital's primary-key for keeping track of specimens. When possible, the SurgPathNumber, any dates, and names of doctors are kept from end-users to protect patient privacy. Note: Users do not generally assign a patient to a Specimen. To be specific, users can not even view the Patient's table. The only time the patient's table is used when the Import application is used to import Specimens. A Hospital and a SurgPathNumber uniquely identify a Specimen.

See Also:
Serialized Form

Field Summary
static DatabaseField ACCESSION_DATE_FIELD
           
static DatabaseField AGE_FIELD
           
static DatabaseField ANIMAL_EXPERIMENT_ID_FIELD
           
static DatabaseField DATE_SPECIMEN_TAKEN_FIELD
           
static DatabaseField FIXATION_ID_FIELD
           
static DatabaseField HOSPITAL_ID_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUTLOG_FIELD
           
static DatabaseField MARGINS_POSITIVE_FIELD
           
static DatabaseField NOTES_FIELD
           
static DatabaseField OUTSIDE_RESEARCH_NUMBER_FIELD
           
static DatabaseField OUTSIDE_SURG_PATH_NUMBER_FIELD
           
static DatabaseField PATHOLOGISTS_FIELD
           
static DatabaseField PATIENT_ID_FIELD
           
static DatabaseField PHYSICIANS_FIELD
           
static DatabaseField PROCEDURE_TYPE_FIELD
           
static DatabaseField PROCESSING_FIELD
           
static DatabaseField RACE_FIELD
           
static DatabaseField SPECIMEN_LIST_FIELD
           
static DatabaseField SPECIMEN_TYPE_ID_FIELD
           
static DatabaseField SURG_PATH_NUMBER_FIELD
           
static java.lang.String SURG_PATH_NUMBER_STRING
           
static DatabaseField TUMOR_BANK_NUMBER_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.dynamic.DynamicJBean
dynamicMetaData
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
SpecimenBean(StaticMetaData staticMetaData, DynamicMetaData dynamicMetaData)
           
 
Method Summary
(package private)  java.lang.String getDynamicSQL(Search search)
          Returns a SQL statement that will pull records from the DynamicData table (e.g.
 java.lang.String getDynamicTableName()
          Returns the name of the Table that contains the DynamicData for this Bean, for example, SpecimenData.
 DatabaseField[] getFieldsArray()
          Returns an Array of TFields representing the columnnames of this bean.
 int getHospitalID()
          Returns the Hospital where the surgery was performed to obtain this specimen.
 JBean getNewInstance()
          Returns a new instance of this bean.
 java.lang.String getSQL(Search search)
          Returns a SELECT SQL statement given a Search.
 java.lang.String getSurgPathNumber()
          Returns the unique identifier the hospital assigned to this specimen.
 DatabaseTable getTable()
           
 DatabaseField getTypeField()
          Returns the TField column where the type of this DynamicBean is put.
 void insert()
          Performs an INSERT operation on the database with the data in this bean.
 
Methods inherited from class edu.jhu.tmaj.beans.dynamic.DynamicJBean
addDynamicValue, createFromSwingMap, getBeanList, getColumnIdentifiers, getDynamicBaseSQL, getDynamicColumnIdentifiers, getDynamicMetaData, getEnumerations, getSwingHash, getSwingToBeanObject, getTypeID, isEnumerated, setTypeID, syncDynamicData, update
 
Methods inherited from class edu.jhu.tmaj.beans.JBean
compareTo, createFromResultSet, delete, equals, getAllStaticColumnIdentifiers, getBaseSQL, getBeanInDatabase, getBeanList, getClassForType, getDateField, getDefaultBeanObjectForType, getDefaultSwingObjectForType, getDoubleField, getFieldValue, getID_Bean_Map, getID, getIntegerField, getNonNullString, getPrimaryKeyField, getPrimaryKeyName, getSelectResponse, getStaticMetaData, getStringField, getTableName, getUserBean, getWhereClause, hashCode, setDoubleField, setID, setIntegerField, setUserBean, toString, verify
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SURG_PATH_NUMBER_STRING

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

ID_FIELD

public static final DatabaseField ID_FIELD

SURG_PATH_NUMBER_FIELD

public static final DatabaseField SURG_PATH_NUMBER_FIELD

HOSPITAL_ID_FIELD

public static final DatabaseField HOSPITAL_ID_FIELD

SPECIMEN_TYPE_ID_FIELD

public static final DatabaseField SPECIMEN_TYPE_ID_FIELD

PATIENT_ID_FIELD

public static final DatabaseField PATIENT_ID_FIELD

AGE_FIELD

public static final DatabaseField AGE_FIELD

RACE_FIELD

public static final DatabaseField RACE_FIELD

ANIMAL_EXPERIMENT_ID_FIELD

public static final DatabaseField ANIMAL_EXPERIMENT_ID_FIELD

OUTSIDE_SURG_PATH_NUMBER_FIELD

public static final DatabaseField OUTSIDE_SURG_PATH_NUMBER_FIELD

OUTSIDE_RESEARCH_NUMBER_FIELD

public static final DatabaseField OUTSIDE_RESEARCH_NUMBER_FIELD

SPECIMEN_LIST_FIELD

public static final DatabaseField SPECIMEN_LIST_FIELD

ACCESSION_DATE_FIELD

public static final DatabaseField ACCESSION_DATE_FIELD

DATE_SPECIMEN_TAKEN_FIELD

public static final DatabaseField DATE_SPECIMEN_TAKEN_FIELD

PATHOLOGISTS_FIELD

public static final DatabaseField PATHOLOGISTS_FIELD

PHYSICIANS_FIELD

public static final DatabaseField PHYSICIANS_FIELD

NOTES_FIELD

public static final DatabaseField NOTES_FIELD

TUMOR_BANK_NUMBER_FIELD

public static final DatabaseField TUMOR_BANK_NUMBER_FIELD

FIXATION_ID_FIELD

public static final DatabaseField FIXATION_ID_FIELD

MARGINS_POSITIVE_FIELD

public static final DatabaseField MARGINS_POSITIVE_FIELD

PROCEDURE_TYPE_FIELD

public static final DatabaseField PROCEDURE_TYPE_FIELD

PROCESSING_FIELD

public static final DatabaseField PROCESSING_FIELD

INPUTLOG_FIELD

public static final DatabaseField INPUTLOG_FIELD
Constructor Detail

SpecimenBean

public SpecimenBean(StaticMetaData staticMetaData,
                    DynamicMetaData dynamicMetaData)
Method Detail

getHospitalID

public int getHospitalID()
Returns the Hospital where the surgery was performed to obtain this specimen.


getSurgPathNumber

public java.lang.String getSurgPathNumber()
Returns the unique identifier the hospital assigned to this specimen.


getTypeField

public DatabaseField getTypeField()
Description copied from class: DynamicJBean
Returns the TField column where the type of this DynamicBean is put.

Specified by:
getTypeField in class DynamicJBean

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

getDynamicTableName

public java.lang.String getDynamicTableName()
Description copied from class: DynamicJBean
Returns the name of the Table that contains the DynamicData for this Bean, for example, SpecimenData.

Specified by:
getDynamicTableName in class DynamicJBean

getDynamicSQL

java.lang.String getDynamicSQL(Search search)
Description copied from class: DynamicJBean
Returns a SQL statement that will pull records from the DynamicData table (e.g. SpecimenData)

Overrides:
getDynamicSQL in class DynamicJBean

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

insert

public void insert()
            throws java.sql.SQLException
Description copied from class: DynamicJBean
Performs an INSERT operation on the database with the data in this bean. In addition, the DynamicData table (e.g. SpecimenData) is updated with the dynamic Data.

Overrides:
insert in class DynamicJBean
Throws:
java.sql.SQLException