com.bankframe.ei.txnhandler.dataformat.basic
Class BasicDataFormat

java.lang.Object
  extended bycom.bankframe.ei.txnhandler.dataformat.basic.BasicDataFormat
All Implemented Interfaces:
DataFormat
Direct Known Subclasses:
JDBCDataFormat, TestAccountDataFormat, TestCustomerDataFormat, XMLDataFormat

public class BasicDataFormat
extends java.lang.Object
implements DataFormat

This class is a generic implementation of the DataFormat Interface. The Transaction Handler calls this class to handle the processing of host system requests and responses.


Constructor Summary
BasicDataFormat()
           
 
Method Summary
 java.lang.Object buildRequestTxn(DataPacket txnDataPacket, java.lang.String txnCode, java.lang.String txnType)
          This method converts a Data Packet request to a Host System format using a List of Transaction Fields.
 boolean moreToRequest()
          This method indicates there are more Packets to process from host system, the method toDataPackets() sets this flag if it determines that there is more data to be requested from the host system.
 void notifyProcessingFinished()
          This method is called by the Transaction Handler bean when a all processing for a transaction is complete.
 void setConnectionSpecification(java.lang.Object command, java.lang.String connectorProperties)
          This method sets the Connector Properties on an EAB Command Bean.
 void toDataPacketsMap(java.lang.Object txnData, java.util.Map entitiesMap, DataPacket txnDataPacket, java.lang.String txnCode, java.lang.String txnType)
          This method converts the Vector of Host System Txn Fields data elements into a Map of DataPackets, this method is called by the txn handler method processFindRequest( )
 void toDataPacketsVector(java.lang.Object txnData, java.util.Vector responseEntitiesVector, DataPacket txnDataPacket, java.lang.String txnCode, java.lang.String txnType)
          This method converts the Vector of Host System Response into a Vector of result DataPackets, this method is called by the txn handler method processRequest( )
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDataFormat

public BasicDataFormat()
Method Detail

buildRequestTxn

public java.lang.Object buildRequestTxn(DataPacket txnDataPacket,
                                        java.lang.String txnCode,
                                        java.lang.String txnType)
                                 throws ProcessingErrorException
This method converts a Data Packet request to a Host System format using a List of Transaction Fields.

Specified by:
buildRequestTxn in interface DataFormat
Parameters:
txnDataPacket - is DataPacket of transaction settings
txnCode - is the transaction code
txnType - is the transaction type
Returns:
Host System formatted Object
Throws:
ProcessingErrorException

moreToRequest

public boolean moreToRequest()
This method indicates there are more Packets to process from host system, the method toDataPackets() sets this flag if it determines that there is more data to be requested from the host system. This is required for systems that break the response into sub-parts. Transaction Handler checks this to determine if another request is to be posted to the host system..

Specified by:
moreToRequest in interface DataFormat
Returns:
boolean indicating more data to request

notifyProcessingFinished

public void notifyProcessingFinished()
This method is called by the Transaction Handler bean when a all processing for a transaction is complete. This allows the Data-Format class to clean up any temporary data and variables.

Specified by:
notifyProcessingFinished in interface DataFormat

setConnectionSpecification

public void setConnectionSpecification(java.lang.Object command,
                                       java.lang.String connectorProperties)
                                throws ProcessingErrorException
This method sets the Connector Properties on an EAB Command Bean. This method is called by the Transaction Handler Bean after it has built the request.

Parameters:
command - the Command bean to be set.
connectorProperties - is the Connector properties as determined by the Transaction Handler engine from the Destination EJB
Throws:
ProcessingErrorException

toDataPacketsMap

public void toDataPacketsMap(java.lang.Object txnData,
                             java.util.Map entitiesMap,
                             DataPacket txnDataPacket,
                             java.lang.String txnCode,
                             java.lang.String txnType)
                      throws ProcessingErrorException,
                             HostProcessingErrorException
This method converts the Vector of Host System Txn Fields data elements into a Map of DataPackets, this method is called by the txn handler method processFindRequest( )

Specified by:
toDataPacketsMap in interface DataFormat
Parameters:
txnDataPacket - DataPacket of request settings.
txnCode - is transaction code
txnType - is transaction type
txnData - data from host system.
entitiesMap - is Map of Data Packet entities created.
Throws:
ProcessingErrorException
HostProcessingErrorException

toDataPacketsVector

public void toDataPacketsVector(java.lang.Object txnData,
                                java.util.Vector responseEntitiesVector,
                                DataPacket txnDataPacket,
                                java.lang.String txnCode,
                                java.lang.String txnType)
                         throws ProcessingErrorException,
                                HostProcessingErrorException
This method converts the Vector of Host System Response into a Vector of result DataPackets, this method is called by the txn handler method processRequest( )

Specified by:
toDataPacketsVector in interface DataFormat
Parameters:
txnData - is Object(Vector) data from host system.
responseEntitiesVector - is the Vector of DataPacket entities updated/created from host system data
txnDataPacket - is DataPacket of request settings.
txnCode - is transaction code
txnType - is transaction type
Throws:
ProcessingErrorException
HostProcessingErrorException


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