com.bankframe.examples.bp.customersearch
Interface CustomerSearch

All Known Subinterfaces:
CustomerSearch

public interface CustomerSearch

This interface defines the remote interface of the CustomerSearch session ejb,

Author:
ETU

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 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.
 

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:
addressLine1 -
addressLine2 -
addressLine3 -
addressLine4 -
country -
postCode -
Returns:
the new 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 enumeration 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 enumeration of all 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 -
Returns:
the customer object with the given owner 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 to retrive the address of
Returns:
the address of the customer with the given owner ID
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException


Copyright © 2004 Siebel Systems, Inc. All rights reserved.