All Examples  All EJB Examples  This Package

Interface examples.ejb.basic.containerManaged.AccountHome

public interface AccountHome
extends EJBHome
This interface is the home interface for the EJBean AccountBean, which in WebLogic is implemented by the code-generated container class AccountBeanC. A home interface may support one or more create methods, which must correspond to methods named "ejbCreate" in the EJBean.

Author:
Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.,
Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.

Method Index

 o create(String, double, String)
This method corresponds to the ejbCreate method in the bean "AccountBean.java".
 o findAccount(double)
Finds an EJBean with a balance equal to a given amount.
 o findBigAccounts(double)
Finds all EJBeans with a balance greater than a given amount.
 o findByPrimaryKey(AccountPK)
Given a Primary Key, refreshes the EJBean from the persistent storage.
 o findDescOrderedBigAccounts(double)
Finds all EJBeans with a balance greater than a given amount.
 o findNullAccounts()
Finds all EJBeans with a type of 'null'.
 o findOrderedBigAccounts(double)
Finds all EJBeans with a balance greater than a given amount.

Methods

 o create
 public abstract Account create(String accountId,
                                double initialBalance,
                                String type) throws CreateException, RemoteException
This method corresponds to the ejbCreate method in the bean "AccountBean.java". The parameter sets of the two methods are identical. When the client calls 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 void, unlike the case of bean-managed persistence, where it returns a primary key.

Parameters:
accountID - String Account ID
initialBalance - double Initial balance
type - String Account type
Returns:
Account
Throws: CreateException
if there is an error creating the bean
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findByPrimaryKey
 public abstract Account findByPrimaryKey(AccountPK primaryKey) throws FinderException, RemoteException
Given a Primary Key, refreshes the EJBean from the persistent storage.

Parameters:
primaryKey - AccountPK Primary Key
Returns:
Account
Throws: FinderException
if there is an error finding the bean
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findAccount
 public abstract Account findAccount(double balanceEqual) throws FinderException, 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: FinderException
if an error occurs while accessing the persistent storage
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findBigAccounts
 public abstract Enumeration findBigAccounts(double balanceGreaterThan) throws FinderException, RemoteException
Finds all EJBeans with a balance greater than a given amount. Returns an Enumeration of found EJBean Accounts.

Parameters:
balanceGreaterThan - double Test Amount
Returns:
Enumeration of Account
Throws: FinderException
if an error occurs while accessing the persistent storage
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findOrderedBigAccounts
 public abstract Enumeration findOrderedBigAccounts(double balanceGreaterThan) throws FinderException, RemoteException
Finds all EJBeans with a balance greater than a given amount. Returns an Enumeration of found EJBean Accounts in ascending order by Account ID.

Parameters:
balanceGreaterThan - double Test Amount
Returns:
Enumeration of Account
Throws: FinderException
if an error occurs while accessing the persistent storage
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findDescOrderedBigAccounts
 public abstract Enumeration findDescOrderedBigAccounts(double balanceGreaterThan) throws FinderException, RemoteException
Finds all EJBeans with a balance greater than a given amount. Returns an Enumeration of found EJBean Accounts in descending order by Account ID.

Parameters:
balanceGreaterThan - double Test Amount
Returns:
Enumeration of Account
Throws: FinderException
if an error occurs while accessing the persistent storage
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean
 o findNullAccounts
 public abstract Enumeration findNullAccounts() throws FinderException, RemoteException
Finds all EJBeans with a type of 'null'.

Returns:
Enumeration of Account
Throws: FinderException
if an error occurs while accessing the persistent storage
Throws: RemoteException
if there is a communications or systems failure
See Also:
AccountBean

All Examples  All EJB Examples  This Package