com.ibm.commerce.common.objects
Class QuantityUnitFormatBean

com.ibm.commerce.common.objects.QuantityUnitFormatBean
All Implemented Interfaces:
java.io.Serializable

public class QuantityUnitFormatBean
implements java.io.Serializable

This bean provides access to the QTYFORMAT table.

The following is a description of this table:

Each row of this table represents the Language-independent part of a QuantityUnit formatting rule. If a Store has no formatting rule for a particular QuantityUnit, it uses the formatting rule of its StoreGroup.

See Also:
Serialized Form

Constructor Summary
QuantityUnitFormatBean()
           
 
Method Summary
 java.lang.Integer getDecimalPlace()
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getNumberUsgId()
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the QTYFORMAT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getRoundingMethod()
          This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.
 java.lang.Integer getRoundingMultiple()
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntityId()
          This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setDecimalPlace(java.lang.Integer aDecimalPlace)
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 void setNumberUsgId(java.lang.Integer aNumberUsgId)
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 void setRoundingMethod(java.lang.String aRoundingMethod)
          This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.
 void setRoundingMultiple(java.lang.Integer aRoundingMultiple)
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.
 

Constructor Detail

QuantityUnitFormatBean

public QuantityUnitFormatBean()
Method Detail

getDecimalPlace

public java.lang.Integer getDecimalPlace()

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

Returns:
java.lang.Integer

getNumberUsgId

public java.lang.Integer getNumberUsgId()

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

Returns:
java.lang.Integer

getQuantityUnitId

public java.lang.String getQuantityUnitId()

This method provides access to the QTYFORMAT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

The QuantityUnit.

Returns:
java.lang.String

getRoundingMethod

public java.lang.String getRoundingMethod()

This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

How to round to a multiple of ROUNDINGMULTIPLE. Valid values: R (round normally - up or down - to the nearest multiple), T (truncate - round down for positive amounts, round up for negative amounts).

Returns:
java.lang.String

getRoundingMultiple

public java.lang.Integer getRoundingMultiple()

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

Returns:
java.lang.Integer

getStoreEntityId

public java.lang.Integer getStoreEntityId()

This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity of which this formatting rule is a part.

Returns:
java.lang.Integer

setDecimalPlace

public void setDecimalPlace(java.lang.Integer aDecimalPlace)

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

Parameters:
aDecimalPlace - java.lang.Integer
Returns:
void

setNumberUsgId

public void setNumberUsgId(java.lang.Integer aNumberUsgId)

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

Parameters:
aNumberUsgId - java.lang.Integer
Returns:
void

setRoundingMethod

public void setRoundingMethod(java.lang.String aRoundingMethod)

This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

How to round to a multiple of ROUNDINGMULTIPLE. Valid values: R (round normally - up or down - to the nearest multiple), T (truncate - round down for positive amounts, round up for negative amounts).

Parameters:
aRoundingMethod - java.lang.String
Returns:
void

setRoundingMultiple

public void setRoundingMultiple(java.lang.Integer aRoundingMultiple)

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

Parameters:
aRoundingMultiple - java.lang.Integer
Returns:
void