com.ibm.commerce.order.objects
Class OrderItemAdjustmentAccessBean

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

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

This bean provides access to the ORDIADJUST table.

The following is a description of this table:

Each row in this table represents an OrderItemAdjustment.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderItemAdjustmentAccessBean()
          Default constructor.
OrderItemAdjustmentAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderItemAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId, java.lang.Long anOrderItemId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderItemAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId, java.lang.Long anOrderItemId, java.math.BigDecimal afAmount)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByOrderAdjustment(java.lang.Long anOrderAdjustmentId)
          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 anOrderId)
          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 anCalculationUsageId, java.lang.Integer anOrderId)
          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 anOrderItemId)
          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.lang.String getAmount()
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getAmountInEJBType()
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAmount(java.math.BigDecimal aAmount)
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setAmount(java.lang.String aAmount)
          This method provides access to the ORDIADJUST.AMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setInitKey_orderItemAdjustmentId(java.lang.String aInitKey_orderItemAdjustmentId)
          Set the primary key for this object
 void setOrderAdjustmentId(java.lang.Long aOrderAdjustmentId)
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderAdjustmentId(java.lang.String aOrderAdjustmentId)
          This method provides access to the ORDIADJUST.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.Long aOrderItemId)
          This method provides access to the ORDIADJUST.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemId(java.lang.String aOrderItemId)
          This method provides access to the ORDIADJUST.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean(javax.ejb.EJBObject object)
                              throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

OrderItemAdjustmentAccessBean

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

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
anOrderAdjustmentId - java.lang.Long The OrderAdjustment this OrderItemAdjustment is part of
anOrderItemId - java.lang.Long The OrderItem to which this OrderItemAdjustment applies
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId,
                                     java.lang.Long anOrderItemId,
                                     java.math.BigDecimal afAmount)
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
anOrderAdjustmentId - java.lang.Long The OrderAdjustment this OrderItemAdjustment is part of
anOrderItemId - java.lang.Long The OrderItem to which this OrderItemAdjustment applies
afAmount - java.math.BigDecimal The amount of the adjustment, in the currency of the OrderItem
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByOrderAdjustment

public java.util.Enumeration findByOrderAdjustment(java.lang.Long anOrderAdjustmentId)
                                            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 = ?)

Parameters:
anOrderAdjustmentId - java.lang.Long Order adjustment identifier
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 - The javax.naming.NamingException exception

findByOrderId

public java.util.Enumeration findByOrderId(java.lang.Long anOrderId)
                                    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=?)

Parameters:
anOrderId - java.lang.Long Order identifier
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 - The javax.naming.NamingException exception

findByOrderIdAndCalculationUsageId

public java.util.Enumeration findByOrderIdAndCalculationUsageId(java.lang.Long anCalculationUsageId,
                                                                java.lang.Integer anOrderId)
                                                         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=?)

Parameters:
anCalculationUsageId - java.lang.Long Calculation usage identifier
anOrderId - java.lang.Integer Order identifier
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 - The javax.naming.NamingException exception

findByOrderItem

public java.util.Enumeration findByOrderItem(java.lang.Long anOrderItemId)
                                      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 = ?)

Parameters:
anOrderItemId - java.lang.Long The OrderItem to which order item adjustments apply
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 - The javax.naming.NamingException exception

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.

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

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.

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

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

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

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

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

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

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

refreshCopyHelper

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

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setAmount

public void setAmount(java.math.BigDecimal aAmount)

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

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

setAmount

public void setAmount(java.lang.String aAmount)

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

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:
aAmount - java.lang.String
Returns:
void

setInitKey_orderItemAdjustmentId

public void setInitKey_orderItemAdjustmentId(java.lang.String aInitKey_orderItemAdjustmentId)

Set the primary key for this object

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

setOrderAdjustmentId

public void setOrderAdjustmentId(java.lang.Long aOrderAdjustmentId)

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

setOrderAdjustmentId

public void setOrderAdjustmentId(java.lang.String aOrderAdjustmentId)

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:
aOrderAdjustmentId - java.lang.String
Returns:
void

setOrderItemId

public void setOrderItemId(java.lang.Long aOrderItemId)

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

setOrderItemId

public void setOrderItemId(java.lang.String aOrderItemId)

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:
aOrderItemId - java.lang.String
Returns:
void