public interface ICurrencyField extends IField
Represents a currency field. Only the local currency, local amount and exchange rate values can be set. Base amount and base currency (code) are read-only.
Null currency valuesIf you wish to set the value of this currency field to be "null" you can set the local currency and local amount values to null using the relevant setters, this results in the currency being treated as null by the system.
Note you must always call setLocalAmount(Double)
before calling
setLocalCurrency(ICurrency)
if setting the values to null.
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getBaseAmount()
Returns the currency base amount.
|
ICurrency |
getBaseCurrency()
Returns the base currency.
|
java.lang.Double |
getExchangeRate()
Returns the exchange rate.
|
java.lang.Double |
getLocalAmount()
Returns the local amount.
|
ICurrency |
getLocalCurrency()
Returns the local currency.
|
void |
setExchangeRate(java.lang.Double exchangeRate)
Sets the exchange rate.
|
void |
setLocalAmount(java.lang.Double localAmount)
Sets the local amount.
|
void |
setLocalCurrency(ICurrency currency)
Sets the local currency.
|
canRead, canWrite, getCalcLogs, getDataType, getFieldDefinition, getId, getName, hasCalcInQueue, hasChanged, isEncrypted, isNull
java.lang.Double getBaseAmount()
java.lang.Double getExchangeRate()
ICurrency getBaseCurrency()
java.lang.Double getLocalAmount()
ICurrency getLocalCurrency()
void setLocalAmount(java.lang.Double localAmount)
setLocalCurrency(ICurrency)
if desire to set both
local amount and local currency to null the local amount needs to be set
to null first.localAmount
- the local amountvoid setLocalCurrency(ICurrency currency)
currency
- the local currencyvoid setExchangeRate(java.lang.Double exchangeRate)
exchangeRate
- exchange rate
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.