edu.jhu.tmaj.beans
Class ProjectBean

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

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

Represents the Projects Table. A Project is a collection of ArraySlides. Projects are assigned ArraySlides in the table ProjectsArraySlides. In addition Projects are assigned users in the table UsersProjects. The goal is to determine what users can access which ArraySlides.

See Also:
Serialized Form

Field Summary
static DatabaseField ARE_TISSUE_TYPES_RESTRICTED_FIELD
           
static DatabaseField DESCRIPTION_FIELD
           
static DatabaseField ID_FIELD
           
static DatabaseField INPUTLOG_FIELD
           
static DatabaseField IS_LOOKUP_DISABLED_FIELD
           
static DatabaseField PROJECT_NAME_FIELD
           
static DatabaseField SOURCE_FIELD
           
 
Fields inherited from class edu.jhu.tmaj.beans.JBean
staticMetaData
 
Constructor Summary
ProjectBean()
           
 
Method Summary
 boolean areTissueTypesRestricted()
          Returns true if users may only use TissueTypes for ScoredImages that were used on the original diagnosis.
 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.
 DatabaseTable getTable()
           
 void insert()
          Inserts the database row with the data in this Bean.
 boolean isLookupDisabled()
          Returns true if the user should not be able to lookup the original diagnosis of the image in the Images application.
 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
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, 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

PROJECT_NAME_FIELD

public static final DatabaseField PROJECT_NAME_FIELD

DESCRIPTION_FIELD

public static final DatabaseField DESCRIPTION_FIELD

SOURCE_FIELD

public static final DatabaseField SOURCE_FIELD

IS_LOOKUP_DISABLED_FIELD

public static final DatabaseField IS_LOOKUP_DISABLED_FIELD

ARE_TISSUE_TYPES_RESTRICTED_FIELD

public static final DatabaseField ARE_TISSUE_TYPES_RESTRICTED_FIELD

INPUTLOG_FIELD

public static final DatabaseField INPUTLOG_FIELD
Constructor Detail

ProjectBean

public ProjectBean()
Method Detail

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

getNewInstance

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

Specified by:
getNewInstance in class JBean

getTable

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

isLookupDisabled

public boolean isLookupDisabled()
Returns true if the user should not be able to lookup the original diagnosis of the image in the Images application. Using this option helps eliminate bias when researchers score images.


areTissueTypesRestricted

public boolean areTissueTypesRestricted()
Returns true if users may only use TissueTypes for ScoredImages that were used on the original diagnosis. For example, if the ArrayBlock's tissueTypes are only "Prostate-Cancer" and "Bladder-Cancer", those are the only two choices that will appear in the TissueType ComboBox in the ArrayImage-Scoring Panel.


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

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