com.bmc.cmdb.api
Class CMDBCurrencyLimit

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBAttributeLimit
      extended by com.bmc.cmdb.api.CMDBCurrencyLimit

public class CMDBCurrencyLimit
extends CMDBAttributeLimit

The CMDBCurrencyLimits class defines the limit of a currency attribute.


Field Summary
 
Fields inherited from class com.bmc.cmdb.api.CMDBAttributeLimit
CMDB_ATTR_DATA_TYPE_ATTACH, CMDB_ATTR_DATA_TYPE_ATTACH_POOL, CMDB_ATTR_DATA_TYPE_CHAR, CMDB_ATTR_DATA_TYPE_CURRENCY, CMDB_ATTR_DATA_TYPE_DATE, CMDB_ATTR_DATA_TYPE_DECIMAL, CMDB_ATTR_DATA_TYPE_DIARY, CMDB_ATTR_DATA_TYPE_ENUM, CMDB_ATTR_DATA_TYPE_INTEGER, CMDB_ATTR_DATA_TYPE_NULL, CMDB_ATTR_DATA_TYPE_REAL, CMDB_ATTR_DATA_TYPE_TIME, CMDB_ATTR_DATA_TYPE_TIME_OF_DAY
 
Constructor Summary
CMDBCurrencyLimit()
          Creates a default currency attribute limit range of -99999999999999999999999999.99 - 99999999999999999999999999.99 with a precision of 2.
CMDBCurrencyLimit(java.math.BigDecimal low, java.math.BigDecimal high, int precision, CurrencyDetail[] functionalType, CurrencyDetail[] allowableType)
          Creates a currency limit with the specified limit information.
 
Method Summary
 CurrencyDetail[] getAllowableType()
          Gets the allowable type of the currency limit.
 CurrencyDetail[] getFunctionalType()
          Gets the functional type of the currency limit.
 java.math.BigDecimal getHighRange()
          Gets the high range of the decimal attribute limit.
 java.math.BigDecimal getLowRange()
          Gets the low range of the currency attribute limit.
 int getPrecision()
          Gets the precision of the decimal attribute limit.
 void setAllowableType(CurrencyDetail[] allowableType)
          Sets the allowable type of the currency attribute limit.
 void setFunctionalType(CurrencyDetail[] functionalType)
          Sets the functional type of the currency attribute limit.
 void setHighRange(java.math.BigDecimal high)
          Sets the high range of the decimal attribute limit.
 void setLowRange(java.math.BigDecimal low)
          Sets the low range of the decimal attribute limit.
 void setPrecision(int precision)
          Sets the precision of the decimal attribute limit.
 
Methods inherited from class com.bmc.cmdb.api.CMDBAttributeLimit
getDataType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMDBCurrencyLimit

public CMDBCurrencyLimit()
Creates a default currency attribute limit range of -99999999999999999999999999.99 - 99999999999999999999999999.99 with a precision of 2.


CMDBCurrencyLimit

public CMDBCurrencyLimit(java.math.BigDecimal low,
                         java.math.BigDecimal high,
                         int precision,
                         CurrencyDetail[] functionalType,
                         CurrencyDetail[] allowableType)
Creates a currency limit with the specified limit information. Functional currency is an alternate currency type to which the value in a currency field is converted. Values for functional currencies are calculated based on currency conversion ratios maintained in a form on the AR System server. Allowable currency is a currency type that appears in the currency field menu. Users can only use an allowable currency type when entering currency values.

Parameters:
low - the low range of the currency limit
high - the high range of the currency limit
precision - the precision of the currency limit
functionalType - the functional type of the currency limit as defined by AR System
allowableType - the allowable type of the currency limit as defined by AR System
Method Detail

getLowRange

public java.math.BigDecimal getLowRange()
Gets the low range of the currency attribute limit.

Returns:
returns the low range of the currency attribute limit

getHighRange

public java.math.BigDecimal getHighRange()
Gets the high range of the decimal attribute limit.

Returns:
returns the high range of the currency attribute limit

getPrecision

public int getPrecision()
Gets the precision of the decimal attribute limit.

Returns:
returns the precision of the decimal attribute limit

getAllowableType

public CurrencyDetail[] getAllowableType()
Gets the allowable type of the currency limit.

Returns:
returns the allowable type of the currency limit

getFunctionalType

public CurrencyDetail[] getFunctionalType()
Gets the functional type of the currency limit.

Returns:
returns the functional type of the currency limit

setLowRange

public void setLowRange(java.math.BigDecimal low)
Sets the low range of the decimal attribute limit.

Parameters:
low - the low range of the attribute

setHighRange

public void setHighRange(java.math.BigDecimal high)
Sets the high range of the decimal attribute limit.

Parameters:
high - the high range of the attribute

setPrecision

public void setPrecision(int precision)
Sets the precision of the decimal attribute limit.

Parameters:
precision - the precision of the attribute

setAllowableType

public void setAllowableType(CurrencyDetail[] allowableType)
Sets the allowable type of the currency attribute limit.

Parameters:
allowableType - the allowable type of the currency limit

setFunctionalType

public void setFunctionalType(CurrencyDetail[] functionalType)
Sets the functional type of the currency attribute limit.

Parameters:
functionalType - the functional type of the currency limit


(c) Copyright 2004-2007 BMC Software, Inc.