CLRA 0.1.2

com.clra.rowing
Class ParticipantSnapshot

java.lang.Object
  |
  +--com.clra.rowing.ParticipantSnapshot
Direct Known Subclasses:
Participant2Snapshot

public class ParticipantSnapshot
extends Object

Read-only information about a member's participation in rowing session.

Version:
$Revision: 1.2 $ $Date: 2002/02/18 18:04:43 $
Author:
Rick Hall

Constructor Summary
ParticipantSnapshot(Integer memberId, Integer rowingId, Integer participantId, SeatPreference preference, Integer replacesId, Integer initialSeatId, Integer finalSeatId, Attendance attendance)
           
 
Method Summary
 Attendance getAttendance()
          Returns the attendance of a participant at a rowing session, or null if a participant has not been assigned an attendance.
 Integer getFinalSeatId()
          Returns the final seat assigned to a participant, or null if a participant has not been assigned to a final boating.
 Integer getInitialSeatId()
          Returns the initial seat assigned to a participant, or null if a participant hasn't been assigned an initial boating.
 Integer getMemberId()
          Return the primary key of the member associated with this participant.
 Integer getParticipantId()
          Returns the primary key of a participant instance
 Integer getReplacesId()
          Returns the participant id of the signed-up, but absent, participant for whom this member is substituting, or null if this member is not a substitute.
 Integer getRowingId()
          Returns the primary key of the rowing session a participant has joined.
 SeatPreference getSeatPreference()
          Returns the requested seating position of a signed-up participant, or null if a participant is a substitute or an extra.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticipantSnapshot

public ParticipantSnapshot(Integer memberId,
                           Integer rowingId,
                           Integer participantId,
                           SeatPreference preference,
                           Integer replacesId,
                           Integer initialSeatId,
                           Integer finalSeatId,
                           Attendance attendance)
Method Detail

getMemberId

public Integer getMemberId()
Return the primary key of the member associated with this participant.

getRowingId

public Integer getRowingId()
Returns the primary key of the rowing session a participant has joined.

getParticipantId

public Integer getParticipantId()
Returns the primary key of a participant instance

getSeatPreference

public SeatPreference getSeatPreference()
Returns the requested seating position of a signed-up participant, or null if a participant is a substitute or an extra.

getReplacesId

public Integer getReplacesId()
Returns the participant id of the signed-up, but absent, participant for whom this member is substituting, or null if this member is not a substitute.

getInitialSeatId

public Integer getInitialSeatId()
Returns the initial seat assigned to a participant, or null if a participant hasn't been assigned an initial boating.

Note that seat id is not the same as seat number. A seat id is a primary key for a triplet value composed of a rowing_id (identifies a rowing session), a boat_id (identifies a particular sweep or scull), and a seat number (identifies a position within a sweep or scull).


getFinalSeatId

public Integer getFinalSeatId()
Returns the final seat assigned to a participant, or null if a participant has not been assigned to a final boating.

See getInitialSeatId() for a note on the distinction between seat id and seat number.


getAttendance

public Attendance getAttendance()
Returns the attendance of a participant at a rowing session, or null if a participant has not been assigned an attendance.

CLRA 0.1.2