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

Quick Search    Search Deep

com.clra.rowing
Interface IParticipantHome  view IParticipantHome download IParticipantHome.java

All Superinterfaces:
javax.ejb.EJBHome, java.rmi.Remote

public interface IParticipantHome
extends javax.ejb.EJBHome

Factory class for IParticipant instances.

Version:
$Id: IParticipantHome.java,v 1.4 2003/02/26 03:38:45 rphall Exp $

Method Summary
 IParticipant create(java.lang.Integer memberId, java.lang.Integer rowingId, SeatPreference preferred)
           
 IParticipant create(com.clra.member.MemberSnapshot member, ParticipantSnapshot replaces)
          Creates a "substitute" participant; that is, a participant who is present at a rowing session as a substitute for another, signed-up participant.
 IParticipant create(com.clra.member.MemberSnapshot member, RowingSessionSnapshot rowing)
          Creates an "extra" participant; that is, a participant who is present at a rowing session without signing up and who isn't substituting for another member.
 java.util.Collection findAll()
           
 java.util.Collection findByMemberIdRowingId(java.lang.Integer memberId, java.lang.Integer rowingId)
          The memberId and rowingId of a participant form an alternate key to the Participant table, so the collection that is returned has at most one IParticipant element.
 IParticipant findByPrimaryKey(java.lang.Integer participantId)
           
 java.util.Collection findByRowingId(java.lang.Integer rowingId)
           
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

public IParticipant create(java.lang.Integer memberId,
                           java.lang.Integer rowingId,
                           SeatPreference preferred)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException

create

public IParticipant create(com.clra.member.MemberSnapshot member,
                           RowingSessionSnapshot rowing)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException
Creates an "extra" participant; that is, a participant who is present at a rowing session without signing up and who isn't substituting for another member. The participant is constructed in the PRESENT state.


create

public IParticipant create(com.clra.member.MemberSnapshot member,
                           ParticipantSnapshot replaces)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException
Creates a "substitute" participant; that is, a participant who is present at a rowing session as a substitute for another, signed-up participant. The substitute is constructed in the PRESENT state, and the signed-up participant transitions to the ABSENT state.


findByPrimaryKey

public IParticipant findByPrimaryKey(java.lang.Integer participantId)
                              throws javax.ejb.FinderException,
                                     java.rmi.RemoteException

findByMemberIdRowingId

public java.util.Collection findByMemberIdRowingId(java.lang.Integer memberId,
                                                   java.lang.Integer rowingId)
                                            throws javax.ejb.FinderException,
                                                   java.rmi.RemoteException
The memberId and rowingId of a participant form an alternate key to the Participant table, so the collection that is returned has at most one IParticipant element.


findByRowingId

public java.util.Collection findByRowingId(java.lang.Integer rowingId)
                                    throws javax.ejb.FinderException,
                                           java.rmi.RemoteException

findAll

public java.util.Collection findAll()
                             throws javax.ejb.FinderException,
                                    java.rmi.RemoteException