com.bankframe.ei.txnhandler.broker
Class TxnHandlerBroker

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.broker.TxnHandlerBroker

public class TxnHandlerBroker
extends java.lang.Object

This class provides a utility method for carrying out transaction handler amend operations that must be carried out from a session bean, rather than directly from an entity bean. This can happen when the data from two or more entity beans must be combined to form a single host transaction


Method Summary
static java.util.Vector amend(java.lang.String ejbName, java.lang.String amendName, DataPacket amendData, java.util.Vector amendedPrimaryKeys)
          This method carries out the specified amend operation
static java.util.Vector amend(java.lang.String ejbName, java.lang.String amendName, java.util.HashMap amendData)
          This method carries out the specified amend operation.
static java.util.Vector find(java.lang.String ejbName, java.lang.String methodName, DataPacket data)
          This method carries out the specified find operation
static java.util.Vector find(java.lang.String ejbName, java.lang.String methodName, java.util.HashMap data)
          This method carries out the specified find operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

amend

public static java.util.Vector amend(java.lang.String ejbName,
                                     java.lang.String amendName,
                                     DataPacket amendData,
                                     java.util.Vector amendedPrimaryKeys)
                              throws ProcessingErrorException,
                                     java.rmi.RemoteException
This method carries out the specified amend operation

Parameters:
ejbName - Name of the EJB that the amend operation belongs to
amendName - Name of the amend operation to perform
amendData - The data that has been amended
amendedPrimaryKeys - Vector of Primary Keys of the entities that are affected by the amend operation.
Throws:
ProcessingErrorException
java.rmi.RemoteException

amend

public static java.util.Vector amend(java.lang.String ejbName,
                                     java.lang.String amendName,
                                     java.util.HashMap amendData)
                              throws ProcessingErrorException,
                                     java.rmi.RemoteException
This method carries out the specified amend operation. Gets a HostTransactionObjectFactory and using that gets SessionAmendHelperDTO for the ejbName, amendName, amendData provided. Invokes amend(String ejbName, String amendName, DataPacket amendData, Vector amendedPrimaryKeys) passing in the DataPacket from SessionAmendHelperDTO.toDataPacket() as amendData and SessionAmendHelperDTO.getAmendPrimaryKeys() as amendedPrimaryKeys.

Parameters:
ejbName - Name of the EJB that the amend operation belongs to
amendName - Name of the amend operation to perform
amendData - All the data available that the calling method considers relevant
Throws:
ProcessingErrorException
java.rmi.RemoteException

find

public static java.util.Vector find(java.lang.String ejbName,
                                    java.lang.String methodName,
                                    DataPacket data)
                             throws ProcessingErrorException,
                                    java.rmi.RemoteException
This method carries out the specified find operation

Parameters:
ejbName - Name of the EJB that the amend operation belongs to
methodName - Name of the find operation to perform
data - The data that for the find operation
Throws:
ProcessingErrorException
java.rmi.RemoteException

find

public static java.util.Vector find(java.lang.String ejbName,
                                    java.lang.String methodName,
                                    java.util.HashMap data)
                             throws ProcessingErrorException,
                                    java.rmi.RemoteException
This method carries out the specified find operation. Gets a HostTransactionObjectFactory and using that gets SessionAmendHelperDTO for the ejbName, method, data provided. Invokes find(String ejbName, String methodName, DataPacket data) passing in the DataPacket from SessionAmendHelperDTO.toDataPacket().

Parameters:
ejbName - Name of the EJB that the amend operation belongs to
methodName - Name of the find operation to perform
data - All the data available that the calling method considers relevant
Throws:
ProcessingErrorException
java.rmi.RemoteException


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