public class BEIDData extends Object implements Serializable, Comparable
Modifier and Type | Field and Description |
---|---|
protected Integer |
m_ResourceID |
Constructor and Description |
---|
BEIDData(Integer resourceID,
String stringCode,
String description,
String symbol,
Integer status,
String statusAsString,
Integer rounding,
Integer roundingMode,
Integer javaRoundingMode,
BigDecimal toleranceAmountMin,
BigDecimal toleranceAmountMax,
BigDecimal tolerancePercent)
Constructs an object with information for a BEID resource contained
in the Portal BEID table.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
String |
getDescription()
Return the affiliate resource description (Free domestic minutes,
US Dollar, Euro, etc.)
|
Integer |
getJavaRoundingMode()
Return the Java rounding mode that corresponds to resource rounding
mode.
|
Integer |
getResourceID()
Return the affiliate currency ID (CURRENCY_USD, CURRENCY_EUR, etc.)
|
Integer |
getRounding()
Return the rounding (number of places to the right of the decimal
point) for the resource.
|
Integer |
getRoundingMode()
Return the rounding mode for the resource.
|
Integer |
getStatus()
Return the "status" (not set, active, inactive) for the resource.
|
String |
getStatusAsString()
Return the "status" (not set, active, inactive) for the resource
as a string.
|
String |
getStringCode()
Return the "string code" for the resource.
|
String |
getSymbol()
Return the affiliate symbol (Hrs, Min, $, FF, etc.) for the
resource.
|
BigDecimal |
getToleranceAmountMax()
Return the tolerance amount maximum for the resource.
|
BigDecimal |
getToleranceAmountMin()
Return the tolerance amount minimum for the resource.
|
BigDecimal |
getTolerancePercent()
Return the tolerance amount percent for the resource.
|
static boolean |
isBEIDCurrencyResource(int resourceID)
Is the resource ID a valid BEID currency resource ID?
|
boolean |
isCurrencyResource()
Is this BEID entry a currency resource?
|
String |
toString()
The default is to display the "description" of the BEID resource.
|
protected Integer m_ResourceID
public BEIDData(Integer resourceID, String stringCode, String description, String symbol, Integer status, String statusAsString, Integer rounding, Integer roundingMode, Integer javaRoundingMode, BigDecimal toleranceAmountMin, BigDecimal toleranceAmountMax, BigDecimal tolerancePercent)
resourceID
- The ID of the BEID resource.stringCode
- The low level resource code (i.e. USD)description
- The description of the resource (i.e. Euro)symbol
- The symbol for the resource (i.e. $)status
- The beid resource status.statusAsString
- The string description of beid resource status.rounding
- The number of places after the decimal point.roundingMode
- The BEID rounding mode (up, down, nearest)javaRoundingMode
- The Java rounding mode (up, down, nearest)toleranceAmountMin
- The minimum tolerance for billing operations.toleranceAmountMax
- The maximum tolerance for billing operations.tolerancePercent
- The tolerance percent for billing operations.public static boolean isBEIDCurrencyResource(int resourceID)
currencyID
- The Portal BEID resource ID to evaluate.public boolean isCurrencyResource()
public Integer getResourceID()
public String getStringCode()
public String getDescription()
public String getSymbol()
public Integer getStatus()
public String getStatusAsString()
public Integer getRounding()
public Integer getRoundingMode()
public Integer getJavaRoundingMode()
public BigDecimal getToleranceAmountMin()
public BigDecimal getToleranceAmountMax()
public BigDecimal getTolerancePercent()
public String toString()
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2003, 2023, Oracle and/or its affiliates.