IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.bc.fx
Interface RatesRepository

All Known Implementing Classes:
RatesRepositoryDB2Impl, RatesRepositoryFileImpl

public interface RatesRepository

Classes implementing the RatesRepository interface access the datastore containing the conversion rates. See RatesRepositoryFileImpl for an example of a class that implements this interface.


Method Summary
 java.util.Set<java.lang.String> getAllSupportedCurrencies()
          Returns all supported currency codes in a Set.
 java.util.Set<java.lang.String> getDefinedMonetaryItems()
          Returns all defined monetary item types.
 java.math.BigDecimal getRate(RatesQueryRequest request, boolean isBuy)
          Returns the foreign exchange rate according to the given parameters.
 

Method Detail

getRate

java.math.BigDecimal getRate(RatesQueryRequest request,
                             boolean isBuy)
                             throws ForeignExchangeException
Returns the foreign exchange rate according to the given parameters.

Parameters:
request - the RatesQueryRequest identifying the request data
isBuy - true if the requested rate is a buy rate, otherwise it should be false
Returns:
the requested rate, null if the requested rate is not found in the datastorage
Throws:
ForeignExchangeException - occurs if any error accessing the rate

getAllSupportedCurrencies

java.util.Set<java.lang.String> getAllSupportedCurrencies()
                                                          throws ForeignExchangeException
Returns all supported currency codes in a Set.

Returns:
the Set containing all supported currency codes
Throws:
ForeignExchangeException - occurs if any error accessing the Set

getDefinedMonetaryItems

java.util.Set<java.lang.String> getDefinedMonetaryItems()
                                                        throws ForeignExchangeException
Returns all defined monetary item types.

Returns:
the Set containing all supported monetary item types
Throws:
ForeignExchangeException - occurs if any error accessing the Set

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011