|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines operations that modify a member's participation in rowing session.
Method Summary | |
Attendance |
getAttendance()
Returns the attendance of a participant at a rowing session, or null if attendance has not been marked. |
ParticipantSnapshot |
getData()
Returns a snapshot of a participant |
SeatSnapshot |
getFinalSeat()
Returns the final seat assignment of this participant, or null if a final seating was not made. |
SeatSnapshot |
getInitialSeat()
Returns the initial seat assignment of this participant, or null if an initial seating was not made. |
Integer |
getMemberId()
Returns the primary key of the member that the participant represents |
Integer |
getParticipantId()
Returns the primary key of a participant |
Integer |
getRowingId()
Returns the primary key of the rowing session to which the participant belongs. |
SeatPreference |
getSeatPreference()
Returns the seat preference of a participant. |
IParticipant |
getSubstitutedParticipant()
Returns the participant for whom this participant is substituting. |
void |
setAttendance(Attendance attendance,
IRowingSession session)
Marks the attendance of a participant at a rowing session. |
void |
setFinalSeat(SeatSnapshot seat,
IBoating boating)
Assigns a final seating to a participant at the start of a rowing session, after attendance has been taken. |
void |
setInitialSeat(SeatSnapshot seat,
IBoating boating)
Assigns a preliminary seating to a participant before a rowing session starts. |
void |
setSeatPreference(SeatPreference seatPreference)
Sets the seat preference of a participant. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
public ParticipantSnapshot getData() throws java.rmi.RemoteException
public Integer getParticipantId() throws java.rmi.RemoteException
public Integer getRowingId() throws java.rmi.RemoteException
public Integer getMemberId() throws java.rmi.RemoteException
public SeatPreference getSeatPreference() throws java.rmi.RemoteException
public void setSeatPreference(SeatPreference seatPreference) throws java.rmi.RemoteException, ParticipantStateException, RowingException
a
- non-null seat preferenceParticipantStateException
- if a participant has already
been assigned an initial or final seating for a rowing session, or
if attendance has already been marked for the participant.RowingException
- if a participant is not a signed-up
participant. (An 'extra' or a 'substitute' participant can not be
converted into a signed-up participant by setting a seat preference.)public IParticipant getSubstitutedParticipant() throws java.rmi.RemoteException
public void setInitialSeat(SeatSnapshot seat, IBoating boating) throws java.rmi.RemoteException, ParticipantStateException, RowingException
ParticipantStateException
- if the participant
has not signed up for the rowing session.RowingException
- if the assignment conflicts with the
business rules for updating a boating; for example, if the
rowing session to which the boating belongs is not locked.public SeatSnapshot getInitialSeat() throws java.rmi.RemoteException
public void setFinalSeat(SeatSnapshot seat, IBoating boating) throws java.rmi.RemoteException, ParticipantStateException, RowingException
seat
- the final seating of a participant, or null if
a participant is not boated for the session.ParticipantStateException
- if the state of the participant
conflicts with the seating assignment; for example, the participant
is not present for the rowing session.RowingException
- if the assignment conflicts with the
business rules for updating a boating; for example, if the
rowing session to which the boating belongs is not in the BOATING2 state.public SeatSnapshot getFinalSeat() throws java.rmi.RemoteException
public void setAttendance(Attendance attendance, IRowingSession session) throws java.rmi.RemoteException, ParticipantStateException, RowingException
ParticipantStateException
- if the instance data of the
participant conflicts with marking attendance; for example, if the
participant has already been assigned a final seating assignment, or
if an "extra" participant is marked absent.RowingException
- if marking attendance conflicts with the
business rules for updating a rowing session; for example, if the
rowing session is not in the BOATING1 state.public Attendance getAttendance() throws java.rmi.RemoteException
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |