Class ReporterData

java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ReporterData
All Implemented Interfaces:
BatchableData, ExtendableData, IdentifiableData, NameableData, NoAutoUnlinkAnyToAny, RegisteredData
Direct Known Subclasses:
BaseFileImporter.ReporterProxy, RawDataBatcher.ReporterProxy

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.

Version:
2.0
Author:
Samuel
See Also:
Hibernate: class
table="`Reporters`" lazy="true"
  • Field Details

    • 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:
    • externalId

      private String externalId
    • MAX_SYMBOL_LENGTH

      public static final int MAX_SYMBOL_LENGTH
      The maximum length of the gene symbol that can be stored in the database.
      See Also:
    • symbol

      private String symbol
    • lastUpdate

      private Date lastUpdate
      The last update date.
    • MAX_LAST_SOURCE_LENGTH

      public static final int MAX_LAST_SOURCE_LENGTH
      The maximum length of the last source that can be stored in the database.
      See Also:
    • lastSource

      private String lastSource
      The source of the last update
    • name

      private String name
    • description

      private String description
    • extendedProperties

      private Map<String,Object> extendedProperties
    • reporterType

      private ReporterTypeData reporterType
    • reporterListScores

      private Set<ReporterListScoreData> reporterListScores
  • Constructor Details

    • ReporterData

      public ReporterData()
    • ReporterData

      public ReporterData(int id)
      Create a reporter object with a given ID.
      Parameters:
      id - The reporter ID
      Since:
      2.8
  • Method Details

    • 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 interface RegisteredData
    • setEntryDate

      void setEntryDate(Date entryDate)
    • getExternalId

      public String getExternalId()
      Get the external id for this ReporterData item.
      Returns:
      The reporter's external ID.
      Hibernate: property
      column="`external_id`" type="string" length="255" not-null="true" unique="true"
    • setExternalId

      public void setExternalId(String externalId)
    • getSymbol

      public String getSymbol()
      Get the gene symbol of the reporter.
      Returns:
      The gene symbol of the reporter
      Hibernate: property
      column="`symbol`" type="string" length="255"
    • setSymbol

      public void setSymbol(String symbol)
    • getLastUpdate

      public Date getLastUpdate()
      Get the date and time the information about this reporter last was updated.
      Returns:
      A Date object
      Hibernate: property
      column="`last_update`" type="timestamp" not-null="true"
    • setLastUpdate

      void setLastUpdate(Date lastUpdate)
    • getLastSource

      public String getLastSource()
      Get the source that was used when this reporter was last updated.
      Returns:
      A String object
      Hibernate: property
      column="`last_source`" type="string" not-null="false" length="255"
    • setLastSource

      void setLastSource(String source)
    • getName

      public String getName()
      Description copied from interface: NameableData
      Get the name of the item.
      Specified by:
      getName in interface NameableData
      Returns:
      A String with the name of the item
    • setName

      public void setName(String name)
      Description copied from interface: NameableData
      Set the name of the item. The name cannot be null and mustn't be longer than the value specified by the MAX_NAME_LENGTH constant.
      Specified by:
      setName in interface NameableData
      Parameters:
      name - The new name for the item
    • getDescription

      public String getDescription()
      Description copied from interface: NameableData
      Get the description for the item.
      Specified by:
      getDescription in interface NameableData
      Returns:
      A String with a description of the item
    • setDescription

      public void setDescription(String description)
      Description copied from interface: NameableData
      Set the description for the item. The description can be null but mustn't be longer than the value specified by the MAX_DESCRIPTION_LENGTH constant.
      Specified by:
      setDescription in interface NameableData
      Parameters:
      description - The new description for the item
    • getExtended

      public Object getExtended(String name)
      Description copied from interface: ExtendableData
      Get the value of an extended property.
      Specified by:
      getExtended in interface ExtendableData
      Parameters:
      name - The name of the property
      Returns:
      The value of the property or null if not found
    • setExtended

      public void setExtended(String name, Object value)
      Description copied from interface: ExtendableData
      Set the value of an extended property.
      Specified by:
      setExtended in interface ExtendableData
      Parameters:
      name - The name of the property
      value - The new value for the property
    • getReporterType

      ReporterTypeData getReporterType()
      Get the ReporterTypeData of this the reporter. Package private since we cannot expose the data object to client applications.
      Returns:
      The ReporterTypeData item
      See Also:
      Hibernate: many-to-one
      column="`reportertype_id`" not-null="false" outer-join="false"
    • setReporterType

      void setReporterType(ReporterTypeData reporterType)
    • getReporterListScores

      Set<ReporterListScoreData> getReporterListScores()
      The lists this reporter is used in. This is the inverse end.
      See Also:
      Hibernate: set
      lazy="true" inverse="true"
      Hibernate: collection-key
      column="`reporter_id`"
      Hibernate: collection-one-to-many
      class="net.sf.basedb.core.data.ReporterListScoreData"
    • setReporterListScores

      void setReporterListScores(Set<ReporterListScoreData> reporterListScores)