|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.bc.fx.impl.RatesRepositoryDB2Impl
public class RatesRepositoryDB2Impl
This class accesses the DB2 table containing the Foreign Exchange conversion rates.
Field Summary | |
---|---|
static java.lang.String |
BUYRATE
|
static java.lang.String |
FROMCURRENCY
|
static java.lang.String |
FROMMONETARYITEM
|
static java.lang.String |
SELLRATE
|
static java.lang.String |
TOCURRENCY
|
static java.lang.String |
TOMONETARYITEM
|
Constructor Summary | |
---|---|
RatesRepositoryDB2Impl()
|
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getAllSupportedCurrencies()
Returns all supported currency codes in a Set. |
java.lang.String |
getDbSchema()
Returns the database schema name of the rates table. |
java.util.Set<java.lang.String> |
getDefinedMonetaryItems()
Returns all defined monetary item types. |
java.lang.String |
getJndiName()
|
java.math.BigDecimal |
getRate(RatesQueryRequest request,
boolean isBuy)
Returns the foreign exchange rate according to the given parameters. |
void |
setDbSchema(java.lang.String dbSchema)
Sets the database schema name of the rates table. |
void |
setJndiName(java.lang.String jndiName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FROMCURRENCY
public static final java.lang.String TOCURRENCY
public static final java.lang.String FROMMONETARYITEM
public static final java.lang.String TOMONETARYITEM
public static final java.lang.String BUYRATE
public static final java.lang.String SELLRATE
Constructor Detail |
---|
public RatesRepositoryDB2Impl()
Method Detail |
---|
public java.lang.String getDbSchema()
public void setDbSchema(java.lang.String dbSchema)
dbSchema
- the schema name of the rates tablepublic java.util.Set<java.lang.String> getAllSupportedCurrencies() throws ForeignExchangeException
RatesRepository
getAllSupportedCurrencies
in interface RatesRepository
ForeignExchangeException
- occurs if any error accessing the Setpublic java.util.Set<java.lang.String> getDefinedMonetaryItems() throws ForeignExchangeException
RatesRepository
getDefinedMonetaryItems
in interface RatesRepository
ForeignExchangeException
- occurs if any error accessing the Setpublic java.math.BigDecimal getRate(RatesQueryRequest request, boolean isBuy) throws ForeignExchangeException
RatesRepository
getRate
in interface RatesRepository
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 ratepublic java.lang.String getJndiName()
public void setJndiName(java.lang.String jndiName)
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |