|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.examples.bp.customersearch.CustomerSearchBean
public class CustomerSearchBean
This class defines the business logic of the CustomerSearch Session
Constructor Summary | |
---|---|
CustomerSearchBean()
Default Constructor. |
Method Summary | |
---|---|
Customer |
amendCustomer(String ownerId,
String title,
String firstName,
String lastName)
This method amends all the details of the specified customer. |
Address |
amendCustomerAddress(String ownerId,
String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
This method amends the address details of the specified customer. |
Enumeration |
findAllCustomers()
This method retrieves all Customer entities. |
Enumeration |
findCustomersByFirstName(String firstName)
This method retrieves all Customer entities with the specified first name. |
Enumeration |
findCustomersByLastName(String lastName)
This method retrieves all Customer entities with the specified last name. |
Customer |
getCustomer(String ownerId)
This method retrieves the Customer entity for the specified ownerId. |
Address |
getCustomerAddress(String ownerId)
This method retrieves the Address entity associated with the specified Customer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomerSearchBean()
Method Detail |
---|
public Customer amendCustomer(String ownerId, String title, String firstName, String lastName) throws ValidationException, ProcessingErrorException, RemoteException
ownerId
- title
- firstName
- lastName
-
ProcessingErrorException
RemoteException
ValidationException
public Address amendCustomerAddress(String ownerId, String addressLine1, String addressLine2, String addressLine3, String addressLine4, String country, String postCode) throws ValidationException, ProcessingErrorException, RemoteException
ownerId
- addressLine1
- addressLine2
- addressLine3
- addressLine4
- country
- postCode
-
ProcessingErrorException
RemoteException
ValidationException
public Enumeration findAllCustomers() throws ProcessingErrorException, ValidationException, RemoteException
ProcessingErrorException
RemoteException
ValidationException
public Enumeration findCustomersByLastName(String lastName) throws ProcessingErrorException, ValidationException, RemoteException
lastName
- the last name of the customers to retrieve
ProcessingErrorException
RemoteException
ValidationException
public Customer getCustomer(String ownerId) throws ProcessingErrorException, ValidationException, RemoteException
ownerId
- the ID of the customer to retrieve
ProcessingErrorException
RemoteException
ValidationException
public Address getCustomerAddress(String ownerId) throws ProcessingErrorException, ValidationException, RemoteException
ownerId
- the ID of the customer
ProcessingErrorException
RemoteException
ValidationException
public Enumeration findCustomersByFirstName(String firstName) throws ProcessingErrorException, ValidationException, RemoteException
firstName
- the first name of the customers to retrieve
ProcessingErrorException
RemoteException
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |