com.ibm.websphere.samples.scheduler.accountreportejb
Interface AccountHome

All Superinterfaces:
javax.ejb.EJBHome, java.rmi.Remote

public interface AccountHome
extends javax.ejb.EJBHome

Home interface for the Account entity bean

See Also:
AccountBean, Account

Method Summary
 Account create(java.lang.Integer key)
          Creates an Account entity (and an associated row in the database)
 java.util.Collection findAllAccounts()
          Returns all accounts found in the database
 Account findByPrimaryKey(java.lang.Integer key)
          Finds an Account given the account number
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

Account create(java.lang.Integer key)
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
Creates an Account entity (and an associated row in the database)

Parameters:
key - The account number associated with the account
Returns:
A reference to the account
Throws:
javax.ejb.CreateException
java.rmi.RemoteException

findAllAccounts

java.util.Collection findAllAccounts()
                                     throws javax.ejb.FinderException,
                                            java.rmi.RemoteException
Returns all accounts found in the database

Returns:
A collection of the accounts
Throws:
javax.ejb.FinderException
java.rmi.RemoteException

findByPrimaryKey

Account findByPrimaryKey(java.lang.Integer key)
                         throws javax.ejb.FinderException,
                                java.rmi.RemoteException
Finds an Account given the account number

Parameters:
key - An account number
Returns:
The Account
Throws:
javax.ejb.FinderException
java.rmi.RemoteException