|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ei.txnhandler.TransactionHandlerUtils
public class TransactionHandlerUtils
This class provides methods for the TransactionHandler to check if caching of metadata and routes has been turned on and a helper method for retrieving metadata from an enumeration.
Constructor Summary | |
---|---|
TransactionHandlerUtils()
|
Method Summary | |
---|---|
static List |
generateTxnRequestFields(String txnCode,
String txnType)
This method generates the Transaction Request fields List for specified transaction code and type |
static List |
generateTxnResponseErrorConditions(String txnCode,
String txnType)
This method gets the Transaction Response Error-Conditions. |
static Map |
generateTxnResponseFields(List txnMetaDataList)
This method generates a Map of the Response Transaction Fields from the field names that are specified in the Meta-data List. |
static List |
generateTxnResponseMetaData(String txnCode,
String txnType)
This method generates the Transaction Response Meta-data List of entity mappings for specified transaction code and type |
static Destination |
getDestination(TransactionRoute txnRoute)
This method gets the Destination for a given transaction route. |
static TransactionErrorCondition |
getErrorConditionFromList(Iterator iterator)
This method returns the next TransactionErrorCondition entity from an Enumeration. |
static Cache |
getHostCache(String cacheName)
This method returns a cache instance that has been intialized with the parameters from the BankframeResouce.properties file for the transaction handler host cache. |
static MetaData |
getMetaDataFromIterator(Iterator txnMetaData)
This method returns the remote interface of the next MetaData entity from a List This is used during the processing of a host response. |
static MetaDataHome |
getMetaDataHome()
This method returns a MetaDataHome interface. |
static RequestTransactionFieldHome |
getRequestTransactionFieldHome()
This method returns a RequestTransactionFieldHome object. |
static ResponseTransactionFieldHome |
getResponseTransactionFieldHome()
This method returns a ResponseTransactionFieldHome interface. |
static TransactionErrorConditionHome |
getTxnErrorConditionHome()
This method returns a TransactionErrorConditionHome interface. |
static TransactionField |
getTxnFieldFromList(Iterator txnFields)
This method returns the next TransactionField entity from a list. |
static TransactionField |
getTxnResponseFieldFromName(ResponseTransactionFieldHome txnFieldHome,
String txnFieldName,
boolean metaDataCached)
This method finds the RowAccess interface to a transaction field entity from the transaction field name. |
static TransactionRoute |
getTxnRoute(String txnCode,
String txnType,
int hostSequenceNumber)
This method gets the Transaction Route for a given txnCode and txnType. |
static boolean |
isMetaDataCached()
This method checks the BankframeResource.properties file to see if cahcing of metadata has been turned on. |
static boolean |
isRoutesCached()
This method checks the BankframeResource.properties file to see if cahcing of routes has been turned on. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionHandlerUtils()
Method Detail |
---|
public static List generateTxnRequestFields(String txnCode, String txnType) throws ProcessingErrorException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurredpublic static List generateTxnResponseErrorConditions(String txnCode, String txnType) throws ProcessingErrorException, FinderException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurred
FinderException
- if no entities foundpublic static Map generateTxnResponseFields(List txnMetaDataList) throws ProcessingErrorException
txnMetaDataList
- is List of txn Meta-data entity mappings
ProcessingErrorException
- if an error occurredpublic static List generateTxnResponseMetaData(String txnCode, String txnType) throws ProcessingErrorException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurredpublic static Destination getDestination(TransactionRoute txnRoute) throws ProcessingErrorException
txnRoute
- TransactionRoute interface from Transaction Route Entity Bean
ProcessingErrorException
- if an error occurspublic static TransactionErrorCondition getErrorConditionFromList(Iterator iterator)
iterator
- is an iterator to a List of Transaction Error-Conditions
public static MetaData getMetaDataFromIterator(Iterator txnMetaData)
txnMetaData
- is Iterator of Meta-Data entities
public static MetaDataHome getMetaDataHome() throws ProcessingErrorException
ProcessingErrorException
public static RequestTransactionFieldHome getRequestTransactionFieldHome() throws ProcessingErrorException
ProcessingErrorException
public static ResponseTransactionFieldHome getResponseTransactionFieldHome() throws ProcessingErrorException
ProcessingErrorException
public static TransactionErrorConditionHome getTxnErrorConditionHome() throws ProcessingErrorException
ProcessingErrorException
public static TransactionField getTxnFieldFromList(Iterator txnFields)
txnFields
- is Iterator of transaction field List
public static TransactionField getTxnResponseFieldFromName(ResponseTransactionFieldHome txnFieldHome, String txnFieldName, boolean metaDataCached) throws FinderException, RemoteException, ProcessingErrorException
txnFieldHome
- ResponseTransactionFieldHometxnFieldName
- StringmetaDataCached
- boolean
ProcessingErrorException
- if an error occurred
FinderException
- if failed to find fields for given txnCode and txnType
RemoteException
- if error occured getting a field valuepublic static TransactionRoute getTxnRoute(String txnCode, String txnType, int hostSequenceNumber) throws ProcessingErrorException
txnCode
- String Transaction CodetxnType
- String Transaction TypehostSequenceNumber
- int the host Sequence number of the transaction route
ProcessingErrorException
- if an error occurspublic static boolean isMetaDataCached()
public static boolean isRoutesCached()
public static Cache getHostCache(String cacheName)
cacheName
- the name of this cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |