com.ibm.commerce.fulfillment.objects
Class CalculationRuleBean

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

public class CalculationRuleBean
implements java.io.Serializable

This bean provides access to the CALRULE table.

The following is a description of this table:

Each row in this table represents a CalculationRule, defining how to arrive at a monetary amount for a set of OrderItems.

See Also:
Serialized Form

Constructor Summary
CalculationRuleBean()
           
 
Method Summary
 java.lang.Integer getCalculationCodeId()
          This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationMethodId()
          This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRuleId()
          This method provides access to the CALRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRuleQualifyMethodId()
          This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCombination()
          This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.
 java.sql.Timestamp getEndDate()
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 java.math.BigDecimal getField1()
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getField2()
          This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254) NULL.
 java.lang.Integer getFlags()
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getIdentifier()
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 java.lang.Double getSequence()
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.sql.Timestamp getStartDate()
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 java.lang.Integer getTaxCategoryId()
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationMethodId(java.lang.Integer aCalculationMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationRuleQualifyMethodId(java.lang.Integer aCalculationRuleQualifyMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
 void setCombination(java.lang.Integer aCombination)
          This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.
 void setEndDate(java.sql.Timestamp aEndDate)
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 void setField1(java.math.BigDecimal aField1)
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 void setField2(java.lang.String aField2)
          This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254) NULL.
 void setFlags(java.lang.Integer aFlags)
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 void setIdentifier(java.lang.Integer aIdentifier)
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 void setSequence(java.lang.Double aSequence)
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setStartDate(java.sql.Timestamp aStartDate)
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 void setTaxCategoryId(java.lang.Integer aTaxCategoryId)
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.
 

Constructor Detail

CalculationRuleBean

public CalculationRuleBean()
Method Detail

getCalculationCodeId

public java.lang.Integer getCalculationCodeId()

This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode of which this CalculationRule is a part.

Returns:
java.lang.Integer

getCalculationMethodId

public java.lang.Integer getCalculationMethodId()

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

The following is a description of this column:

The CalculationRuleCalculateMethod that calculates a monetary result for a set of OrderItems.

Returns:
java.lang.Integer

getCalculationRuleId

public java.lang.Integer getCalculationRuleId()

This method provides access to the CALRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique identifier.

Returns:
java.lang.Integer

getCalculationRuleQualifyMethodId

public java.lang.Integer getCalculationRuleQualifyMethodId()

This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleQualifyMethod that determines which of a set of OrderItems should be sent to the CalculationRuleCalculateMethod.

Returns:
java.lang.Integer

getCombination

public java.lang.Integer getCombination()

This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

Returns:
java.lang.Integer

getEndDate

public java.sql.Timestamp getEndDate()

This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this CalculationRule stops being effective.

Returns:
java.sql.Timestamp

getField1

public java.math.BigDecimal getField1()

This method provides access to the CALRULE.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.lang.String getField2()

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

The following is a description of this column:

Customizable.

Returns:
java.lang.String

getFlags

public java.lang.Integer getFlags()

This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

Returns:
java.lang.Integer

getIdentifier

public java.lang.Integer getIdentifier()

This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.

IBM internal use only.

Returns:
java.lang.Integer

getSequence

public java.lang.Double getSequence()

This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

CalculationRules for the same CalculationCode are processed in sequence from lowest to highest value.

Returns:
java.lang.Double

getStartDate

public java.sql.Timestamp getStartDate()

This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this CalculationRule begins being effective.

Returns:
java.sql.Timestamp

getTaxCategoryId

public java.lang.Integer getTaxCategoryId()

This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

For TaxType CalculationUsages, the TaxCategory for which this CalculationRule is effective.

Returns:
java.lang.Integer

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode of which this CalculationRule is a part.

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

setCalculationMethodId

public void setCalculationMethodId(java.lang.Integer aCalculationMethodId)

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

The following is a description of this column:

The CalculationRuleCalculateMethod that calculates a monetary result for a set of OrderItems.

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

setCalculationRuleQualifyMethodId

public void setCalculationRuleQualifyMethodId(java.lang.Integer aCalculationRuleQualifyMethodId)

This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleQualifyMethod that determines which of a set of OrderItems should be sent to the CalculationRuleCalculateMethod.

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

setCombination

public void setCombination(java.lang.Integer aCombination)

This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

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

setEndDate

public void setEndDate(java.sql.Timestamp aEndDate)

This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this CalculationRule stops being effective.

Parameters:
aEndDate - java.sql.Timestamp
Returns:
void

setField1

public void setField1(java.math.BigDecimal aField1)

This method provides access to the CALRULE.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.lang.String aField2)

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

The following is a description of this column:

Customizable.

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

setFlags

public void setFlags(java.lang.Integer aFlags)

This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

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

setIdentifier

public void setIdentifier(java.lang.Integer aIdentifier)

This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.

IBM internal use only.

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

setSequence

public void setSequence(java.lang.Double aSequence)

This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

CalculationRules for the same CalculationCode are processed in sequence from lowest to highest value.

Parameters:
aSequence - java.lang.Double
Returns:
void

setStartDate

public void setStartDate(java.sql.Timestamp aStartDate)

This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this CalculationRule begins being effective.

Parameters:
aStartDate - java.sql.Timestamp
Returns:
void

setTaxCategoryId

public void setTaxCategoryId(java.lang.Integer aTaxCategoryId)

This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

For TaxType CalculationUsages, the TaxCategory for which this CalculationRule is effective.

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