public class ReporterData extends BasicData implements NameableData, ExtendableData, BatchableData, RegisteredData
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
,
Developer documentation: ReportersModifier and Type | Field and Description |
---|---|
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 |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ReporterData() |
ReporterData(int id)
Create a reporter object with a given ID.
|
Modifier and Type | Method and Description |
---|---|
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) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
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 ReporterTypeData reporterType
private Set<ReporterListScoreData> reporterListScores
public ReporterData()
public ReporterData(int id)
id
- The reporter IDpublic 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 propertypublic 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)