Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.clra.web
Class ParticipantView  view ParticipantView download ParticipantView.java

java.lang.Object
  extended bycom.clra.web.ParticipantView
Direct Known Subclasses:
Participant2View

public class ParticipantView
extends java.lang.Object

Read-only information about a member's participation in rowing session. A thin-wrapper around ParticipantSnapshot,with some String properties useful in JSP's.

Version:
$Revision: 1.3 $ $Date: 2003/02/26 03:38:46 $

Field Summary
private  com.clra.rowing.ParticipantSnapshot data
           
 
Constructor Summary
ParticipantView()
          Constructs an invalid instance.
ParticipantView(com.clra.rowing.ParticipantSnapshot data)
           
 
Method Summary
(package private)  java.lang.String getAttendance()
          Returns the attendance of a participant at a rowing session, or blank if a participant has not been assigned an attendance.
 com.clra.rowing.ParticipantSnapshot getData()
           
(package private)  java.lang.Integer getFinalSeatId()
          Returns the final seat assigned to a participant, or null if a participant has not been assigned to a final boating.
(package private)  java.lang.Integer getInitialSeatId()
          Returns the initial seat assigned to a participant, or null if a participant hasn't been assigned an initial boating.
(package private)  java.lang.Integer getMemberId()
          Return the primary key of the member associated with this participant.
 java.lang.Integer getParticipantId()
          Returns the primary key of a participant instance
(package private)  java.lang.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.
(package private)  java.lang.Integer getRowingId()
          Returns the primary key of the rowing session a participant has joined.
(package private)  java.lang.String getSeatPreference()
          Returns the requested seating position of a signed-up participant, or blank if a participant is a substitute or an extra.
 void setData(com.clra.rowing.ParticipantSnapshot data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private com.clra.rowing.ParticipantSnapshot data
Constructor Detail

ParticipantView

public ParticipantView()
Constructs an invalid instance. Use this constructor only for JSP beans and immediately set valid values via setValuesFromRowingSession(..).


ParticipantView

public ParticipantView(com.clra.rowing.ParticipantSnapshot data)
Method Detail

setData

public void setData(com.clra.rowing.ParticipantSnapshot data)

getData

public com.clra.rowing.ParticipantSnapshot getData()

getMemberId

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


getRowingId

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


getParticipantId

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


getSeatPreference

java.lang.String getSeatPreference()
Returns the requested seating position of a signed-up participant, or blank if a participant is a substitute or an extra.


getReplacesId

java.lang.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

java.lang.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

java.lang.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

java.lang.String getAttendance()
Returns the attendance of a participant at a rowing session, or blank if a participant has not been assigned an attendance.