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
file
ReporterListScoreData.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
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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
reporterList
-
reporterId
private int reporterId -
reporter
-
score
-
-
Constructor Details
-
ReporterListScoreData
public ReporterListScoreData()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getReporterList
The reporter list this reporter and score belongs to. Part of the composite id of this class. -
setReporterList
-
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
Get the reporter. -
setReporter
-
getScore
Get the score for the reporter, or null if no score has been set. -
setScore
-
readObject
- Throws:
ClassNotFoundException
IOException
-
writeObject
- Throws:
IOException
-