Interface CurrencyBook

All Known Implementing Classes:
CurrencyBookNotifier, CurrencyMapBook, PropertyCurrencyBook

public interface CurrencyBook
This Java interface specifies a currency book that keeps the currencies available in your client application; The currency list can be updated by the instances of the connected SAP CC Core Server system.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    The client cannot update the list of currencies (Can return an UnsupportedOperationException).
    Returns all the current currencies that can be used in your client application.
    getCurrency(int code)
    Deprecated.
    The ISO digit code is not stored and cannot be returned.
    Returns a currency from a specified code.
    getCurrency(String iso4217code, int precision)
    Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision; If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null.
  • Method Details

    • getCurrencies

      Vector<Currency> getCurrencies()
      Returns all the current currencies that can be used in your client application.
      Returns:
      The current list of currencies that can be used in your client application
    • getCurrency

      Currency getCurrency(String code)
      Returns a currency from a specified code.
      Parameters:
      code - The code of the currency
      Returns:
      The currency for this code
    • getCurrency

      Currency getCurrency(String iso4217code, int precision)
      Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision; If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null.
      Parameters:
      iso4217code - The ISO 4217 code of the currency
      precision - The minimum precision of the currency
      Returns:
      The currency for this ISO 4217 code and precision or null
    • getCurrency

      @Deprecated Currency getCurrency(int code)
      Deprecated.
      The ISO digit code is not stored and cannot be returned. Returns null.
      Returns a currency from a given ISO 4217 code.
      Parameters:
      code - The ISO 4217 three-digit currency code
      Returns:
      The currency for this code
    • addCurrency

      @Deprecated void addCurrency(Currency currency)
      Deprecated.
      The client cannot update the list of currencies (Can return an UnsupportedOperationException).
      Adds a currency in the currency book.
      Parameters:
      currency - The currency to be added