edu.jhu.tmaj.beans
Class ArraySlideBean

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

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

Represents a cut of an ArrayBlock. An ArraySlide may be uniquely identified by knowing the ArrayBlockID and the cut-number (z).

See Also:
Serialized Form

Field Summary
static DatabaseField ARRAY_BLOCK_ID_FIELD
           
static DatabaseField CONTACT_USER_ID_FIELD
           
static DatabaseField EXPERIMENT_NUMBER_FIELD
           
static DatabaseField EXPERIMENTER_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUT_LOG_FIELD
           
static DatabaseField LOCATION_FIELD
           
static DatabaseField NOTES_FIELD
           
static DatabaseField STAIN_FIELD
           
static DatabaseField STAINING_USER_ID_FIELD
           
static DatabaseField Z_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
ArraySlideBean(StaticMetaData staticMetaData)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this Bean to another Bean by doing a case-insensitive compare using toString()
 java.lang.Integer getArrayBlockID()
          Returns the id of the ArrayBlock from which this slide was cut.
 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 getSQL(Search search)
          Returns a SELECT SQL statement given a Search.
 java.lang.String getStain()
          Returns the stain of this ArraySlide; for example, H&E
static java.lang.String getStringRepresentation(java.lang.Integer arrayBlockID, java.lang.Integer z, java.lang.String stain)
           
 DatabaseTable getTable()
           
 java.lang.Integer getZ()
          Returns the cut number of this array slide
 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, 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, 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_BLOCK_ID_FIELD

public static final DatabaseField ARRAY_BLOCK_ID_FIELD

Z_FIELD

public static final DatabaseField Z_FIELD

STAIN_FIELD

public static final DatabaseField STAIN_FIELD

LOCATION_FIELD

public static final DatabaseField LOCATION_FIELD

STAINING_USER_ID_FIELD

public static final DatabaseField STAINING_USER_ID_FIELD

CONTACT_USER_ID_FIELD

public static final DatabaseField CONTACT_USER_ID_FIELD

EXPERIMENTER_FIELD

public static final DatabaseField EXPERIMENTER_FIELD

EXPERIMENT_NUMBER_FIELD

public static final DatabaseField EXPERIMENT_NUMBER_FIELD

NOTES_FIELD

public static final DatabaseField NOTES_FIELD

INPUT_LOG_FIELD

public static final DatabaseField INPUT_LOG_FIELD
Constructor Detail

ArraySlideBean

public ArraySlideBean(StaticMetaData staticMetaData)
Method Detail

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

getArrayBlockID

public java.lang.Integer getArrayBlockID()
Returns the id of the ArrayBlock from which this slide was cut.


getZ

public java.lang.Integer getZ()
Returns the cut number of this array slide


getStain

public java.lang.String getStain()
Returns the stain of this ArraySlide; for example, H&E


getStringRepresentation

public static java.lang.String getStringRepresentation(java.lang.Integer arrayBlockID,
                                                       java.lang.Integer z,
                                                       java.lang.String stain)

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

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

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