com.bankframe.examples.bp.impl.customersearch
Class CustomerSearchBean

java.lang.Object
  extended bycom.bankframe.examples.bp.customersearch.CustomerSearchBean
      extended bycom.bankframe.examples.bp.impl.customersearch.CustomerSearchBean
All Implemented Interfaces:
ESession, java.io.Serializable
Direct Known Subclasses:
CustomerSearchSessionBean

public class CustomerSearchBean
extends CustomerSearchBean
implements ESession

This class marshalls methods calls and responses to/from DataPackets.

Author:
ETU
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.bankframe.ejb.ESession
serialVersionUID
 
Constructor Summary
CustomerSearchBean()
          Default Constructor.
 
Method Summary
 java.util.Vector amendCustomer(DataPacket data)
          This method amends all the details of the specified customer.
 java.util.Vector amendCustomerAddress(DataPacket data)
          This method amends the address details of the specified customer.
 void ejbCreate()
          This method initialises a CustomerSearch instance.
 java.util.Vector findCustomersByLastName(DataPacket data)
          This method retrieves all Customer entities with the specified last name.
 java.util.Vector getAllCustomers()
          This method retrieves all Customer entities.
 java.util.Vector getCustomer(DataPacket data)
          This method retrieves the Customer entity for the specified ownerId.
 java.util.Vector getCustomerAddress(DataPacket data)
          This method retrieves the Address entity associated with the specified Customer
 java.util.Vector processDataPacket(DataPacket data)
          This method processes a request DataPacket and delegates it to the appropriate method.
 java.util.Vector processDataPackets(java.util.Vector data)
          This method processes multiple DataPacket requests.
 java.util.Vector txnHandlerBrokerAmendCustomer(DataPacket data)
          This method amends all the details of the specified customer using TxnHandlerBroker.
 java.util.Vector txnHandlerBrokerAmendCustomerAddress(DataPacket data)
          This method amends the address details of the specified customer using TxnHandlerBroker If TxnHandlerBroker.amend() returns a Vector with DataPacket attribute STATUS = OK then return the amended datapacket values.
 
Methods inherited from class com.bankframe.examples.bp.customersearch.CustomerSearchBean
amendCustomer, amendCustomerAddress, findAllCustomers, findCustomersByLastName, getCustomer, getCustomerAddress
 
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 java.util.Vector amendCustomer(DataPacket data)
                               throws ValidationException,
                                      ProcessingErrorException,
                                      java.rmi.RemoteException
This method amends all the details of the specified customer.

Parameters:
data - a DataPacket containing customer data
Returns:
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

txnHandlerBrokerAmendCustomer

public java.util.Vector txnHandlerBrokerAmendCustomer(DataPacket data)
                                               throws ValidationException,
                                                      ProcessingErrorException,
                                                      java.rmi.RemoteException
This method amends all the details of the specified customer using TxnHandlerBroker. If TxnHandlerBroker.amend() returns a Vector with DataPacket attribute STATUS = OK then return the amended datapacket values. Otherwise the response from TxnHandlerBroker is returned in the OWNER_ID attribute of the datapacket, this will ensure it gets displayed.

Parameters:
data - a DataPacket containing customer data
Returns:
a Vector of response from TxnHandlerBroker
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

txnHandlerBrokerAmendCustomerAddress

public java.util.Vector txnHandlerBrokerAmendCustomerAddress(DataPacket data)
                                                      throws ValidationException,
                                                             ProcessingErrorException,
                                                             java.rmi.RemoteException
This method amends the address details of the specified customer using TxnHandlerBroker If TxnHandlerBroker.amend() returns a Vector with DataPacket attribute STATUS = OK then return the amended datapacket values. Otherwise the response from TxnHandlerBroker is returned in the OWNER_ID attribute of the datapacket, this will ensure it gets displayed.

Parameters:
data - a DataPacket that contains ammendments
Returns:
a Vector of response from TxnHandlerBroker
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

amendCustomerAddress

public java.util.Vector amendCustomerAddress(DataPacket data)
                                      throws ValidationException,
                                             ProcessingErrorException,
                                             java.rmi.RemoteException
This method amends the address details of the specified customer.

Parameters:
data - a DataPacket that contains ammendments
Returns:
a Vector reprentation of the ammeded customer entity
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
This method initialises a CustomerSearch instance.

Throws:
javax.ejb.CreateException

findCustomersByLastName

public java.util.Vector findCustomersByLastName(DataPacket data)
                                         throws ProcessingErrorException,
                                                ValidationException,
                                                java.rmi.RemoteException
This method retrieves all Customer entities with the specified last name.

Parameters:
data - a DataPacket containing the last name to check for
Returns:
a vector of DataPackets containing all valid customer entities
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getAllCustomers

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

Returns:
a vector of DataPacket with all customer instances.
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getCustomer

public java.util.Vector getCustomer(DataPacket data)
                             throws ProcessingErrorException,
                                    ValidationException,
                                    java.rmi.RemoteException
This method retrieves the Customer entity for the specified ownerId.

Parameters:
data - a DataPacket representing the ownerId
Returns:
a DataPacket representeding the customer entity
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

getCustomerAddress

public java.util.Vector getCustomerAddress(DataPacket data)
                                    throws ProcessingErrorException,
                                           ValidationException,
                                           java.rmi.RemoteException
This method retrieves the Address entity associated with the specified Customer

Parameters:
data - a DataPacket representing the ownerId
Returns:
a DataPacket representeding the address entity
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException

processDataPacket

public java.util.Vector processDataPacket(DataPacket data)
                                   throws ProcessingErrorException,
                                          java.rmi.RemoteException
This method processes a request DataPacket and delegates it to the appropriate method.

Specified by:
processDataPacket in interface ESession
Parameters:
data - a request Datapacket
Returns:
a vector of DataPackets containing the response
Throws:
ProcessingErrorException
java.rmi.RemoteException

processDataPackets

public java.util.Vector processDataPackets(java.util.Vector data)
                                    throws ProcessingErrorException,
                                           java.rmi.RemoteException
This method processes multiple DataPacket requests.

Specified by:
processDataPackets in interface ESession
Parameters:
data - a DataPacket representing the request
Returns:
a vector of DataPackets representeding the customer entity
Throws:
ProcessingErrorException
java.rmi.RemoteException
ValidationException


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