|
WebLogic Server 6.1 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the home interface for the EJBean AccountBean. A home interface may support one or more create methods, which must correspond to methods named "ejbCreate" in the EJBean.
Method Summary | |
Account |
create(java.lang.String accountId,
double initialBalance,
java.lang.String type)
This method corresponds to the ejbCreate method in the bean "AccountBean.java". |
Account |
findAccount(double balanceEqual)
Finds an EJBean with a balance equal to a given amount. |
java.util.Collection |
findAllAccounts()
Finds all EJBeans. |
java.util.Enumeration |
findBigAccounts(double balanceGreaterThan)
Finds all EJBeans with a balance greater than a given amount. |
Account |
findByPrimaryKey(java.lang.String primaryKey)
Given a Primary Key, refreshes the EJBean from the persistent storage. |
java.util.Enumeration |
findNullAccounts()
Finds all EJBeans with a type of 'null'. |
Methods inherited from interface javax.ejb.EJBHome |
getEJBMetaData, getHomeHandle, remove, remove |
Method Detail |
public Account create(java.lang.String accountId, double initialBalance, java.lang.String type) throws javax.ejb.CreateException, java.rmi.RemoteException
AccountHome.create()
, the container (which in WebLogic EJB is
also the factory) allocates an instance of the bean and
calls AccountBean.ejbCreate()
For container-managed persistence, ejbCreate()
returns a null, unlike the case of bean-managed
persistence, where it returns a primary key. See section 9.4.2accountID
- String Account IDinitialBalance
- double Initial balancetype
- String Account typejavax.ejb.CreateException
- if there is an error creating the beanjava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
public Account findAccount(double balanceEqual) throws javax.ejb.FinderException, java.rmi.RemoteException
balanceEqual
- double Test Amountjavax.ejb.FinderException
- if an error occurs while accessing
the persistent storagejava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
public java.util.Collection findAllAccounts() throws javax.ejb.FinderException, java.rmi.RemoteException
javax.ejb.FinderException
- if an error occurs while accessing
the persistent storagejava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
public java.util.Enumeration findBigAccounts(double balanceGreaterThan) throws javax.ejb.FinderException, java.rmi.RemoteException
balanceGreaterThan
- double Test Amountjavax.ejb.FinderException
- if an error occurs while accessing
the persistent storagejava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
public Account findByPrimaryKey(java.lang.String primaryKey) throws javax.ejb.FinderException, javax.ejb.ObjectNotFoundException, java.rmi.RemoteException
primaryKey
- Primary Keyjavax.ejb.FinderException
- if there is an error finding the beanjava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
public java.util.Enumeration findNullAccounts() throws javax.ejb.FinderException, java.rmi.RemoteException
javax.ejb.FinderException
- if an error occurs while accessing
the persistent storagejava.rmi.RemoteException
- if there is
a communications or systems failureAccountBean
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |