1 package org.objectweb.jonas.jtests.beans.ejbql; 2 3 import java.rmi.RemoteException ; 4 import java.util.Collection ; 5 6 import javax.ejb.FinderException ; 7 8 public interface ShipHomeRemote extends javax.ejb.EJBHome { 10 11 public ShipRemote create(Integer primaryKey, String name, double tonnage) 12 throws javax.ejb.CreateException , RemoteException ; 13 14 public ShipRemote findByPrimaryKey(Object primaryKey) 15 throws javax.ejb.FinderException , RemoteException ; 16 17 public Collection findAllShips() 18 throws FinderException , RemoteException ; 19 20 public Collection findByTonnage(Double tonnage) 21 throws javax.ejb.FinderException , RemoteException ; 22 23 public Collection findByTonnage(Double tonnage1, Double tonnage2) 24 throws javax.ejb.FinderException , RemoteException ; 25 26 public double getAverageOfTonnage() 27 throws javax.ejb.FinderException , RemoteException ; 28 29 } 30 31 | Popular Tags |