edu.jhu.tmaj.beans
Class ScanBean

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

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

Represents a Scan of an ArraySlide. An ArraySlide may be scanned zero, once, or many times. Each scan of an ArraySlide gets a distinct ScanNumber; The first scan of an ArraySlide is 1, the second is 2, and so on. Thus a Scan may be uniquely identified by both the ArraySlideID and ScanNumber. The ArraySlide may be scanned with several different machines, including the Bacus Lab's BLISS, Chromavision ACIS, Nikon, or the Applied Imaging's ARIOL.

See Also:
Serialized Form

Field Summary
static DatabaseField ARRAY_SLIDE_ID_FIELD
           
static DatabaseField BAR_CODE_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUT_LOG_FIELD
           
static DatabaseField NOTES_FIELD
           
static DatabaseField SCAN_NUMBER_FIELD
           
static DatabaseField SCAN_SCOPE_IMAGE_ID_FIELD
           
static DatabaseField SCANNING_MACHINE_ID_FIELD
           
static DatabaseField SHORT_DESCRIPTION_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
ScanBean(StaticMetaData staticMetaData)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this Bean to another Bean by doing a case-insensitive compare using toString()
 void delete()
          Deletes this Bean from the database.
 java.lang.Integer getArraySlideID()
          Returns the ArraySlideID that was scanned.
 java.lang.String getBarcode()
           
 DatabaseField[] getFieldsArray()
          Returns an Array of TFields representing the columnnames of this bean.
 JBean getNewInstance()
          Returns a new instance of this bean.
 ScanningMachine getScaningMachine()
           
 java.lang.Integer getScanNumber()
           
 java.lang.Integer getScanScopeImageID()
           
 java.lang.String getShortDescription()
           
 java.lang.String getSQL(Search search)
          Returns a SELECT SQL statement given a Search.
 DatabaseTable getTable()
           
 java.lang.String toString()
          Returns the primary key name of the bean's table, along with the bean's ID.
 
Methods inherited from class edu.jhu.tmaj.beans.JBean
createFromResultSet, createFromSwingMap, 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, 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

ARRAY_SLIDE_ID_FIELD

public static final DatabaseField ARRAY_SLIDE_ID_FIELD

SCAN_NUMBER_FIELD

public static final DatabaseField SCAN_NUMBER_FIELD

SCANNING_MACHINE_ID_FIELD

public static final DatabaseField SCANNING_MACHINE_ID_FIELD

BAR_CODE_FIELD

public static final DatabaseField BAR_CODE_FIELD

SHORT_DESCRIPTION_FIELD

public static final DatabaseField SHORT_DESCRIPTION_FIELD

SCAN_SCOPE_IMAGE_ID_FIELD

public static final DatabaseField SCAN_SCOPE_IMAGE_ID_FIELD

NOTES_FIELD

public static final DatabaseField NOTES_FIELD

INPUT_LOG_FIELD

public static final DatabaseField INPUT_LOG_FIELD
Constructor Detail

ScanBean

public ScanBean(StaticMetaData staticMetaData)
Method Detail

getTable

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

getArraySlideID

public java.lang.Integer getArraySlideID()
Returns the ArraySlideID that was scanned.


getScanNumber

public java.lang.Integer getScanNumber()

getBarcode

public java.lang.String getBarcode()

getScanScopeImageID

public java.lang.Integer getScanScopeImageID()

getScaningMachine

public ScanningMachine getScaningMachine()

getShortDescription

public java.lang.String getShortDescription()

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

delete

public void delete()
            throws java.sql.SQLException
Description copied from class: JBean
Deletes this Bean from the database.

Overrides:
delete in class JBean
Throws:
java.sql.SQLException

compareTo

public int compareTo(java.lang.Object o)
Description copied from class: JBean
Compares this Bean to another Bean by doing a case-insensitive compare using toString()

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class JBean

toString

public java.lang.String toString()
Description copied from class: JBean
Returns the primary key name of the bean's table, along with the bean's ID. Example: ProjectID#5

Overrides:
toString in class JBean