|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.ReporterListScoreData
public class ReporterListScoreData
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.
ReporterList
,
Reporter overview,
Serialized FormField 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 |
---|
private static final long serialVersionUID
private transient ReporterListData reporterList
private int reporterId
private transient ReporterData reporter
private Float score
Constructor Detail |
---|
public ReporterListScoreData()
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public ReporterListData getReporterList()
public void setReporterList(ReporterListData reporterList)
public int getReporterId()
<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.
public void setReporterId(int reporterId)
public ReporterData getReporter()
public void setReporter(ReporterData reporter)
public Float getScore()
public void setScore(Float score)
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream ois) throws IOException
IOException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |