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