|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.math.BigDecimal getRate(RatesQueryRequest request, boolean isBuy) throws ForeignExchangeException
request
- the RatesQueryRequest identifying the request dataisBuy
- true if the requested rate is a buy rate, otherwise it should
be false
ForeignExchangeException
- occurs if any error accessing the ratejava.util.Set<java.lang.String> getAllSupportedCurrencies() throws ForeignExchangeException
ForeignExchangeException
- occurs if any error accessing the Setjava.util.Set<java.lang.String> getDefinedMonetaryItems() throws ForeignExchangeException
ForeignExchangeException
- occurs if any error accessing the Set
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |