com.ibm.commerce.order.objects
Class SubOrderAdjustmentAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.SubOrderAdjustmentAccessBean
All Implemented Interfaces:
SubOrderAdjustmentAccessBeanData
Direct Known Subclasses:
SubOrderAdjustmentDataBeanBase

public class SubOrderAdjustmentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements SubOrderAdjustmentAccessBeanData

Each row of this table represents a subtotal of all the OrderItemAdjustment amounts in an OrderAdjustment whose OrderItems have the same shipping address. This access bean corresponds to the database table 'SUBORDADJ'.

See Also:
Serialized Form

Constructor Summary
SubOrderAdjustmentAccessBean()
Zero argument constructor used to initialize the access bean.
SubOrderAdjustmentAccessBean(javax.ejb.EJBObject o)
constructor
SubOrderAdjustmentAccessBean(java.lang.Long orderAdjustmentId, java.lang.Long subOrderId)
Maps to a corresponding ejbCreate method in the home interface of the EJB
SubOrderAdjustmentAccessBean(java.lang.Long orderAdjustmentId, java.lang.Long subOrderId, java.math.BigDecimal totalAdjustment)
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 findByOrderAdjustmentIdForUpdate(java.lang.Long adjustmentId)
Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
java.util.Enumeration findBySubOrder(java.lang.Long subOrderId)
Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
java.util.Enumeration findBySubOrderForUpdate(java.lang.Long subOrder)
Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
java.lang.String getOrderAdjustmentId()
This method provides access to the SUBORDADJ.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderAdjustmentIdInEJBType()
This method provides access to the SUBORDADJ.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getSubOrderId()
This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getSubOrderIdInEJBType()
This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getTotalAdjustment()
This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20 5) DEFAULT 0.
java.math.BigDecimal getTotalAdjustmentInEJBType()
This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20 5) DEFAULT 0.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_orderAdjustmentId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_subOrderId(java.lang.String newValue)
Set the primary key for this object
void setSubOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setSubOrderId(java.lang.String newValue)
This method accesses a non-CMP field
void setTotalAdjustment(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setTotalAdjustment(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

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean()
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.SubOrderAdjustment com.ibm.commerce.order.objimpl.SubOrderAdjustmentHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.SubOrderAdjustmentKey) 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 ) setInitKey_subOrderId( java.lang.Long )

SubOrderAdjustmentAccessBean

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

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean(java.lang.Long orderAdjustmentId,
                                    java.lang.Long subOrderId)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

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

Parameters:
orderAdjustmentId - java.lang.Long The OrderAdjustment
subOrderId - java.lang.Long The SubOrder, representing all OrderItems with a particular shipping address
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean(java.lang.Long orderAdjustmentId,
                                    java.lang.Long subOrderId,
                                    java.math.BigDecimal totalAdjustment)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

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

Parameters:
orderAdjustmentId - java.lang.Long The OrderAdjustment
subOrderId - java.lang.Long The SubOrder, representing all OrderItems with a particular shipping address
totalAdjustment - java.math.BigDecimal The total of the OrderItemAdjustment amounts in the OrderAdjustment for all the OrderItems in the SubOrder
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException
Method Detail

findBySubOrder

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

Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
The SQL query used to fetch all the required rows from the
SUBORDADJ table is:
SELECT * FROM SUBORDADJ T1 WHERE (T1.SUBORDER_ID = ?)

Parameters:
subOrderId - java.lang.Long The SubOrder, representing all OrderItems with a particular shipping address
Returns:
java.util.Enumeration An Enumeration of all the SubOrderAdjustmentAccessBean 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

setInitKey_subOrderId

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

getSubOrderId

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

This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The SubOrder, representing all OrderItems with a particular shipping address.

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

getSubOrderIdInEJBType

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

This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The SubOrder, representing all OrderItems with a particular shipping address.

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

setSubOrderId

public void setSubOrderId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setSubOrderId in interface SubOrderAdjustmentAccessBeanData

setSubOrderId

public void setSubOrderId(java.lang.Long 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 SUBORDADJ.ORDADJUST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderAdjustment.

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

The following is a description of this column:

The OrderAdjustment.

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

getTotalAdjustment

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

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

The following is a description of this column:

The total of the OrderItemAdjustment amounts in the OrderAdjustment for all the OrderItems in the SubOrder.

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

getTotalAdjustmentInEJBType

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

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

The following is a description of this column:

The total of the OrderItemAdjustment amounts in the OrderAdjustment for all the OrderItems in the SubOrder.

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

setTotalAdjustment

public void setTotalAdjustment(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setTotalAdjustment in interface SubOrderAdjustmentAccessBeanData

setTotalAdjustment

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

findBySubOrderForUpdate

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

Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
The SQL query used to fetch all the required rows from the
SUBORDADJ table is:
SELECT * FROM SUBORDADJ T1 WHERE (T1.SUBORDER_ID = ?) FOR UPDATE

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

findByOrderAdjustmentIdForUpdate

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

Retrieves subtotals of all the OrderItemAdjustment amounts in an OrderAdjustment for OrderItems in the specified suborder.
The SQL query used to fetch all the required rows from the
SUBORDADJ table is:
SELECT * FROM SUBORDADJ T1 WHERE (T1.ORDADJUST_ID = ?) FOR UPDATE

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