com.sage.accpac.sm
Class CurrencyRate

java.lang.Object
  extended by com.sage.accpac.sm.CurrencyRate

@Immutable
@ThreadSafe
public final class CurrencyRate
extends java.lang.Object

Represents a currency exchange rate
An object of this class can be obtained from DBLink object's getCurrencyRate(...), getCurrencyRateComposite(...) and getCurrencyRateFloating(...) methods. The object is immutable and reflects the state of the data when the method was called.

Thread safety
Immutable and therefore thread-safe

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDateMatch

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


getHomeCurrency

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


getRate

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


getRateDate

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


getRateOperator

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


getRateType

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


getSourceCurrency

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


getSpread

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



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