|
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.rowing.EnrollmentSnapshot
Read-only information about enrollment of a member in a rowing session. Unlike a Participant entity, which is non-null only if a member is signed up for a rowing session, an enrollment instance is guaranteed to be non-null regardless of whether a member is signed up in a rowing session. An enrollment instance is a derived view that doesn't correspond to a persistent object in the database.
An enrollment is composed of a member_id, a rowing_id, and a participant_id. The member_id and rowing_id must be non-null. The participant_id is non-null only if the member has signed up for the rowing session. In addition to these primary keys, an enrollment object caches some frequently needed data from the member, rowing session and participant entities.
Constructor Summary | |
EnrollmentSnapshot()
Produces an invalid EnrollmentSnapshot. |
|
EnrollmentSnapshot(Integer memberId,
RowingSessionSnapshot rs,
ParticipantSnapshot ps)
|
Method Summary | |
Integer |
getMemberId()
Returns the id of the member associated with this enrollment |
Integer |
getParticipantId()
Returns the id of the participant associated with this enrollment. |
ParticipantSnapshot |
getParticipantSnapshot()
Returns a snapshot of participant data in a rowing session. |
Integer |
getRowingId()
Returns the id of the rowing session associated with this enrollment |
RowingSessionSnapshot |
getRowingSessionSnapshot()
Returns a snapshot of data about the rowing session |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnrollmentSnapshot()
public EnrollmentSnapshot(Integer memberId, RowingSessionSnapshot rs, ParticipantSnapshot ps)
memberId
- a non-null primary key for a memberrs
- a non-null snapshot of a rowing sessionps
- a snapshot of a participant, possibly null. If non-null,
then the member and rowing id's associated with the participant
must match the id's of the preceding parameters.Method Detail |
public Integer getRowingId()
public Integer getMemberId()
public Integer getParticipantId()
public RowingSessionSnapshot getRowingSessionSnapshot()
public ParticipantSnapshot getParticipantSnapshot()
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |