com.bankframe.examples.bp.customersearch
Class CustomerSearchBean

java.lang.Object
  extended bycom.bankframe.examples.bp.customersearch.CustomerSearchBean
Direct Known Subclasses:
CustomerSearchBean

public class CustomerSearchBean
extends java.lang.Object

This class defines the business logic of the CustomerSearch Session


Constructor Summary
CustomerSearchBean()
          Default Constructor.
 
Method Summary
 Customer amendCustomer(java.lang.String ownerId, java.lang.String title, java.lang.String firstName, java.lang.String lastName)
          This method amends all the details of the specified customer.
 Address amendCustomerAddress(java.lang.String ownerId, java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String addressLine3, java.lang.String addressLine4, java.lang.String country, java.lang.String postCode)
          This method amends the address details of the specified customer.
 java.util.Enumeration findAllCustomers()
          This method retrieves all Customer entities.
 java.util.Enumeration findCustomersByFirstName(java.lang.String firstName)
          This method retrieves all Customer entities with the specified first name.
 java.util.Enumeration findCustomersByLastName(java.lang.String lastName)
          This method retrieves all Customer entities with the specified last name.
 Customer getCustomer(java.lang.String ownerId)
          This method retrieves the Customer entity for the specified ownerId.
 Address getCustomerAddress(java.lang.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

CustomerSearchBean

public CustomerSearchBean()
Default Constructor.

Method Detail

amendCustomer

public Customer amendCustomer(java.lang.String ownerId,
                              java.lang.String title,
                              java.lang.String firstName,
                              java.lang.String lastName)
                       throws ValidationException,
                              ProcessingErrorException,
                              java.rmi.RemoteException
This method amends all the details of the specified customer.

Parameters:
ownerId -
title -
Returns:
the ammended customer object
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

amendCustomerAddress

public Address amendCustomerAddress(java.lang.String ownerId,
                                    java.lang.String addressLine1,
                                    java.lang.String addressLine2,
                                    java.lang.String addressLine3,
                                    java.lang.String addressLine4,
                                    java.lang.String country,
                                    java.lang.String postCode)
                             throws ValidationException,
                                    ProcessingErrorException,
                                    java.rmi.RemoteException
This method amends the address details of the specified customer.

Parameters:
ownerId -
addressLine1 -
addressLine2 -
addressLine3 -
addressLine4 -
country -
Returns:
the ammended address object
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

findAllCustomers

public java.util.Enumeration findAllCustomers()
                                       throws ProcessingErrorException,
                                              ValidationException,
                                              java.rmi.RemoteException
This method retrieves all Customer entities.

Returns:
an ennumeration of all customers
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

findCustomersByLastName

public java.util.Enumeration findCustomersByLastName(java.lang.String lastName)
                                              throws ProcessingErrorException,
                                                     ValidationException,
                                                     java.rmi.RemoteException
This method retrieves all Customer entities with the specified last name.

Parameters:
lastName - the last name of the customers to retrieve
Returns:
an ennumeration of customers with the given last name
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getCustomer

public Customer getCustomer(java.lang.String ownerId)
                     throws ProcessingErrorException,
                            ValidationException,
                            java.rmi.RemoteException
This method retrieves the Customer entity for the specified ownerId.

Parameters:
ownerId - the ID of the customer to retrieve
Returns:
a customer object with the given ID
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getCustomerAddress

public Address getCustomerAddress(java.lang.String ownerId)
                           throws ProcessingErrorException,
                                  ValidationException,
                                  java.rmi.RemoteException
This method retrieves the Address entity associated with the specified Customer.

Parameters:
ownerId - the ID of the customer
Returns:
an address object for the customer with the given id
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

findCustomersByFirstName

public java.util.Enumeration findCustomersByFirstName(java.lang.String firstName)
                                               throws ProcessingErrorException,
                                                      ValidationException,
                                                      java.rmi.RemoteException
This method retrieves all Customer entities with the specified first name.

Parameters:
firstName - the first name of the customers to retrieve
Returns:
an ennumeration of customers with the given first name
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException


Copyright © 2005, 2007, Oracle. All rights reserved.