01: package org.objectweb.jonas.jtests.beans.ejbql;
02:
03: import java.rmi.RemoteException;
04: import java.util.Collection;
05:
06: import javax.ejb.FinderException;
07:
08: // Reservation EJB's remote home interface
09: public interface ReservationHomeRemote extends javax.ejb.EJBHome {
10:
11: public ReservationRemote create(Integer cruiseid,
12: Collection customers) throws javax.ejb.CreateException,
13: RemoteException;;
14:
15: public ReservationRemote findByPrimaryKey(Object primaryKey)
16: throws javax.ejb.FinderException, RemoteException;
17:
18: public Collection findAllReservations() throws FinderException,
19: RemoteException;
20:
21: public Collection findReservationsWithLesserAmount()
22: throws FinderException, RemoteException;
23:
24: public Collection findOrderedRsrv() throws FinderException,
25: RemoteException;
26:
27: public long getCountOfReservations() throws FinderException,
28: RemoteException;
29:
30: public double getMinAmountOfReservations() throws FinderException,
31: RemoteException;
32:
33: public double getMinAmountForCruise(String cName)
34: throws FinderException, RemoteException;
35:
36: public double getMaxAmountOfReservations() throws FinderException,
37: RemoteException;
38:
39: public Collection getAmountsForCruise(String cName)
40: throws FinderException, RemoteException;
41:
42: public long getCountOfReservationsForCustomer(Integer customerId)
43: throws FinderException, RemoteException;
44:
45: public double getAmountOfReservationsForCustomer(Integer customerId)
46: throws FinderException, RemoteException;
47: }
|