Class ReporterData

    • Field Detail

      • entryDate

        private Date entryDate
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • lastSource

        private String lastSource
        The source of the last update
      • description

        private String description
    • Constructor Detail

      • 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 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 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
      • getReporterListScores

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