com.ibm.commerce.order.objects
Class OrderAdjustmentBean

com.ibm.commerce.order.objects.OrderAdjustmentBean
All Implemented Interfaces:
java.io.Serializable

public class OrderAdjustmentBean
implements java.io.Serializable

This bean provides access to the ORDADJUST table.

The following is a description of this table:

Each row of this table represents an OrderAdjustment.

See Also:
Serialized Form

Constructor Summary
OrderAdjustmentBean()
           
 
Method Summary
 java.math.BigDecimal getAmount()
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
 java.lang.Integer getCalculationCodeId()
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getCalculationUsageId()
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getDisplayLevel()
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL.
 java.lang.Long getOrderAdjustmentId()
          This method provides access to the ORDADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderId()
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER NULL.
 void setCalculationUsageId(java.lang.Integer aCalculationUsageId)
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER NULL.
 void setDisplayLevel(java.lang.Integer aDisplayLevel)
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL.
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

OrderAdjustmentBean

public OrderAdjustmentBean()
Method Detail

getAmount

public java.math.BigDecimal getAmount()

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

The following is a description of this column:

The amount of the OrderAdjustment, in the currency of the order (ORDERS.CURRENCY). This is the sum of its related OrderItemAdjustments.

Returns:
java.math.BigDecimal

getCalculationCodeId

public java.lang.Integer getCalculationCodeId()

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

The following is a description of this column:

The CalculationCode, if any, and if it still exists, that was used to create the OrderAdjustment.

Returns:
java.lang.Integer

getCalculationUsageId

public java.lang.Integer getCalculationUsageId()

This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The CalculationUsage, if any, and if it still exists, of the CalculationCode that was used to create the OrderAdjustment.

Returns:
java.lang.Integer

getDisplayLevel

public java.lang.Integer getDisplayLevel()

This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:
0 = OrderItem
1 = Order
2 = product
3 = item
4 = contract
This value is usually copied from CALCODE.DISPLAYLEVEL.

Returns:
java.lang.Integer

getOrderAdjustmentId

public java.lang.Long getOrderAdjustmentId()

This method provides access to the ORDADJUST.ORDADJUST_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 ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order the OrderAdjustment is part of.

Returns:
java.lang.Long

setAmount

public void setAmount(java.math.BigDecimal aAmount)

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

The following is a description of this column:

The amount of the OrderAdjustment, in the currency of the order (ORDERS.CURRENCY). This is the sum of its related OrderItemAdjustments.

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

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

The following is a description of this column:

The CalculationCode, if any, and if it still exists, that was used to create the OrderAdjustment.

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

setCalculationUsageId

public void setCalculationUsageId(java.lang.Integer aCalculationUsageId)

This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The CalculationUsage, if any, and if it still exists, of the CalculationCode that was used to create the OrderAdjustment.

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

setDisplayLevel

public void setDisplayLevel(java.lang.Integer aDisplayLevel)

This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:
0 = OrderItem
1 = Order
2 = product
3 = item
4 = contract
This value is usually copied from CALCODE.DISPLAYLEVEL.

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

setOrderId

public void setOrderId(java.lang.Long aOrderId)

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

The following is a description of this column:

The Order the OrderAdjustment is part of.

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