1 22 package org.jboss.ejb3.test.bank; 23 24 import java.util.*; 25 import java.rmi.*; 26 import javax.ejb.*; 27 28 33 public interface AccountHome extends EJBHome 34 { 35 public static final String COMP_NAME = "java:comp/env/ejb/Account"; 37 38 public static final String JNDI_NAME = "bank/Account"; 39 40 42 44 46 public Account create(AccountData data) throws RemoteException, 48 CreateException; 49 50 public Account findByPrimaryKey(String id) throws RemoteException, 51 FinderException; 52 53 public Collection findAll() throws RemoteException, FinderException; 54 55 public Collection findByOwner(Customer owner) throws RemoteException, 56 FinderException; 57 58 public Collection findLargeAccounts(int balance) throws RemoteException, 59 FinderException; 60 } 61 62 77 | Popular Tags |