com.ibm.commerce.fulfillment.objects
Class CalculationRangeBean

com.ibm.commerce.fulfillment.objects.CalculationRangeBean
All Implemented Interfaces:
java.io.Serializable

public class CalculationRangeBean
implements java.io.Serializable

This bean provides access to the CALRANGE table.

The following is a description of this table:

Each row of this table represents a CalculationRange, which conceptually represents a row in a CalculationScale.

See Also:
Serialized Form

Constructor Summary
CalculationRangeBean()
           
 
Method Summary
 java.lang.Integer getCalculationMethodId()
          This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRangeId()
          This method provides access to the CALRANGE.CALRANGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationScaleId()
          This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getCumulative()
          This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL.
 java.math.BigDecimal getField1()
          This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.math.BigDecimal getField2()
          This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getField3()
          This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254) NULL.
 java.lang.Integer getMarkForDelete()
          This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.math.BigDecimal getRangeStart()
          This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20,5) NULL.
 void setCalculationMethodId(java.lang.Integer aCalculationMethodId)
          This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationScaleId(java.lang.Integer aCalculationScaleId)
          This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER NULL.
 void setCumulative(java.lang.Integer aCumulative)
          This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL.
 void setField1(java.math.BigDecimal aField1)
          This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 void setField2(java.math.BigDecimal aField2)
          This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20,5) NULL.
 void setField3(java.lang.String aField3)
          This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254) NULL.
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setRangeStart(java.math.BigDecimal aRangeStart)
          This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20,5) NULL.
 

Constructor Detail

CalculationRangeBean

public CalculationRangeBean()
Method Detail

getCalculationMethodId

public java.lang.Integer getCalculationMethodId()

This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRangeMethod that determines a monetary amount from the CalculationRangeLookupResult. For example, FixedAmountCalculationRangeCmd, PerUnitAmountCalculationRangeCmd, or PercentageCalculationRangeCmd.

Returns:
java.lang.Integer

getCalculationRangeId

public java.lang.Integer getCalculationRangeId()

This method provides access to the CALRANGE.CALRANGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

Returns:
java.lang.Integer

getCalculationScaleId

public java.lang.Integer getCalculationScaleId()

This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The CalculationScale of which this CalculationRange is a part.

Returns:
java.lang.Integer

getCumulative

public java.lang.Integer getCumulative()

This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Valid values:
0 = only the matching CalculationRange with the highest RANGESTART value is used.
1 = all matching CalculationRanges are used. The calculated monetary amounts are summed to arrive at the final result.

Returns:
java.lang.Integer

getField1

public java.math.BigDecimal getField1()

This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal

getField2

public java.math.BigDecimal getField2()

This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal

getField3

public java.lang.String getField3()

This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

Returns:
java.lang.String

getMarkForDelete

public java.lang.Integer getMarkForDelete()

This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Returns:
java.lang.Integer

getRangeStart

public java.math.BigDecimal getRangeStart()

This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

If a lookup number is greater than or equal to RANGESTART, or if RANGESTART is NULL, this row matches the lookup number.

Returns:
java.math.BigDecimal

setCalculationMethodId

public void setCalculationMethodId(java.lang.Integer aCalculationMethodId)

This method provides access to the CALRANGE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRangeMethod that determines a monetary amount from the CalculationRangeLookupResult. For example, FixedAmountCalculationRangeCmd, PerUnitAmountCalculationRangeCmd, or PercentageCalculationRangeCmd.

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

setCalculationScaleId

public void setCalculationScaleId(java.lang.Integer aCalculationScaleId)

This method provides access to the CALRANGE.CALSCALE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The CalculationScale of which this CalculationRange is a part.

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

setCumulative

public void setCumulative(java.lang.Integer aCumulative)

This method provides access to the CALRANGE.CUMULATIVE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Valid values:
0 = only the matching CalculationRange with the highest RANGESTART value is used.
1 = all matching CalculationRanges are used. The calculated monetary amounts are summed to arrive at the final result.

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

setField1

public void setField1(java.math.BigDecimal aField1)

This method provides access to the CALRANGE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Customizable.

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

setField2

public void setField2(java.math.BigDecimal aField2)

This method provides access to the CALRANGE.FIELD2 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Customizable.

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

setField3

public void setField3(java.lang.String aField3)

This method provides access to the CALRANGE.FIELD3 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Customizable.

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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

This method provides access to the CALRANGE.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setRangeStart

public void setRangeStart(java.math.BigDecimal aRangeStart)

This method provides access to the CALRANGE.RANGESTART column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

If a lookup number is greater than or equal to RANGESTART, or if RANGESTART is NULL, this row matches the lookup number.

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