com.ibm.commerce.order.objects
Class OrderAdjustmentAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.order.objects.OrderAdjustmentAccessBean
All Implemented Interfaces:
OrderAdjustmentAccessBeanData

public class OrderAdjustmentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderAdjustmentAccessBeanData

Each row of this table represents an OrderAdjustment.

See Also:
Serialized Form

Constructor Summary
OrderAdjustmentAccessBean()
          constructor
OrderAdjustmentAccessBean(javax.ejb.EJBObject o)
          constructor
OrderAdjustmentAccessBean(java.lang.Long arg0, java.math.BigDecimal arg1, java.lang.Integer arg2, java.lang.Integer arg3, java.lang.Integer arg4)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByOrder(java.lang.Long arg0)           Retrieves all the order adjustments for specified order id. The SQL query used to fetch all the required rows from the ORDADJUST table is:
SELECT * FROM ORDADJUST T1 WHERE T1.ORDERS_ID = ?
 java.util.Enumeration findByOrderAndUsage(java.lang.Long arg0, java.lang.Integer arg1)           Retrieves all the order adjustments for specified order id and calculation usage. The SQL query used to fetch all the required rows from the ORDADJUST table is:
SELECT * FROM ORDADJUST T1 WHERE T1.ORDERS_ID = ? and T1.CALUSAGE_ID = ?
 java.lang.String getAmount()
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 java.lang.String getCalculationCodeId()
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER.
 java.lang.Integer getCalculationCodeIdInEJBType()
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER.
 java.lang.String getCalculationUsageId()
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER.
 java.lang.Integer getCalculationUsageIdInEJBType()
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER.
  OrderAdjustmentDescriptionAccessBean getDescription(java.lang.Integer arg0, java.lang.Integer arg1)
          Returns an OrderAdjustmentDescriptionAccessBean object associated with languageId.
 java.lang.String getDisplayLevel()
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getDisplayLevelInEJBType()
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getOrderAdjustmentId()
          This method provides access to the ORDADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderAdjustmentIdInEJBType()
          This method provides access to the ORDADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderId()
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAmount(java.math.BigDecimal newValue)
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 void setAmount(java.lang.String newValue)
          This method provides access to the ORDADJUST.AMOUNT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 void setCalculationCodeId(java.lang.Integer newValue)
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER.
 void setCalculationCodeId(java.lang.String newValue)
          This method provides access to the ORDADJUST.CALCODE_ID column of DB2 type INTEGER.
 void setCalculationUsageId(java.lang.Integer newValue)
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER.
 void setCalculationUsageId(java.lang.String newValue)
          This method provides access to the ORDADJUST.CALUSAGE_ID column of DB2 type INTEGER.
 void setDisplayLevel(java.lang.Integer newValue)
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setDisplayLevel(java.lang.String newValue)
          This method provides access to the ORDADJUST.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setInitKey_orderAdjustmentId(java.lang.String newValue)
          Set the primary key for this object
 void setOrderId(java.lang.Long newValue)
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String newValue)
          This method provides access to the ORDADJUST.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderAdjustmentAccessBean

public OrderAdjustmentAccessBean()
constructor

OrderAdjustmentAccessBean

public OrderAdjustmentAccessBean(javax.ejb.EJBObject o)
                          throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

OrderAdjustmentAccessBean

public OrderAdjustmentAccessBean(java.lang.Long arg0,
                                 java.math.BigDecimal arg1,
                                 java.lang.Integer arg2,
                                 java.lang.Integer arg3,
                                 java.lang.Integer arg4)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.math.BigDecimal
arg2 - java.lang.Integer
arg3 - java.lang.Integer
arg4 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long arg0)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Retrieves all the order adjustments for specified order id.
The SQL query used to fetch all the required rows from the ORDADJUST table is: SELECT * FROM ORDADJUST T1 WHERE T1.ORDERS_ID = ?

Returns:
java.util.Enumeration An Enumeration of all the OrderAdjustmentAccessBean objects representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByOrderAndUsage

public java.util.Enumeration findByOrderAndUsage(java.lang.Long arg0,
                                                 java.lang.Integer arg1)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

Retrieves all the order adjustments for specified order id and calculation usage.
The SQL query used to fetch all the required rows from the ORDADJUST table is: SELECT * FROM ORDADJUST T1 WHERE T1.ORDERS_ID = ? and T1.CALUSAGE_ID = ?

Returns:
java.util.Enumeration An Enumeration of all the OrderAdjustmentAccessBean objects representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_orderAdjustmentId

public void setInitKey_orderAdjustmentId(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCalculationCodeId

public java.lang.String getCalculationCodeId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

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

The following is a description of this column:

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

Specified by:
getCalculationCodeId in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCalculationCodeIdInEJBType

public java.lang.Integer getCalculationCodeIdInEJBType()
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

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

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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCalculationCodeId

public void setCalculationCodeId(java.lang.String newValue)

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

The following is a description of this column:

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

Specified by:
setCalculationCodeId in interface OrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer newValue)

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

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:
newValue - java.lang.Integer
Returns:
void

getAmount

public java.lang.String getAmount()
                           throws java.rmi.RemoteException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  javax.naming.NamingException

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

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.

Specified by:
getAmount in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getAmountInEJBType

public java.math.BigDecimal getAmountInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

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

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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setAmount

public void setAmount(java.lang.String newValue)

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

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.

Specified by:
setAmount in interface OrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setAmount

public void setAmount(java.math.BigDecimal newValue)

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

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:
newValue - java.math.BigDecimal
Returns:
void

getOrderId

public java.lang.String getOrderId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

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.

Specified by:
getOrderId in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOrderIdInEJBType

public java.lang.Long getOrderIdInEJBType()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderId

public void setOrderId(java.lang.String newValue)

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.

Specified by:
setOrderId in interface OrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrderId

public void setOrderId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

getDisplayLevel

public java.lang.String getDisplayLevel()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

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

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:&l

Specified by:
getDisplayLevel in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getDisplayLevelInEJBType

public java.lang.Integer getDisplayLevelInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

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

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDisplayLevel

public void setDisplayLevel(java.lang.String newValue)

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

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:&l

Specified by:
setDisplayLevel in interface OrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setDisplayLevel

public void setDisplayLevel(java.lang.Integer newValue)

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

The following is a description of this column:

The values for this OrderAdjustment should be displayed with each:&l

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

getCalculationUsageId

public java.lang.String getCalculationUsageId()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

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

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.

Specified by:
getCalculationUsageId in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCalculationUsageIdInEJBType

public java.lang.Integer getCalculationUsageIdInEJBType()
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.CreateException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

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

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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCalculationUsageId

public void setCalculationUsageId(java.lang.String newValue)

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

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.

Specified by:
setCalculationUsageId in interface OrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setCalculationUsageId

public void setCalculationUsageId(java.lang.Integer newValue)

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

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:
newValue - java.lang.Integer
Returns:
void

getOrderAdjustmentId

public java.lang.String getOrderAdjustmentId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

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.

Specified by:
getOrderAdjustmentId in interface OrderAdjustmentAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOrderAdjustmentIdInEJBType

public java.lang.Long getOrderAdjustmentIdInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

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
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getDescription

public OrderAdjustmentDescriptionAccessBean getDescription(java.lang.Integer arg0,
                                                           java.lang.Integer arg1)
                                                    throws javax.naming.NamingException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException,
                                                           java.rmi.RemoteException

Returns an OrderAdjustmentDescriptionAccessBean object associated with languageId. If there is no description for the specified language, the alternative languages for languageId and storeId will be used to get an appropriate description using the language dance mechanism.

Parameters:
arg1 - java.lang.Integer
Returns:
com.ibm.commerce.order.objects.OrderAdjustmentDescriptionAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception