samples.j2ee.ejb.sequence.jdbc
Interface AutoAccountHome
- public interface AutoAccountHome
- extends javax.ejb.EJBHome
This interface is the home interface for the EJBean AutoAccountBean,
which in WLE is implemented by the code-generated container class
AutoAccountBeanC. A home interface may support one or more create methods,
which must correspond to methods named "ejbCreate" in the EJBean.
|
Method Summary |
AutoAccount |
create(double initialBalance)
This method corresponds to the ejbCreate method in the bean
"AutoAccountBean.java". |
AutoAccount |
create(java.lang.String accountID,
double initialBalance)
This method corresponds to the ejbCreate method in the bean
"AutoAccountBean.java". |
AutoAccount |
findAccount(double balanceEqual)
Finds an EJBean with a balance equal to a given amount. |
AutoAccount |
findByPrimaryKey(AutoAccountPK primaryKey)
Given a Primary Key, refreshes the EJBean from
the persistent storage. |
| Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData,
getHomeHandle,
remove,
remove |
create
public AutoAccount create(double initialBalance)
throws javax.ejb.CreateException,
java.rmi.RemoteException
- This method corresponds to the ejbCreate method in the bean
"AutoAccountBean.java".
The parameter sets of the two methods are identical. When the client calls
AutoAccountHome.create(), the container (which in WebLogic
EJB is also the factory) allocates an instance of the bean and
calls AutoAccountBean.ejbCreate()
For container-managed persistence, ejbCreate()
returns a void, unlike the case of bean-managed
persistence, where it returns a primary key.
- Parameters:
initialBalance - double Initial Balance- Returns:
- AutoAccount
- Throws:
- javax.ejb.CreateException - if there is an error creating the bean
- java.rmi.RemoteException - if there is
a communications or systems failure
- See Also:
AutoAccountBean
create
public AutoAccount create(java.lang.String accountID,
double initialBalance)
throws javax.ejb.CreateException,
java.rmi.RemoteException
- This method corresponds to the ejbCreate method in the bean
"AutoAccountBean.java".
The parameter sets of the two methods are identical. When the client calls
AutoAccountHome.create(), the container (which in WebLogic
EJB is also the factory) allocates an instance of the bean and
calls AutoAccountBean.ejbCreate()
For container-managed persistence, ejbCreate()
returns a void, unlike the case of bean-managed
persistence, where it returns a primary key.
- Parameters:
accountID - String Account IDinitialBalance - double Initial Balance- Returns:
- AutoAccount
- Throws:
- javax.ejb.CreateException - if there is an error creating the bean
- java.rmi.RemoteException - if there is
a communications or systems failure
- See Also:
AutoAccountBean
findByPrimaryKey
public AutoAccount findByPrimaryKey(AutoAccountPK primaryKey)
throws javax.ejb.FinderException,
java.rmi.RemoteException
- Given a Primary Key, refreshes the EJBean from
the persistent storage.
- Parameters:
primaryKey - AccountPK Primary Key- Returns:
- Account
- Throws:
- javax.ejb.FinderException - if there is an error finding the bean
- java.rmi.RemoteException - if there is
a communications or systems failure
- See Also:
AutoAccountBean
findAccount
public AutoAccount findAccount(double balanceEqual)
throws javax.ejb.FinderException,
java.rmi.RemoteException
- Finds an EJBean with a balance equal to a given amount.
Returns a single EJBean Account.
- Parameters:
balanceEqual - double Test Amount- Returns:
- Account
- Throws:
- javax.ejb.FinderException - if an error occurs while accessing
the persistent storage
- java.rmi.RemoteException - if there is
a communications or systems failure
- See Also:
AutoAccountBean