com.bmc.cmdb.api
Class CMDBDecimalLimit

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

public class CMDBDecimalLimit
extends CMDBAttributeLimit

The CMDBDecimalLimit class defines the limit of a Decimal 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
CMDBDecimalLimit()
          Default constructor that creates a Decimal attribute limit with a low range of -99999999999999999999999999.99, a high range of 99999999999999999999999999.99, and a precision of 2.
CMDBDecimalLimit(java.math.BigDecimal low, java.math.BigDecimal high, int precision)
          Creates a decimal limit with the specified low range, high range, and precision information.
 
Method Summary
 java.math.BigDecimal getHighRange()
          Gets the high range of the Decimal attribute limit.
 java.math.BigDecimal getLowRange()
          Gets the low range of the Decimal attribute limit.
 int getPrecision()
          Gets the precision of the Decimal 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

CMDBDecimalLimit

public CMDBDecimalLimit()
Default constructor that creates a Decimal attribute limit with a low range of -99999999999999999999999999.99, a high range of 99999999999999999999999999.99, and a precision of 2.


CMDBDecimalLimit

public CMDBDecimalLimit(java.math.BigDecimal low,
                        java.math.BigDecimal high,
                        int precision)
Creates a decimal limit with the specified low range, high range, and precision information.

Parameters:
low - the low range of the decimal limit
high - the high range of the decimal limit
precision - the precision of the decimal limit
Method Detail

getLowRange

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

Returns:
returns the low range of the Decimal attribute limit

getHighRange

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

Returns:
returns the high range of the Decimal attribute limit

getPrecision

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

Returns:
returns the precision of the Decimal attribute 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 decimal limit

setHighRange

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

Parameters:
high - the high range of the decimal limit

setPrecision

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

Parameters:
precision - the precision of the decimal limit


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