com.sage.accpac.sm
Interface CurrencyRate

All Known Implementing Classes:
CurrencyRateImpl

public interface CurrencyRate

Represents a currency exchange rate
An object of this class can be obtained from DBLink object's getCurrencyRate(...), getCurrencyRateComposite(...) and getCurrencyRateFloating(...) methods.


Nested Class Summary
static class CurrencyRate.Operator
          Defines the operator that should be used when performing currency exchange calculations
 
Method Summary
 Currency.DateMatch getDateMatch()
          Gets the date matching method used to determine the exchange rate
 java.lang.String getHomeCurrency()
          Gets the code of the home currency
 java.math.BigDecimal getRate()
          Gets the currency exchange rate
 java.util.Date getRateDate()
          Gets the effective date of the rate
 CurrencyRate.Operator getRateOperator()
          Gets the operator that should be used to on the exchange rate and currency amount when performing exchange calculations
 java.lang.String getRateType()
          Gets the code of the rate type
 java.lang.String getSourceCurrency()
          Gets the code of the source currency
 java.math.BigDecimal getSpread()
          Gets the allowed difference between the given rate and any user-entered rate
 

Method Detail

getDateMatch

Currency.DateMatch getDateMatch()
Gets the date matching method used to determine the exchange rate

Returns:
the date matching method used to determine the exchange rate

getHomeCurrency

java.lang.String getHomeCurrency()
Gets the code of the home currency

Returns:
the code of the home currency

getRate

java.math.BigDecimal getRate()
Gets the currency exchange rate

Returns:
the currency exchange rate

getRateDate

java.util.Date getRateDate()
Gets the effective date of the rate

Returns:
the effective date of the rate

getRateOperator

CurrencyRate.Operator getRateOperator()
Gets the operator that should be used to on the exchange rate and currency amount when performing exchange calculations

Returns:
the operator to use

getRateType

java.lang.String getRateType()
Gets the code of the rate type

Returns:
the code of the rate type

getSourceCurrency

java.lang.String getSourceCurrency()
Gets the code of the source currency

Returns:
the code of the source currency

getSpread

java.math.BigDecimal getSpread()
Gets the allowed difference between the given rate and any user-entered rate

Returns:
the spread permitted


Copyright © 2011 Sage Software, Inc. All rights reserved.