public interface AdminCurrencyMgrIf
| Modifier and Type | Method and Description |
|---|---|
int |
deleteCurrency(int currId)
Delete a Currency
|
boolean |
doesCurrencyExistForId(int currId)
Checks to see whether a currency already exists with this id
|
java.lang.String |
formatPrice(java.math.BigDecimal number)
Calls formatPrice with the default currency
|
java.lang.String |
formatPrice(java.math.BigDecimal number,
java.lang.String currencyCode)
Used to create a string in order to visualize a price.
|
AdminCurrencySearchResult |
getCurrencies(AdminCurrencySearch search)
This returns an array of currencies for all of the currencies in the currency table.
|
AdminCurrency |
getCurrency(int currencyId)
Returns the currency referenced by the currencyId.
|
AdminCurrency |
getCurrency(java.lang.String currencyCode)
Returns the currency referenced by the currencyCode.
|
AdminCurrency |
getDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY.
|
java.text.DecimalFormat |
getDefaultCurrencyFormatter()
Gets the formatter for the default currency
|
int |
insertCurrency(AdminCurrency curr)
Insert a Currency
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
void |
setDefaultCurrency(java.lang.String currCode)
Sets the default currency.
|
int |
updateCurrency(AdminCurrency curr)
Update a Currency
|
void setDefaultCurrency(java.lang.String currCode)
throws java.lang.Exception
currCode - the currCodejava.lang.Exception - an unexpected exceptionAdminCurrency getDefaultCurrency() throws java.lang.Exception
java.lang.Exception - an unexpected exceptionjava.text.DecimalFormat getDefaultCurrencyFormatter()
throws KKAdminException
KKAdminException - an unexpected exception in the KonaKart Admin engineAdminCurrency getCurrency(java.lang.String currencyCode) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
currencyCode - the currencyCodeKKAdminException - an unexpected exception in the KonaKart Admin engineorg.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)AdminCurrency getCurrency(int currencyId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
currencyId - the currencyIdorg.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)AdminCurrencySearchResult getCurrencies(AdminCurrencySearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search - the searchorg.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)
throws java.lang.Exception
number - the numberjava.lang.Exception - an unexpected exceptionjava.lang.String formatPrice(java.math.BigDecimal number,
java.lang.String currencyCode)
throws java.lang.Exception
number - the numbercurrencyCode - the currencyCodejava.lang.Exception - an unexpected exceptionint deleteCurrency(int currId)
throws KKAdminException
currId - A currency idKKAdminException - an unexpected exception in the KonaKart Admin engineint insertCurrency(AdminCurrency curr) throws KKAdminException
curr - A currency objectKKAdminException - an unexpected exception in the KonaKart Admin engineint updateCurrency(AdminCurrency curr) throws java.lang.Exception
curr - A currency objectjava.lang.Exception - an unexpected exceptionboolean doesCurrencyExistForId(int currId)
throws org.apache.torque.TorqueException
currId - the currIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)void refreshConfigs()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.