| org.objectweb.jonas.stests.appli.CustomerHome
CustomerHome | public interface CustomerHome extends EJBHome(Code) | | Home interface for the Customer. This will handle all lifecycle
related operations for the class of Customers: creation, location,
deletion.
Several finder methods are provided to locate customers according
to various search criteria.
|
Method Summary | |
public Customer | create(Integer Id, String fN, String lN, String phone) Create a new Customer with minimal information. | public Customer | create(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit) | public Enumeration | findAllCustomers() Retrieve all of the customers. | public Customer | findByPrimaryKey(Integer primaryKey) Retrieve an individual customer by their customer ID number. | public Enumeration | findCustomers(String lastName) Retrieve all of the customers with a given last name. |
create | public Customer create(Integer Id, String fN, String lN, String phone) throws CreateException, RemoteException(Code) | | Create a new Customer with minimal information.
Parameters: id - Customer ID for the customer being created, must be unique Parameters: fN - First name of the customer Parameters: lN - Last name of the customer Parameters: phone - Phone number of the customer Customer exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
create | public Customer create(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit) throws CreateException, RemoteException(Code) | | Create a new Customer with all parameters, except balances which will automatically
be initialized to zero
Parameters: id - Customer ID for the customer being created, must be unique Parameters: fN - First name of the customer Parameters: lN - Last name of the customer Parameters: inits - Middle initials of the customer Parameters: phone - Phone number of the customer Parameters: addr1 - First address line of the customer Parameters: addr2 - Second address line of the customer Parameters: city - City of the customer's mailing address Parameters: state - State of the customer's mailing address Parameters: zip - Zip code of the customer's mailing address Parameters: creditLimit - Credit limit allowed for this cusomter Customer exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
findByPrimaryKey | public Customer findByPrimaryKey(Integer primaryKey) throws FinderException, RemoteException(Code) | | Retrieve an individual customer by their customer ID number.
Parameters: primaryKey - Primary key to find the customer with Customer exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
findCustomers | public Enumeration findCustomers(String lastName) throws FinderException, RemoteException(Code) | | Retrieve all of the customers with a given last name.
Note:This returns a list of 1 or more customers with the specified last name
Parameters: primaryKey - Primary key to find the customer with Customer exception: javax.ejb.FinderException - Find Exception exception: java.rmi.RemoteException - Remote Exception |
|
|