1 3 package org.objectweb.jonas.stests.appli; 4 5 import java.rmi.RemoteException ; 6 import java.util.Enumeration ; 7 8 import javax.ejb.CreateException ; 9 import javax.ejb.EJBHome ; 10 import javax.ejb.FinderException ; 11 12 20 21 public interface ItemHome extends EJBHome { 22 23 34 35 public Item create(Integer id, String name, float price, String data) 36 throws RemoteException , CreateException ; 37 38 46 public Item findByPrimaryKey(Integer primaryKey) 47 throws FinderException , RemoteException ; 48 49 50 57 58 public Enumeration findAllItems( ) 59 throws FinderException , RemoteException ; 60 61 62 70 71 public Enumeration findByName(String name) 72 throws FinderException , RemoteException ; 73 74 75 83 84 public Enumeration findByPrice(Float price) 85 throws FinderException , RemoteException ; 86 87 88 89 90 } 91 | Popular Tags |