edu.jhu.tmaj.beans
Class ArrayBlockBean

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

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

Represents an ArrayBlock, which is a block created from many donor-blocks.

See Also:
Serialized Form

Field Summary
static DatabaseField CORE_SIZE_FIELD
           
static DatabaseField CREATE_DATE_FIELD
           
static DatabaseField CREATOR_FIELD
           
static DatabaseField FINAL_DATE_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUT_LOG_FIELD
           
static DatabaseField IS_FINAL_FIELD
           
static DatabaseField NAME_FIELD
           
static DatabaseField NUMBER_OF_COLUMNS_FIELD
           
static DatabaseField NUMBER_OF_ROWS_FIELD
           
static DatabaseField NUMBER_OF_SPOTS_FIELD
           
static DatabaseField PURPOSE_FIELD
           
static DatabaseField SOURCE_FIELD
           
static DatabaseField STATUS_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
ArrayBlockBean()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this Bean to another Bean by doing a case-insensitive compare using toString()
 DatabaseField[] getFieldsArray()
          Returns an Array of TFields representing the columnnames of this bean.
 JBean getNewInstance()
          Returns a new instance of this bean.
 int getNumberOfColumns()
          Returns the number of columns for this ArrayBlock.
 int getNumberOfRows()
          Returns the number of rows for this ArrayBlock.
 java.lang.String getSQL(Search search)
          Returns a SELECT SQL statement given a Search.
 DatabaseTable getTable()
           
 void insert()
          Inserts the database row with the data in this Bean.
 boolean isFinal()
          Returns true if ArrayBlock has been set as final and can no longer be modified in ArrayBuilder.
 java.lang.String toString()
          Returns the primary key name of the bean's table, along with the bean's ID.
 void verify()
          Overwritten by subclasses, this method may throw an exception before an insert() or update() is done if there is something wrong with the JBean.
 
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, isEnumerated, setBooleanField, setDateField, setDoubleField, setID, setIntegerField, setStringField, setUserBean, update
 
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

NAME_FIELD

public static final DatabaseField NAME_FIELD

SOURCE_FIELD

public static final DatabaseField SOURCE_FIELD

NUMBER_OF_ROWS_FIELD

public static final DatabaseField NUMBER_OF_ROWS_FIELD

NUMBER_OF_COLUMNS_FIELD

public static final DatabaseField NUMBER_OF_COLUMNS_FIELD

IS_FINAL_FIELD

public static final DatabaseField IS_FINAL_FIELD

CREATOR_FIELD

public static final DatabaseField CREATOR_FIELD

PURPOSE_FIELD

public static final DatabaseField PURPOSE_FIELD

CREATE_DATE_FIELD

public static final DatabaseField CREATE_DATE_FIELD

FINAL_DATE_FIELD

public static final DatabaseField FINAL_DATE_FIELD

STATUS_FIELD

public static final DatabaseField STATUS_FIELD

NUMBER_OF_SPOTS_FIELD

public static final DatabaseField NUMBER_OF_SPOTS_FIELD

CORE_SIZE_FIELD

public static final DatabaseField CORE_SIZE_FIELD

INPUT_LOG_FIELD

public static final DatabaseField INPUT_LOG_FIELD
Constructor Detail

ArrayBlockBean

public ArrayBlockBean()
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

isFinal

public boolean isFinal()
Returns true if ArrayBlock has been set as final and can no longer be modified in ArrayBuilder.


getNumberOfColumns

public int getNumberOfColumns()
Returns the number of columns for this ArrayBlock.


getNumberOfRows

public int getNumberOfRows()
Returns the number of rows for this ArrayBlock.


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

insert

public void insert()
            throws java.sql.SQLException
Description copied from class: JBean
Inserts the database row with the data in this Bean. Summary: Bean->Database

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

verify

public void verify()
Description copied from class: JBean
Overwritten by subclasses, this method may throw an exception before an insert() or update() is done if there is something wrong with the JBean.

Overrides:
verify in class JBean