Source code: com/clra/rowing/IRowingSessionHome.java
1 /*
2 * Copyright (c) Carnegie Lake Rowing Association 2002. All rights reserved.
3 * Distributed under the GPL license. See doc/COPYING.
4 * $RCSfile: IRowingSessionHome.java,v $
5 * $Date: 2003/02/26 03:38:45 $
6 * $Revision: 1.3 $
7 */
8
9 package com.clra.rowing;
10
11 import java.rmi.RemoteException;
12 import java.util.Collection;
13 import java.util.Date;
14 import javax.ejb.EJBHome;
15 import javax.ejb.CreateException;
16 import javax.ejb.FinderException;
17
18 /**
19 * Factory class for IRowingSession instances.
20 *
21 * @version $Id: IRowingSessionHome.java,v 1.3 2003/02/26 03:38:45 rphall Exp $
22 * @author <a href="mailto:rphall@pluto.njcc.com">Rick Hall</a>
23 */
24 public interface IRowingSessionHome extends EJBHome {
25
26 /**
27 * Creates a rowing session on the specified date (and time).<p>
28 *
29 * Application classes should not invoke this operation directly, but
30 * rather should use <tt>RowingUtils.createRowingSession</tt>, in order
31 * to guarantee that any (future) optimized lists remains up-to-date.
32 *
33 * @param date the date (and time) on which to create the session.
34 * @param level the level of the session (Regular, LTR)
35 * @param type the type of the session (Practice, Regatta)
36 * @see RowingUtils#
37 */
38 IRowingSession create( Date date, RowingSessionLevel level,
39 RowingSessionType type ) throws CreateException, RemoteException;
40
41 IRowingSession findByPrimaryKey( Integer rowingId )
42 throws FinderException, RemoteException;
43
44 Collection findInDateRange( Date start, Date finish )
45 throws FinderException, RemoteException;
46
47 Collection findAll() throws FinderException, RemoteException;
48
49 } // IRowingSessionHome
50
51 /*
52 * $Log: IRowingSessionHome.java,v $
53 * Revision 1.3 2003/02/26 03:38:45 rphall
54 * Added copyright and GPL license
55 *
56 * Revision 1.2 2002/02/18 18:04:35 rphall
57 * Ran dos2unix to remove ^M (carriage return) from end of lines
58 *
59 * Revision 1.1.1.1 2002/01/03 21:57:28 rphall
60 * Initial load, 5th try, Jan-03-2002 4:57 PM
61 *
62 * Revision 1.5 2001/12/11 23:43:18 rphall
63 * Documentation
64 *
65 * Revision 1.4 2001/12/05 03:54:41 rphall
66 * Documentation
67 *
68 * Revision 1.3 2001/11/30 11:38:00 rphall
69 * First working version, RowingSession entity bean
70 *
71 * Revision 1.2 2001/11/28 16:10:36 rphall
72 * Removed findAll(), fixed name of findByPrimaryKey()
73 *
74 * Revision 1.1 2001/11/23 18:34:08 rphall
75 * Major revision.
76 *
77 */
78