2.17.2: 2011-06-17

net.sf.basedb.core.data
Class ReporterListScoreData

java.lang.Object
  extended by 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:
ReporterList, Reporter overview, Serialized Form

Field Summary
private  ReporterData reporter
           
private  int reporterId
           
private  ReporterListData reporterList
           
private  Float score
           
private static long serialVersionUID
           
 
Constructor Summary
ReporterListScoreData()
           
 
Method Summary
 boolean equals(Object o)
           
 ReporterData getReporter()
          Get the reporter.
 int getReporterId()
          The id of the reporter.
 ReporterListData getReporterList()
          The reporter list this reporter and score belongs to.
 Float getScore()
          Get the score for the reporter, or null if no score has been set.
 int hashCode()
           
private  void readObject(ObjectInputStream ois)
           
 void setReporter(ReporterData reporter)
           
 void setReporterId(int reporterId)
           
 void setReporterList(ReporterListData reporterList)
           
 void setScore(Float score)
           
 String toString()
           
private  void writeObject(ObjectOutputStream ois)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

reporterList

private transient ReporterListData reporterList

reporterId

private int reporterId

reporter

private transient ReporterData reporter

score

private Float score
Constructor Detail

ReporterListScoreData

public ReporterListScoreData()
Method Detail

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

2.17.2: 2011-06-17