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

Quick Search    Search Deep

com.clra.rowing
Class EnrollmentSnapshot  view EnrollmentSnapshot download EnrollmentSnapshot.java

java.lang.Object
  extended bycom.clra.rowing.EnrollmentSnapshot
All Implemented Interfaces:
java.io.Serializable

public class EnrollmentSnapshot
extends java.lang.Object
implements java.io.Serializable

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.

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

Field Summary
private  java.lang.Integer member_id
          Primary key of member (guaranteed to be non-null)
private  ParticipantSnapshot participantSnapshot
          Snapshot of participation (may be null)
private  RowingSessionSnapshot rowingSessionSnapshot
          Snapshot of rowing session (guaranteed to be non-null)
 
Constructor Summary
EnrollmentSnapshot()
          Produces an invalid EnrollmentSnapshot.
EnrollmentSnapshot(java.lang.Integer memberId, RowingSessionSnapshot rs, ParticipantSnapshot ps)
           
 
Method Summary
 java.lang.Integer getMemberId()
          Returns the id of the member associated with this enrollment
 java.lang.Integer getParticipantId()
          Returns the id of the participant associated with this enrollment.
 ParticipantSnapshot getParticipantSnapshot()
          Returns a snapshot of participant data in a rowing session.
 java.lang.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
 

Field Detail

rowingSessionSnapshot

private RowingSessionSnapshot rowingSessionSnapshot
Snapshot of rowing session (guaranteed to be non-null)


participantSnapshot

private ParticipantSnapshot participantSnapshot
Snapshot of participation (may be null)


member_id

private java.lang.Integer member_id
Primary key of member (guaranteed to be non-null)

Constructor Detail

EnrollmentSnapshot

public EnrollmentSnapshot()
Produces an invalid EnrollmentSnapshot. Used during deserialization


EnrollmentSnapshot

public EnrollmentSnapshot(java.lang.Integer memberId,
                          RowingSessionSnapshot rs,
                          ParticipantSnapshot ps)
Method Detail

getRowingId

public java.lang.Integer getRowingId()
Returns the id of the rowing session associated with this enrollment


getMemberId

public java.lang.Integer getMemberId()
Returns the id of the member associated with this enrollment


getParticipantId

public java.lang.Integer getParticipantId()
Returns the id of the participant associated with this enrollment. May be null.


getRowingSessionSnapshot

public RowingSessionSnapshot getRowingSessionSnapshot()
Returns a snapshot of data about the rowing session


getParticipantSnapshot

public ParticipantSnapshot getParticipantSnapshot()
Returns a snapshot of participant data in a rowing session. May be null.