public class BEIDManager extends InfranetCachedData
InfranetCachedData.InstanceBuilder
Modifier and Type | Field and Description |
---|---|
static String |
PIN_STR_BEID_POID_TYPE
String constants for the various configuration tables.
|
static String |
PIN_STR_EMU_CURRENCY_POID_TYPE |
static String |
PIN_STR_SEARCH_POID_TYPE |
m_Connection
Modifier | Constructor and Description |
---|---|
protected |
BEIDManager(PortalContext connection)
Construct a BEID Manager object.
|
Modifier and Type | Method and Description |
---|---|
static int |
BEIDRoundingModeToJavaRoudningMode(int beidRoundingMode)
Convert a BEID rounding mode to the appropriate Java rounding mode
using the following rules:\n\n
PortalEnums.BEID_ROUND_UP = BigDecimal.ROUND_UP\n
PortalEnums.BEID_ROUND_DOWN = BigDecimal.ROUND_DOWN\n
PortalEnums.BEID_ROUND_EVEN = BigDecimal.ROUND_HALF_EVEN\n
PortalEnums.BEID_ROUND_NEAREST = BigDecimal.ROUND_HALF_UP\n
|
BigDecimal |
convertCurrency(int srcCurrencyID,
int destCurrencyID,
Date transactionTime,
BigDecimal amount)
Convert an amount from one currency to another based on a point in
time.
|
CurrencyData |
getCurrencyData(int currencyID)
Return a CurrencyData object for the specified currency ID.
|
CurrencyData |
getCurrencyData(Integer currencyID)
Return a CurrencyData object for the specified currency ID.
|
BEIDData |
getData(int resourceID)
Return a "BEID data" object for the specified BEID resource ID.
|
BEIDData |
getData(Integer resourceID)
Return a "BEID data" object for the specified BEID resource ID.
|
String |
getDescription(int resourceID)
Convenience method to return the resource description (Free domestic
minutes, US Dollar, Euro, etc.) for the specified resource ID.
|
Enumeration |
getEMUCurrencyIDs()
Return an enumeration for all of the EMU currency IDs.
|
Integer[] |
getEMUCurrencyIDsAsArray()
Return an array for all of the EMU currency IDs.
|
static BEIDManager |
getInstance(PortalContext connection)
Get the one and only instance of this class.
|
static BEIDManager |
getInstance(PortalContext connection,
boolean rebuild)
Get the one and only instance of this class.
|
int |
getNumBEIDResources()
Return the number of BEID resources supported by Portal.
|
int |
getNumEMUCurrencies()
Return the number EMU currencies.
|
int |
getNumSupportedCurrencies()
Return the number of currencies supported by Portal.
|
int |
getNumSupportedEMUCurrencies()
Return the number of EMU currencies supported by Portal.
|
Enumeration |
getSupportedBEIDDataObjects()
Return an enumeration for all of the BEID resources supported by
Portal.
|
BEIDData[] |
getSupportedBEIDDataObjectsAsArray()
Return an array of all of the BEID resources supported by Portal.
|
Enumeration |
getSupportedCurrencyDataObjects()
Return an enumeration for all of the currencies supported by Portal.
|
CurrencyData[] |
getSupportedCurrencyDataObjectsAsArray()
Return an array of all of the currencies supported by Portal.
|
Enumeration |
getSupportedEMUCurrencyDataObjects()
Return an enumeration for all of the EMU currencies supported by
Portal.
|
CurrencyData[] |
getSupportedEMUCurrencyDataObjectsAsArray()
Return an array of all of the EMU currencies supported by Portal.
|
String |
getSymbol(int resourceID)
Convenience method to return the resource symbol (Hrs, Min, $,
FF, etc.) for the specified resource ID.
|
static boolean |
isCurrency(int currencyID)
Is the currency ID a valid ISO currency ID that is recognized
by Portal.
|
boolean |
isEMUCurrency(int currencyID)
Is the specified currency ID an EMU (Euro member) currency?
|
static boolean |
isEuro(int currencyID)
Is the specified currency ID the Euro currency?
|
protected FList |
searchForConfigObject(Poid objPoid)
Call Portal to search for the specified configuration object.
|
buildKey, buildKeySimple, createDataManagers, getInstanceImpl, getInstanceImplSimple
public static final String PIN_STR_BEID_POID_TYPE
public static final String PIN_STR_SEARCH_POID_TYPE
public static final String PIN_STR_EMU_CURRENCY_POID_TYPE
protected BEIDManager(PortalContext connection)
connection
- An active connection to Portal.public static BEIDManager getInstance(PortalContext connection)
connection
- An active connection to Portal.public static BEIDManager getInstance(PortalContext connection, boolean rebuild)
connection
- An active connection to Portal.rebuild
- If this flag is TRUE then the reference to the existing
instance will be set to null and a new instance will be created. This
will cause the data to be refreshed.public int getNumBEIDResources()
public BEIDData getData(int resourceID)
resourceID
- The resource ID to lookup.public BEIDData getData(Integer resourceID)
resourceID
- The resource ID to lookup.public String getDescription(int resourceID)
resourceID
- The resource ID to lookup.public String getSymbol(int resourceID)
resourceID
- The resource ID to lookup.public Enumeration getSupportedBEIDDataObjects()
public BEIDData[] getSupportedBEIDDataObjectsAsArray()
public boolean isEMUCurrency(int currencyID)
public static boolean isEuro(int currencyID)
public static boolean isCurrency(int currencyID)
currencyID
- The currency ID to evaluate.public static int BEIDRoundingModeToJavaRoudningMode(int beidRoundingMode)
public int getNumEMUCurrencies()
public int getNumSupportedCurrencies()
public int getNumSupportedEMUCurrencies()
public CurrencyData getCurrencyData(int currencyID)
currencyID
- The currency ID to lookup.public CurrencyData getCurrencyData(Integer currencyID)
currencyID
- The currency ID to lookup.public BigDecimal convertCurrency(int srcCurrencyID, int destCurrencyID, Date transactionTime, BigDecimal amount) throws CurrencyRateException
srcCurrencyID
- The ID of the currency to convert from.destCurrencyID
- The ID of the currency to convert to.transactionTime
- The point in time that the amount was
"realized" (time of billing, time of the adjustment was made, etc.)amount
- The amount to convert.CurrencyRateException
- is thrown if the specified rate was
not found, corrupt data, etc.public Enumeration getEMUCurrencyIDs()
public Integer[] getEMUCurrencyIDsAsArray()
public Enumeration getSupportedCurrencyDataObjects()
public CurrencyData[] getSupportedCurrencyDataObjectsAsArray()
public Enumeration getSupportedEMUCurrencyDataObjects()
public CurrencyData[] getSupportedEMUCurrencyDataObjectsAsArray()
protected FList searchForConfigObject(Poid objPoid)
objPoid
- - The poid of the configuration object to read.Copyright © 2003, 2023, Oracle and/or its affiliates.