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

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

Each row of this table represents an OrderAdjustment. This access bean corresponds to the database table 'ORDADJUST'.

See Also:
Serialized Form

Constructor Summary
OrderAdjustmentAccessBean()
Zero argument constructor used to initialize the access bean.
OrderAdjustmentAccessBean(javax.ejb.EJBObject o)
constructor
OrderAdjustmentAccessBean(java.lang.Long newOrderId, java.math.BigDecimal newAmount, java.lang.Integer newCalculationCodeId, java.lang.Integer newCalculationUsageId, java.lang.Integer newDisplayLevel)
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 findByOrder(java.lang.Long orderId) 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 orderId, java.lang.Integer calculationUsageId) 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.util.Enumeration findByOrderAndUsageForUpdate(java.lang.Long order, java.lang.Integer usage) 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 = ? FOR UPDATE
java.util.Enumeration findByOrderForUpdate(java.lang.Long order) 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 = ? FOR UPDATE
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 arg1, java.lang.Integer arg2)
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 accesses a non-CMP field
void setAmount(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationCodeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationUsageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationUsageId(java.lang.String newValue)
This method accesses a non-CMP field
void setDisplayLevel(java.lang.Integer newValue)
This method accesses a non-CMP field
void setDisplayLevel(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_orderAdjustmentId(java.lang.String newValue)
Set the primary key for this object
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(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

OrderAdjustmentAccessBean

public OrderAdjustmentAccessBean()
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.OrderAdjustment com.ibm.commerce.order.objimpl.OrderAdjustmentHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OrderAdjustmentKey) 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_orderAdjustmentId( java.lang.Long )

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 newOrderId,
                                 java.math.BigDecimal newAmount,
                                 java.lang.Integer newCalculationCodeId,
                                 java.lang.Integer newCalculationUsageId,
                                 java.lang.Integer newDisplayLevel)
                          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:
newOrderId - java.lang.Long The Order the order adjustment is part of
newAmount - java.math.BigDecimal The amount of the order adjustment
newCalculationCodeId - java.lang.Integer The calculation code used to create the order adjustment
newCalculationUsageId - java.lang.Integer The calculation usage of the calculation code used to create the order adjustment
newDisplayLevel - java.lang.Integer Specifies how the value of this order adjustment should be displayed
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

findByOrder

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

Parameters:
orderId - java.lang.Long The order the order adjustments are part of
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 orderId,
                                                 java.lang.Integer calculationUsageId)
                                          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 = ?

Parameters:
orderId - java.lang.Long The order the order adjustments are part of
calculationUsageId - java.lang.Integer Calculation usage
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 accesses a non-CMP field
Specified by:
setCalculationCodeId in interface OrderAdjustmentAccessBeanData

setCalculationCodeId

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

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

setAmount

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

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

setOrderId

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

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

setDisplayLevel

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

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

setCalculationUsageId

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

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 arg1,
                                                           java.lang.Integer arg2)
                                                    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
arg2 - 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

findByOrderForUpdate

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

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

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

findByOrderAndUsageForUpdate

public java.util.Enumeration findByOrderAndUsageForUpdate(java.lang.Long order,
                                                          java.lang.Integer usage)
                                                   throws javax.naming.NamingException,
                                                          javax.ejb.FinderException,
                                                          java.rmi.RemoteException

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

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

Feedback