com.ibm.commerce.fulfillment.objects
Class OrderCalculationCodeBean

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

public class OrderCalculationCodeBean
implements java.io.Serializable

This bean provides access to the ORDCALCD table.

The following is a description of this table:

Each row of this table indicates to the CalculationCodeCombineMethod that a CalculationCode is directly attached to all OrderItems in an Order whose directCalculationCodeAttachment flag in ORDERITEMS.PREPAREFLAGS is 1.

See Also:
Serialized Form

Constructor Summary
OrderCalculationCodeBean()
           
 
Method Summary
 java.lang.Integer getCalculationCodeId()
          This method provides access to the ORDCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationFlags()
          This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.
 java.math.BigDecimal getCalculationParameterAmount()
          This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.Integer getCalculationParameterType()
          This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.
 java.lang.Long getOrderCalculationCodeId()
          This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderId()
          This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the ORDCALCD.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationFlags(java.lang.Integer aCalculationFlags)
          This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.
 void setCalculationParameterAmount(java.math.BigDecimal aCalculationParameterAmount)
          This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setCalculationParameterType(java.lang.Integer aCalculationParameterType)
          This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.
 void setOrderCalculationCodeId(java.lang.Long aOrderCalculationCodeId)
          This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

OrderCalculationCodeBean

public OrderCalculationCodeBean()
Method Detail

getCalculationCodeId

public java.lang.Integer getCalculationCodeId()

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

The following is a description of this column:

The CalculationCode.

Returns:
java.lang.Integer

getCalculationFlags

public java.lang.Integer getCalculationFlags()

This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contains the following bit flag value:
1 = overrideIndirectAttachments - CalculationCodes indirectly attached to the OrderItem are not effective.
(CalculationCodes can be indirectly attached in the CATENCALCD and CATGPCALCD tables.)

Returns:
java.lang.Integer

getCalculationParameterAmount

public java.math.BigDecimal getCalculationParameterAmount()

This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The amount of a fixed or percentage adjustment that can be applied to adjust or replace the results of the CalculationScales associated with the attached CalculationCode.

Returns:
java.math.BigDecimal

getCalculationParameterType

public java.lang.Integer getCalculationParameterType()

This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates how CALPARMAMT is used.
0 = not used.
1 = fixed adjustment.
2 = percentage adjustment.
3 = fixed replacement.

Returns:
java.lang.Integer

getOrderCalculationCodeId

public java.lang.Long getOrderCalculationCodeId()

This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Long

getOrderId

public java.lang.Long getOrderId()

This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Returns:
java.lang.Long

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

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

The following is a description of this column:

The CalculationCode.

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

setCalculationFlags

public void setCalculationFlags(java.lang.Integer aCalculationFlags)

This method provides access to the ORDCALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contains the following bit flag value:
1 = overrideIndirectAttachments - CalculationCodes indirectly attached to the OrderItem are not effective.
(CalculationCodes can be indirectly attached in the CATENCALCD and CATGPCALCD tables.)

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

setCalculationParameterAmount

public void setCalculationParameterAmount(java.math.BigDecimal aCalculationParameterAmount)

This method provides access to the ORDCALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The amount of a fixed or percentage adjustment that can be applied to adjust or replace the results of the CalculationScales associated with the attached CalculationCode.

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

setCalculationParameterType

public void setCalculationParameterType(java.lang.Integer aCalculationParameterType)

This method provides access to the ORDCALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates how CALPARMAMT is used.
0 = not used.
1 = fixed adjustment.
2 = percentage adjustment.
3 = fixed replacement.

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

setOrderCalculationCodeId

public void setOrderCalculationCodeId(java.lang.Long aOrderCalculationCodeId)

This method provides access to the ORDCALCD.ORDCALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Parameters:
aOrderCalculationCodeId - java.lang.Long
Returns:
void

setOrderId

public void setOrderId(java.lang.Long aOrderId)

This method provides access to the ORDCALCD.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Parameters:
aOrderId - java.lang.Long
Returns:
void