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 java.lang.String |
description |
private java.util.Date |
entryDate |
private java.util.Map<java.lang.String,java.lang.Object> |
extendedProperties |
private java.lang.String |
externalId |
private java.lang.String |
lastSource
The source of the last update
|
private java.util.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 java.lang.String |
name |
private java.util.Set<ReporterListScoreData> |
reporterListScores |
private ReporterTypeData |
reporterType |
private java.lang.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 |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.lang.Object |
getExtended(java.lang.String name)
Get the value of an extended property.
|
java.lang.String |
getExternalId()
Get the external id for this
ReporterData item. |
java.lang.String |
getLastSource()
Get the source that was used when this reporter
was last updated.
|
java.util.Date |
getLastUpdate()
Get the date and time the information about this reporter
last was updated.
|
java.lang.String |
getName()
Get the name of the item.
|
(package private) java.util.Set<ReporterListScoreData> |
getReporterListScores()
The lists this reporter is used in.
|
(package private) ReporterTypeData |
getReporterType()
Get the
ReporterTypeData of this the reporter. |
java.lang.String |
getSymbol()
Get the gene symbol of the reporter.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
(package private) void |
setEntryDate(java.util.Date entryDate) |
void |
setExtended(java.lang.String name,
java.lang.Object value)
Set the value of an extended property.
|
void |
setExternalId(java.lang.String externalId) |
(package private) void |
setLastSource(java.lang.String source) |
(package private) void |
setLastUpdate(java.util.Date lastUpdate) |
void |
setName(java.lang.String name)
Set the name of the item.
|
(package private) void |
setReporterListScores(java.util.Set<ReporterListScoreData> reporterListScores) |
(package private) void |
setReporterType(ReporterTypeData reporterType) |
void |
setSymbol(java.lang.String symbol) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.util.Date entryDate
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate java.lang.String externalId
public static final int MAX_SYMBOL_LENGTH
private java.lang.String symbol
private java.util.Date lastUpdate
public static final int MAX_LAST_SOURCE_LENGTH
private java.lang.String lastSource
private java.lang.String name
private java.lang.String description
private java.util.Map<java.lang.String,java.lang.Object> extendedProperties
private ReporterTypeData reporterType
private java.util.Set<ReporterListScoreData> reporterListScores
public ReporterData()
public ReporterData(int id)
id
- The reporter IDpublic java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
void setEntryDate(java.util.Date entryDate)
public java.lang.String getExternalId()
ReporterData
item.public void setExternalId(java.lang.String externalId)
public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
public java.util.Date getLastUpdate()
Date
objectvoid setLastUpdate(java.util.Date lastUpdate)
public java.lang.String getLastSource()
String
objectvoid setLastSource(java.lang.String source)
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic java.lang.Object getExtended(java.lang.String name)
ExtendableData
getExtended
in interface ExtendableData
name
- The name of the propertypublic void setExtended(java.lang.String name, java.lang.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)
java.util.Set<ReporterListScoreData> getReporterListScores()
ReporterListData.getReporterListScores()
void setReporterListScores(java.util.Set<ReporterListScoreData> reporterListScores)