public interface CurrencyMgrIf
Modifier and Type | Method and Description |
---|---|
Currency |
fetchDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY.
|
java.lang.String |
formatPrice(java.math.BigDecimal number,
java.lang.String currencyCode)
Used to create a string in order to visualise a price.
|
Currency[] |
getCurrencies()
This returns an array of currencies for all of the currencies in the currency table.
|
Currency |
getCurrency(java.lang.String currencyCode)
Returns the currency referenced by the currencyCode.
|
Currency |
getDefaultCurrency()
Returns the default currency from the cache.
|
java.text.DecimalFormat |
getDefaultCurrencyFormatter()
Gets the formatter for the default currency
|
int |
getDefaultCurrencyScale()
A utility method to return the scale of the default currency used in price calculations
|
void |
refreshConfigs()
Refresh the configuration of the currency manager
|
Currency getDefaultCurrency() throws org.apache.torque.TorqueException, com.konakart.app.KKException, com.workingdogs.village.DataSetException
com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)Currency fetchDefaultCurrency() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionjava.text.DecimalFormat getDefaultCurrencyFormatter() throws org.apache.torque.TorqueException, com.konakart.app.KKException, com.workingdogs.village.DataSetException
com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)Currency getCurrency(java.lang.String currencyCode) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
currencyCode
- the currencyCodecom.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)Currency[] getCurrencies() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)java.lang.String formatPrice(java.math.BigDecimal number, java.lang.String currencyCode) throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
number
- the numbercurrencyCode
- the currencyCodecom.konakart.app.KKException
- an unexpected KKException exceptioncom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)void refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionint getDefaultCurrencyScale() throws com.konakart.app.KKException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
com.konakart.app.KKException
- an unexpected KKException exceptionorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)Copyright © 2018 DS Data Systems UK Ltd.