|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.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 java.util.List |
generateTxnRequestFields(java.lang.String txnCode,
java.lang.String txnType)
This method generates the Transaction Request fields List for specified transaction code and type |
static java.util.List |
generateTxnResponseErrorConditions(java.lang.String txnCode,
java.lang.String txnType)
This method gets the Transaction Response Error-Conditions. |
static java.util.Map |
generateTxnResponseFields(java.util.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 java.util.List |
generateTxnResponseMetaData(java.lang.String txnCode,
java.lang.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(java.util.Iterator iterator)
This method returns the next TransactionErrorCondition entity from an Enumeration. |
static Cache |
getHostCache(java.lang.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(java.util.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(java.util.Iterator txnFields)
This method returns the next TransactionField entity from a list. |
static TransactionField |
getTxnResponseFieldFromName(ResponseTransactionFieldHome txnFieldHome,
java.lang.String txnFieldName,
boolean metaDataCached)
This method finds the RowAccess interface to a transaction field entity from the transaction field name. |
static TransactionRoute |
getTxnRoute(java.lang.String txnCode,
java.lang.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 java.util.List generateTxnRequestFields(java.lang.String txnCode, java.lang.String txnType) throws ProcessingErrorException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurredpublic static java.util.List generateTxnResponseErrorConditions(java.lang.String txnCode, java.lang.String txnType) throws ProcessingErrorException, javax.ejb.FinderException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurred
javax.ejb.FinderException
- if no entities foundpublic static java.util.Map generateTxnResponseFields(java.util.List txnMetaDataList) throws ProcessingErrorException
txnMetaDataList
- is List of txn Meta-data entity mappings
ProcessingErrorException
- if an error occurredpublic static java.util.List generateTxnResponseMetaData(java.lang.String txnCode, java.lang.String txnType) throws ProcessingErrorException
txnCode
- String Transaction CodetxnType
- String Transaction Type
ProcessingErrorException
- if an error occurredpublic static Destination getDestination(TransactionRoute txnRoute) throws ProcessingErrorException
ProcessingErrorException
- if an error occurspublic static TransactionErrorCondition getErrorConditionFromList(java.util.Iterator iterator)
iterator
- is an iterator to a List of Transaction Error-Conditions
public static MetaData getMetaDataFromIterator(java.util.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(java.util.Iterator txnFields)
txnFields
- is Iterator of transaction field List
public static TransactionField getTxnResponseFieldFromName(ResponseTransactionFieldHome txnFieldHome, java.lang.String txnFieldName, boolean metaDataCached) throws javax.ejb.FinderException, java.rmi.RemoteException, ProcessingErrorException
ProcessingErrorException
- if an error occurred
javax.ejb.FinderException
- if failed to find fields for given txnCode and txnType
java.rmi.RemoteException
- if error occured getting a field valuepublic static TransactionRoute getTxnRoute(java.lang.String txnCode, java.lang.String txnType, int hostSequenceNumber) throws ProcessingErrorException
txnCode
- Transaction CodehostSequenceNumber
- the host Sequence number of the transaction route
ProcessingErrorException
- if an error occurspublic static boolean isMetaDataCached()
public static boolean isRoutesCached()
public static Cache getHostCache(java.lang.String cacheName)
cacheName
- the name of this cache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |