|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.clra.web.EnrollmentView
Read-only information about enrollment of a member in a rowing session. A thin wrapper around EnrollmentSnapshot. Adds value by defining a natural order for presenting enrollment snapshots.
Constructor Summary | |
EnrollmentView()
Produces an invalid EnrollmentView. |
|
EnrollmentView(EnrollmentSnapshot es)
|
Method Summary | |
int |
compareTo(Object o)
Defines a natural ordering for enrollments by using the natural order of MemberId, then SessionView, then by id of ParticipantView. |
boolean |
equals(Object o)
Two enrollments are equal iff their components are equal. |
EnrollmentSnapshot |
getData()
|
String |
getEnrollmentStatus()
Enrollment status is a derived value. |
Integer |
getMemberId()
|
ParticipantView |
getParticipantView()
May be null |
SessionView |
getSessionView()
|
int |
hashCode()
Member objects are hashed by id's |
void |
setData(EnrollmentSnapshot es)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnrollmentView()
public EnrollmentView(EnrollmentSnapshot es)
es
- a non-null EnrollmentSnapshotMethod Detail |
public void setData(EnrollmentSnapshot es)
public EnrollmentSnapshot getData()
public Integer getMemberId()
public SessionView getSessionView()
public ParticipantView getParticipantView()
public String getEnrollmentStatus()
FIXME: even though this algorithm is intended for just presenatation, it is closely related to business rules for invoicing members and for balancing "bumps" among members. When those rules are coded, this method should be rewritten in terms of those algorithms.
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o) throws ClassCastException
compareTo
in interface Comparable
o
- an EnrollmentViewClassCastException
- if o is not a enrollment view.
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |