com.ibm.commerce.common.objects
Class QuantityUnitConversionBean

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

public class QuantityUnitConversionBean
implements java.io.Serializable

This bean provides access to the QTYCONVERT table.

The following is a description of this table:

Each row of this table represents a rule that can be used to convert a quantity amount from one QuantityUnit (unit of measurement) to another QuantityUnit.

See Also:
Serialized Form

Constructor Summary
QuantityUnitConversionBean()
           
 
Method Summary
 java.math.BigDecimal getConversionFactor()
          This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
 java.lang.String getFromQuantityUnitId()
          This method provides access to the QTYCONVERT.QTYUNIT_ID_FROM column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getMultiplyOrDivide()
          This method provides access to the QTYCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
 java.lang.Integer getQuantityUnitConversionId()
          This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getToQuantityUnitId()
          This method provides access to the QTYCONVERT.QTYUNIT_ID_TO column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getUpdatable()
          This method provides access to the QTYCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.
 void setConversionFactor(java.math.BigDecimal aConversionFactor)
          This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
 void setFromQuantityUnitId(java.lang.String aFromQuantityUnitId)
          This method provides access to the QTYCONVERT.QTYUNIT_ID_FROM column of DB2 type CHAR(16) NOT NULL.
 void setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)
          This method provides access to the QTYCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
 void setQuantityUnitConversionId(java.lang.Integer aQuantityUnitConversionId)
          This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
 void setToQuantityUnitId(java.lang.String aToQuantityUnitId)
          This method provides access to the QTYCONVERT.QTYUNIT_ID_TO column of DB2 type CHAR(16) NOT NULL.
 void setUpdatable(java.lang.String aUpdatable)
          This method provides access to the QTYCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.
 

Constructor Detail

QuantityUnitConversionBean

public QuantityUnitConversionBean()
Method Detail

getConversionFactor

public java.math.BigDecimal getConversionFactor()

This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.

The following is a description of this column:

The conversion factor. Implicit conversion rules are derived from explicit rules by combining conversion factors.

Returns:
java.math.BigDecimal

getFromQuantityUnitId

public java.lang.String getFromQuantityUnitId()

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

The following is a description of this column:

The QuantityUnit converted from.

Returns:
java.lang.String

getMultiplyOrDivide

public java.lang.String getMultiplyOrDivide()

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

The following is a description of this column:

Indicates how to convert from QTYUNIT_ID_FROM to QTYUNIT_ID_TO. Valid values: M (multiply by FACTOR), D (divide by FACTOR). Conversion from QTYUNIT_ID_TO to QTYUNIT_ID_FROM using the inverse operation is implicitly defined.

Returns:
java.lang.String

getQuantityUnitConversionId

public java.lang.Integer getQuantityUnitConversionId()

This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Integer

getToQuantityUnitId

public java.lang.String getToQuantityUnitId()

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

The following is a description of this column:

The QuantityUnit converted to.

Returns:
java.lang.String

getUpdatable

public java.lang.String getUpdatable()

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

The following is a description of this column:

A flag intended to be used by a user interface that manages QuantityUnit conversion rules.
N = the conversion factor is irrevocable. It should never be changed.
Y = the conversion factor can be changed.

Returns:
java.lang.String

setConversionFactor

public void setConversionFactor(java.math.BigDecimal aConversionFactor)

This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.

The following is a description of this column:

The conversion factor. Implicit conversion rules are derived from explicit rules by combining conversion factors.

Parameters:
aConversionFactor - java.math.BigDecimal
Returns:
void

setFromQuantityUnitId

public void setFromQuantityUnitId(java.lang.String aFromQuantityUnitId)

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

The following is a description of this column:

The QuantityUnit converted from.

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

setMultiplyOrDivide

public void setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)

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

The following is a description of this column:

Indicates how to convert from QTYUNIT_ID_FROM to QTYUNIT_ID_TO. Valid values: M (multiply by FACTOR), D (divide by FACTOR). Conversion from QTYUNIT_ID_TO to QTYUNIT_ID_FROM using the inverse operation is implicitly defined.

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

setQuantityUnitConversionId

public void setQuantityUnitConversionId(java.lang.Integer aQuantityUnitConversionId)

This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

setToQuantityUnitId

public void setToQuantityUnitId(java.lang.String aToQuantityUnitId)

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

The following is a description of this column:

The QuantityUnit converted to.

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

setUpdatable

public void setUpdatable(java.lang.String aUpdatable)

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

The following is a description of this column:

A flag intended to be used by a user interface that manages QuantityUnit conversion rules.
N = the conversion factor is irrevocable. It should never be changed.
Y = the conversion factor can be changed.

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