Package net.sf.basedb.core.data
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 fileReporterListScoreData.hbm.xml
since XDoclet can't generate the<composite-id>
tag for us.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
ReporterList
, Developer documentation: Reporters, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ReporterData
reporter
private int
reporterId
private ReporterListData
reporterList
private Float
score
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ReporterListScoreData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
Method Detail
-
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 withINNER 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
-
-