Package net.sf.basedb.core.data
Class ReporterListData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.OwnedData
-
- net.sf.basedb.core.data.SharedData
-
- net.sf.basedb.core.data.CommonData
-
- net.sf.basedb.core.data.ReporterListData
-
- All Implemented Interfaces:
IdentifiableData
,NameableData
,OwnableData
,RegisteredData
,RemovableData
,ShareableData
public class ReporterListData extends CommonData implements RegisteredData
This class holds information about a reporter list.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
ReporterList
, Developer documentation: Reporters- Hibernate: class
- table="`ReporterLists`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private Date
entryDate
private ExperimentData
experiment
private String
externalId
static int
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database.private Map<Integer,ReporterListScoreData>
reporters
private int
size
-
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ReporterListData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getEntryDate()
Get the date this item was added to the database.ExperimentData
getExperiment()
Get the experiment this reporter list belongs to.String
getExternalId()
Get the external id for thisReporterList
item.Map<Integer,ReporterListScoreData>
getReporterListScores()
The list of reporters and their scores.int
getSize()
The number of reporter in the list.void
setEntryDate(Date entryDate)
void
setExperiment(ExperimentData experiment)
void
setExternalId(String externalId)
(package private) void
setReporterListScores(Map<Integer,ReporterListScoreData> reporters)
void
setSize(int size)
-
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
-
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
-
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
-
-
-
Field Detail
-
entryDate
private Date entryDate
-
MAX_EXTERNAL_ID_LENGTH
public static final int MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database.- See Also:
setExternalId(String)
, Constant Field Values
-
externalId
private String externalId
-
experiment
private ExperimentData experiment
-
size
private int size
-
reporters
private Map<Integer,ReporterListScoreData> reporters
-
-
Method Detail
-
getEntryDate
public Date getEntryDate()
Description copied from interface:RegisteredData
Get the date this item was added to the database. The value is generated at creation time and can't be modified later.- Specified by:
getEntryDate
in interfaceRegisteredData
-
setEntryDate
public void setEntryDate(Date entryDate)
-
getExternalId
public String getExternalId()
Get the external id for thisReporterList
item.- Hibernate: property
- column="`external_id`" type="string" length="255" not-null="false"
-
setExternalId
public void setExternalId(String externalId)
-
getExperiment
public ExperimentData getExperiment()
Get the experiment this reporter list belongs to.- Hibernate: many-to-one
- column="`experiment_id`" not-null="false" outer-join="false"
-
setExperiment
public void setExperiment(ExperimentData experiment)
-
getSize
public int getSize()
The number of reporter in the list.- Since:
- 2.8
- Hibernate: property
- column="`size`" type="int" not-null="true"
-
setSize
public void setSize(int size)
-
getReporterListScores
public Map<Integer,ReporterListScoreData> getReporterListScores()
The list of reporters and their scores.- Hibernate: map
- lazy="true" inverse="true" cascade="all-delete-orphan"
- Hibernate: collection-key
- column="`reporterlist_id`"
- Hibernate: collection-index
- column="`reporter_id`" type="int"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.ReporterListScoreData"
-
setReporterListScores
void setReporterListScores(Map<Integer,ReporterListScoreData> reporters)
-
-