Class ReporterListScoreData

java.lang.Object
net.sf.basedb.core.data.ReporterListScoreData
All Implemented Interfaces:
Serializable

public class ReporterListScoreData extends Object implements Serializable
This class holds information about the score of a reporter in a reporter list. The mapping is defined in the external mapping file ReporterListScoreData.hbm.xml since XDoclet can't generate the <composite-id> tag for us.
Version:
2.0
Author:
Nicklas
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • reporterList

      private transient ReporterListData reporterList
    • reporterId

      private int reporterId
    • reporter

      private transient ReporterData reporter
    • score

      private Float score
  • Constructor Details

    • ReporterListScoreData

      public ReporterListScoreData()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getReporterList

      public ReporterListData getReporterList()
      The reporter list this reporter and score belongs to. Part of the composite id of this class.
    • setReporterList

      public void setReporterList(ReporterListData reporterList)
    • getReporterId

      public int getReporterId()
      The id of the reporter. This mapping is neccessary since the alternative <key-many-to-one> doesn't work with INNER JOIN FETCH queries. We have to use a regular <many-to-one>, which means that the reporter property must be outside the composite id.
    • setReporterId

      public void setReporterId(int reporterId)
    • getReporter

      public ReporterData getReporter()
      Get the reporter.
    • setReporter

      public void setReporter(ReporterData reporter)
    • getScore

      public Float getScore()
      Get the score for the reporter, or null if no score has been set.
    • setScore

      public void setScore(Float score)
    • readObject

      private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
      Throws:
      ClassNotFoundException
      IOException
    • writeObject

      private void writeObject(ObjectOutputStream ois) throws IOException
      Throws:
      IOException