com.ibm.commerce.fulfillment.objects
Class OrderItemCalculationCodeBean

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

public class OrderItemCalculationCodeBean
implements java.io.Serializable

This bean provides access to the ORDICALCD 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 an OrderItem. The attachment is not effective unless the directCalculationCodeAttachment flag in ORDERITEMS.PREPAREFLAGS is 1.

See Also:
Serialized Form

Constructor Summary
OrderItemCalculationCodeBean()
           
 
Method Summary
 java.lang.Integer getCalculationCodeId()
          This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Integer getCalculationFlags()
          This method provides access to the ORDICALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.
 java.math.BigDecimal getCalculationParameterAmount()
          This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.Integer getCalculationParameterType()
          This method provides access to the ORDICALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.
 java.lang.Long getOrderItemCalculationCodeId()
          This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemId()
          This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
 void setCalculationFlags(java.lang.Integer aCalculationFlags)
          This method provides access to the ORDICALCD.CALFLAGS column of DB2 type INTEGER NOT NULL.
 void setCalculationParameterAmount(java.math.BigDecimal aCalculationParameterAmount)
          This method provides access to the ORDICALCD.CALPARMAMT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setCalculationParameterType(java.lang.Integer aCalculationParameterType)
          This method provides access to the ORDICALCD.CALPARMTYPE column of DB2 type INTEGER NOT NULL.
 void setOrderItemCalculationCodeId(java.lang.Long aOrderItemCalculationCodeId)
          This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.Long aOrderItemId)
          This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

OrderItemCalculationCodeBean

public OrderItemCalculationCodeBean()
Method Detail

getCalculationCodeId

public java.lang.Integer getCalculationCodeId()

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Integer

getCalculationFlags

public java.lang.Integer getCalculationFlags()

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

The following is a description of this column:

Contains the following bit flag:
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 ORDICALCD.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 ORDICALCD.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

getOrderItemCalculationCodeId

public java.lang.Long getOrderItemCalculationCodeId()

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Long

getOrderItemId

public java.lang.Long getOrderItemId()

This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

Returns:
java.lang.Long

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

setCalculationFlags

public void setCalculationFlags(java.lang.Integer aCalculationFlags)

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

The following is a description of this column:

Contains the following bit flag:
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 ORDICALCD.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 ORDICALCD.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

setOrderItemCalculationCodeId

public void setOrderItemCalculationCodeId(java.lang.Long aOrderItemCalculationCodeId)

This method provides access to the ORDICALCD.ORDICALCD_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

setOrderItemId

public void setOrderItemId(java.lang.Long aOrderItemId)

This method provides access to the ORDICALCD.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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