com.ibm.commerce.order.objects
Class OrderItemAdjustmentAccessBean

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

public class OrderItemAdjustmentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderItemAdjustmentAccessBeanData

Each row in this table represents an OrderItemAdjustment.

See Also:
Serialized Form

Constructor Summary
OrderItemAdjustmentAccessBean()
          constructor
OrderItemAdjustmentAccessBean(javax.ejb.EJBObject o)
          constructor
OrderItemAdjustmentAccessBean(java.lang.Long arg0, java.lang.Long arg1)
          constructor
OrderItemAdjustmentAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.math.BigDecimal arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByOrderAdjustment(java.lang.Long arg0)           Retrieves all the order item adjustments for specified order adjustment. The SQL query used to fetch all the required rows from the ORDIADJUST table is:
SELECT * FROM ORDIADJUST T1 WHERE (T1.ORDADJUST_ID = ?)
 java.util.Enumeration findByOrderId(java.lang.Long arg0)           Retrieves all the order item adjustments for specified order. The SQL query used to fetch all the required rows from the ORDIADJUST table is:
SELECT * FROM ORDIADJUST T1 WHERE T1.ORDADJUST_ID IN (SELECT T2.ORDADJUST_ID FROM ORDADJUST T2 WHERE T2.ORDERS_ID=?)
 java.util.Enumeration findByOrderIdAndCalculationUsageId(java.lang.Long arg0, java.lang.Integer arg1)           Retrieves all the order item adjustments for specified order and calculation usage. The SQL query used to fetch all the required rows from the ORDIADJUST table is:
SELECT * FROM ORDIADJUST T1 WHERE T1.ORDADJUST_ID IN (SELECT T2.ORDADJUST_ID FROM ORDADJUST T2 WHERE T2.ORDERS_ID=? AND T2.CALUSAGE_ID=?)
 java.util.Enumeration findByOrderItem(java.lang.Long arg0)           Retrieves all the order item adjustments for specified order item. The SQL query used to fetch all the required rows from the ORDIADJUST table is:
SELECT * FROM ORDIADJUST T1 WHERE (T1.ORDERITEMS_ID = ?)
 java.util.Enumeration findByOrderItemIds(java.lang.Long[] arg0)
           
 java.lang.String getAmount()
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 java.lang.String getOrderAdjustmentId()
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderAdjustmentIdInEJBType()
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderItemAdjustmentId()
          This method provides access to the ORDIADJUST.ORDIADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemAdjustmentIdInEJBType()
          This method provides access to the ORDIADJUST.ORDIADJUST_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderItemId()
          This method provides access to the ORDIADJUST.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemIdInEJBType()
          This method provides access to the ORDIADJUST.ORDERITEMS_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 ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 void setAmount(java.lang.String newValue)
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.
 void setInitKey_orderItemAdjustmentId(java.lang.String newValue)
          Set the primary key for this object
 void setOrderAdjustmentId(java.lang.Long newValue)
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderAdjustmentId(java.lang.String newValue)
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.Long newValue)
          This method provides access to the ORDIADJUST.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.String newValue)
          This method provides access to the ORDIADJUST.ORDERITEMS_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

OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean()
constructor

OrderItemAdjustmentAccessBean

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

OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean(java.lang.Long arg0,
                                     java.lang.Long arg1)
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException

OrderItemAdjustmentAccessBean

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

findByOrderAdjustment

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

Retrieves all the order item adjustments for specified order adjustment.
The SQL query used to fetch all the required rows from the ORDIADJUST table is: SELECT * FROM ORDIADJUST T1 WHERE (T1.ORDADJUST_ID = ?)

Returns:
java.util.Enumeration An Enumeration of all the OrderItemAdjustmentAccessBean 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

findByOrderId

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

Retrieves all the order item adjustments for specified order.
The SQL query used to fetch all the required rows from the ORDIADJUST table is: SELECT * FROM ORDIADJUST T1 WHERE T1.ORDADJUST_ID IN (SELECT T2.ORDADJUST_ID FROM ORDADJUST T2 WHERE T2.ORDERS_ID=?)

Returns:
java.util.Enumeration An Enumeration of all the OrderItemAdjustmentAccessBean 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

findByOrderIdAndCalculationUsageId

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

Retrieves all the order item adjustments for specified order and calculation usage.
The SQL query used to fetch all the required rows from the ORDIADJUST table is: SELECT * FROM ORDIADJUST T1 WHERE T1.ORDADJUST_ID IN (SELECT T2.ORDADJUST_ID FROM ORDADJUST T2 WHERE T2.ORDERS_ID=? AND T2.CALUSAGE_ID=?)

Returns:
java.util.Enumeration An Enumeration of all the OrderItemAdjustmentAccessBean 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

findByOrderItem

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

Retrieves all the order item adjustments for specified order item.
The SQL query used to fetch all the required rows from the ORDIADJUST table is: SELECT * FROM ORDIADJUST T1 WHERE (T1.ORDERITEMS_ID = ?)

Returns:
java.util.Enumeration An Enumeration of all the OrderItemAdjustmentAccessBean 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_orderItemAdjustmentId

public void setInitKey_orderItemAdjustmentId(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

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 ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.

The following is a description of this column:

The amount of the adjustment, in the currency of the OrderItem. A negative amount represents a discount. A positive amount represents a surcharge.

Specified by:
getAmount in interface OrderItemAdjustmentAccessBeanData
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 ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.

The following is a description of this column:

The amount of the adjustment, in the currency of the OrderItem. A negative amount represents a discount. A positive amount represents a surcharge.

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 ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20 5) NOT NULL DEFAULT 0.

The following is a description of this column:

The amount of the adjustment, in the currency of the OrderItem. A negative amount represents a discount. A positive amount represents a surcharge.

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

setAmount

public void setAmount(java.math.BigDecimal newValue)

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

The following is a description of this column:

The amount of the adjustment, in the currency of the OrderItem. A negative amount represents a discount. A positive amount represents a surcharge.

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

getOrderItemId

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

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

The following is a description of this column:

The OrderItem to which this OrderItemAdjustment applies.

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

getOrderItemIdInEJBType

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

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

The following is a description of this column:

The OrderItem to which this OrderItemAdjustment applies.

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

setOrderItemId

public void setOrderItemId(java.lang.String newValue)

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

The following is a description of this column:

The OrderItem to which this OrderItemAdjustment applies.

Specified by:
setOrderItemId in interface OrderItemAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrderItemId

public void setOrderItemId(java.lang.Long newValue)

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

The following is a description of this column:

The OrderItem to which this OrderItemAdjustment applies.

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

getOrderItemAdjustmentId

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

This method provides access to the ORDIADJUST.ORDIADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrderItemAdjustmentIdInEJBType

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

This method provides access to the ORDIADJUST.ORDIADJUST_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

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 ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderAdjustment of which this OrderItemAdjustment is a part.

Specified by:
getOrderAdjustmentId in interface OrderItemAdjustmentAccessBeanData
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 ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderAdjustment of which this OrderItemAdjustment is a part.

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

setOrderAdjustmentId

public void setOrderAdjustmentId(java.lang.String newValue)

This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderAdjustment of which this OrderItemAdjustment is a part.

Specified by:
setOrderAdjustmentId in interface OrderItemAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrderAdjustmentId

public void setOrderAdjustmentId(java.lang.Long newValue)

This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderAdjustment of which this OrderItemAdjustment is a part.

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

findByOrderItemIds

public java.util.Enumeration findByOrderItemIds(java.lang.Long[] arg0)
                                         throws javax.naming.NamingException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException