|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.ReporterData
public class ReporterData
This class represents the idea of clone, oligo or some other reporter for a gene. Each reporter must have a unique id, the reporter ID. The only required property, except the reporter ID is the name.
The server administrator may also add columns in the database
for other properties of the reporters. The new columns are
mapped to BASE in the extended-properties.xml
file.
For more information about this see the ExtendedProperties
class.
ExtendableData
,
Reporter
,
ReporterBatcher
,
ExtendedProperties
,
Reporter overviewField Summary | |
---|---|
private String |
description
|
private Date |
entryDate
|
private Map<String,Object> |
extendedProperties
|
private String |
externalId
|
private String |
lastSource
The source of the last update |
private Date |
lastUpdate
The last update date. |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database. |
static int |
MAX_LAST_SOURCE_LENGTH
The maximum length of the last source that can be stored in the database. |
static int |
MAX_SYMBOL_LENGTH
The maximum length of the gene symbol that can be stored in the database. |
private String |
name
|
private Set<ReporterListScoreData> |
reporterListScores
|
private ReporterTypeData |
reporterType
|
private String |
symbol
|
Fields inherited from interface net.sf.basedb.core.data.NameableData |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Constructor Summary | |
---|---|
ReporterData()
|
|
ReporterData(int id)
Create a reporter object with a given ID. |
Method Summary | |
---|---|
String |
getDescription()
Get the description for the item. |
Date |
getEntryDate()
Get the date this item was added to the database. |
Object |
getExtended(String name)
Get the value of an extended property. |
String |
getExternalId()
Get the external id for this ReporterData item. |
String |
getLastSource()
Get the source that was used when this reporter was last updated. |
Date |
getLastUpdate()
Get the date and time the information about this reporter last was updated. |
String |
getName()
Get the name of the item. |
(package private) Set<ReporterListScoreData> |
getReporterListScores()
The lists this reporter is used in. |
(package private) ReporterTypeData |
getReporterType()
Get the ReporterTypeData of this the reporter. |
String |
getSymbol()
Get the gene symbol of the reporter. |
void |
setDescription(String description)
Set the description for the item. |
(package private) void |
setEntryDate(Date entryDate)
|
void |
setExtended(String name,
Object value)
Set the value of an extended property. |
void |
setExternalId(String externalId)
|
(package private) void |
setLastSource(String source)
|
(package private) void |
setLastUpdate(Date lastUpdate)
|
void |
setName(String name)
Set the name of the item. |
(package private) void |
setReporterListScores(Set<ReporterListScoreData> reporterListScores)
|
(package private) void |
setReporterType(ReporterTypeData reporterType)
|
void |
setSymbol(String symbol)
|
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 |
Field Detail |
---|
private Date entryDate
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate String externalId
public static final int MAX_SYMBOL_LENGTH
private String symbol
private Date lastUpdate
public static final int MAX_LAST_SOURCE_LENGTH
private String lastSource
private String name
private String description
private Map<String,Object> extendedProperties
private ReporterTypeData reporterType
private Set<ReporterListScoreData> reporterListScores
Constructor Detail |
---|
public ReporterData()
public ReporterData(int id)
id
- The reporter IDMethod Detail |
---|
public Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
void setEntryDate(Date entryDate)
public String getExternalId()
ReporterData
item.
public void setExternalId(String externalId)
public String getSymbol()
public void setSymbol(String symbol)
public Date getLastUpdate()
Date
objectvoid setLastUpdate(Date lastUpdate)
public String getLastSource()
String
objectvoid setLastSource(String source)
public String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.
setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.
setDescription
in interface NameableData
description
- The new description for the itempublic Object getExtended(String name)
ExtendableData
getExtended
in interface ExtendableData
name
- The name of the property
public void setExtended(String name, Object value)
ExtendableData
setExtended
in interface ExtendableData
name
- The name of the propertyvalue
- The new value for the propertyReporterTypeData getReporterType()
ReporterTypeData
of this the reporter. Package private since
we cannot expose the data object to client applications.
ReporterTypeData
itemReporter.getReporterType(net.sf.basedb.core.DbControl, ReporterData)
void setReporterType(ReporterTypeData reporterType)
Set<ReporterListScoreData> getReporterListScores()
ReporterListData.getReporterListScores()
void setReporterListScores(Set<ReporterListScoreData> reporterListScores)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |