|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountHome
The Home Interfe for Application Profile Account Management Sample
Method Summary | |
---|---|
Account |
create(java.lang.String accountid)
This Home Interface Method is responsible for the creation of an Account entry. |
Account |
create(java.lang.String accountid,
int type,
double balance,
double apr)
This Home Interface Method is responsible for the creation of an Account entry. |
java.util.Collection |
findAllAccounts()
This Home Interface Method is responsible for finding a collection of all Accounts. |
Account |
findByAccountId(java.lang.String accountid)
This Home Interface Method is responsible for finding an Account entry based on the account id. |
Account |
findByPrimaryKey(java.lang.String accountid)
This Home Interface Method is responsible for finding an Account entry based on the accountid. |
java.util.Collection |
findLargeAccounts(double balance)
This Home Interface Method is responsible for finding a collection of Accounts with balance greater than the balance parameter. |
Methods inherited from interface javax.ejb.EJBHome |
---|
getEJBMetaData, getHomeHandle, remove, remove |
Method Detail |
---|
Account create(java.lang.String accountid) throws javax.ejb.CreateException, java.rmi.RemoteException
accountid
- String object used as the primary key of the Account object, and used to set accountid attribute
javax.ejb.CreateException
- This exception is thrown to indicate a failure to create the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.Account create(java.lang.String accountid, int type, double balance, double apr) throws javax.ejb.CreateException, java.rmi.RemoteException
accountid
- String object used as the primary key of the Account object, and used to set accountid attributetype
- used to set type attributebalance
- used to set balance attributeapr
- used to set APR attribute
javax.ejb.CreateException
- This exception is thrown to indicate a failure to create the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.Account findByAccountId(java.lang.String accountid) throws javax.ejb.FinderException, java.rmi.RemoteException
accountid
- String object used as the primary key of Account object.
javax.ejb.FinderException
- This exception is thrown to indicate a failure to find the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.java.util.Collection findLargeAccounts(double balance) throws javax.ejb.FinderException, java.rmi.RemoteException
balance
- the minimum value of balance attribute.
javax.ejb.FinderException
- This exception is thrown to indicate a failure to find the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.java.util.Collection findAllAccounts() throws javax.ejb.FinderException, java.rmi.RemoteException
javax.ejb.FinderException
- This exception is thrown to indicate a failure to find the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.Account findByPrimaryKey(java.lang.String accountid) throws javax.ejb.FinderException, java.rmi.RemoteException
accountid
- String object used as the primary key of Account object.
javax.ejb.FinderException
- This exception is thrown to indicate a failure to find the entity EJB.
java.rmi.RemoteException
- Signals that a Remote exception of some sort has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |