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: // Ship EJB's Remote home interface
09: public interface ShipHomeRemote extends javax.ejb.EJBHome {
10:
11: public ShipRemote create(Integer primaryKey, String name,
12: double tonnage) throws javax.ejb.CreateException,
13: RemoteException;
14:
15: public ShipRemote findByPrimaryKey(Object primaryKey)
16: throws javax.ejb.FinderException, RemoteException;
17:
18: public Collection findAllShips() throws FinderException,
19: RemoteException;
20:
21: public Collection findByTonnage(Double tonnage)
22: throws javax.ejb.FinderException, RemoteException;
23:
24: public Collection findByTonnage(Double tonnage1, Double tonnage2)
25: throws javax.ejb.FinderException, RemoteException;
26:
27: public double getAverageOfTonnage()
28: throws javax.ejb.FinderException, RemoteException;
29:
30: }
|