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
Direct Known Subclasses:
OrderItemAdjustmentDataBeanBase

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

Each row in this table represents an OrderItemAdjustment. This access bean corresponds to the database table 'ORDIADJUST'.

See Also:
Serialized Form

Constructor Summary
OrderItemAdjustmentAccessBean()
Zero argument constructor used to initialize the access bean.
OrderItemAdjustmentAccessBean(javax.ejb.EJBObject o)
constructor
OrderItemAdjustmentAccessBean(java.lang.Long arg1, java.lang.Long arg2)
Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderItemAdjustmentAccessBean(java.lang.Long arg1, java.lang.Long arg2, java.math.BigDecimal arg3)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrderAdjustment(java.lang.Long orderAdjustment) 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 findByOrderAdjustmentForUpdate(java.lang.Long adjustmentId) 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 = ?) FOR UPDATE
java.util.Enumeration findByOrderId(java.lang.Long orderId) 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 orderId, java.lang.Integer calculationUsageId) 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 orderItem) 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[] orderItemIds)
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 accesses a non-CMP field
void setAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_orderItemAdjustmentId(java.lang.String newValue)
Set the primary key for this object
void setOrderAdjustmentId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderAdjustmentId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrderItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderItemId(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

OrderItemAdjustmentAccessBean

public OrderItemAdjustmentAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.OrderItemAdjustment com.ibm.commerce.order.objimpl.OrderItemAdjustmentHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OrderItemAdjustmentKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_orderItemAdjustmentId( java.lang.Long )

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 arg1,
                                     java.lang.Long arg2)
                              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:
arg1 - java.lang.Long The OrderAdjustment this OrderItemAdjustment is part of
arg2 - 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 arg1,
                                     java.lang.Long arg2,
                                     java.math.BigDecimal arg3)
                              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:
arg1 - java.lang.Long The OrderAdjustment this OrderItemAdjustment is part of
arg2 - java.lang.Long The OrderItem to which this OrderItemAdjustment applies
arg3 - 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

findByOrderAdjustment

public java.util.Enumeration findByOrderAdjustment(java.lang.Long orderAdjustment)
                                            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:
orderAdjustment - 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

findByOrderId

public java.util.Enumeration findByOrderId(java.lang.Long orderId)
                                    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:
orderId - 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

findByOrderIdAndCalculationUsageId

public java.util.Enumeration findByOrderIdAndCalculationUsageId(java.lang.Long orderId,
                                                                java.lang.Integer calculationUsageId)
                                                         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:
orderId - java.lang.Long Calculation usage identifier
calculationUsageId - 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

findByOrderItem

public java.util.Enumeration findByOrderItem(java.lang.Long orderItem)
                                      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:
orderItem - 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

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 accesses a non-CMP field
Specified by:
setAmount in interface OrderItemAdjustmentAccessBeanData

setAmount

public void setAmount(java.math.BigDecimal newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setOrderItemId in interface OrderItemAdjustmentAccessBeanData

setOrderItemId

public void setOrderItemId(java.lang.Long newValue)
This method accesses a non-CMP field

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 accesses a non-CMP field
Specified by:
setOrderAdjustmentId in interface OrderItemAdjustmentAccessBeanData

setOrderAdjustmentId

public void setOrderAdjustmentId(java.lang.Long newValue)
This method accesses a non-CMP field

findByOrderItemIds

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

findByOrderAdjustmentForUpdate

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

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 = ?) FOR UPDATE

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

Feedback