com.ibm.commerce.order.objects
Class SubOrderAdjustmentAccessBean

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

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

This bean provides access to the SUBORDADJ table.

The following is a description of this table:

Each row of this table represents a subtotal of all the OrderItemAdjustment amounts in an OrderAdjustment whose OrderItems have the same shipping address.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
SubOrderAdjustmentAccessBean()
          Default constructor.
SubOrderAdjustmentAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
SubOrderAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId, java.lang.Long anSubOrderId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
SubOrderAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId, java.lang.Long anSubOrderId, java.math.BigDecimal afTotalAdjustment)
          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 findBySubOrder(java.lang.Long anSubOrder)
          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) NULL.
 java.math.BigDecimal getTotalAdjustmentInEJBType()
          This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20,5) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_orderAdjustmentId(java.lang.String aInitKey_orderAdjustmentId)
          Set the primary key for this object
 void setInitKey_subOrderId(java.lang.String aInitKey_subOrderId)
          Set the primary key for this object
 void setSubOrderId(java.lang.Long aSubOrderId)
          This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setSubOrderId(java.lang.String aSubOrderId)
          This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setTotalAdjustment(java.math.BigDecimal aTotalAdjustment)
          This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20,5) NULL.
 void setTotalAdjustment(java.lang.String aTotalAdjustment)
          This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20,5) 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

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean()

Default constructor. Maps to findByPrimaryKey.


SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean(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

SubOrderAdjustmentAccessBean

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

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

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

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean(java.lang.Long anOrderAdjustmentId,
                                    java.lang.Long anSubOrderId,
                                    java.math.BigDecimal afTotalAdjustment)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

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

Parameters:
anOrderAdjustmentId - java.lang.Long The OrderAdjustment
anSubOrderId - java.lang.Long The SubOrder, representing all OrderItems with a particular shipping address
afTotalAdjustment - 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 - The javax.naming.NamingException 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

findBySubOrder

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

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:
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

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

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

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:
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

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

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

setInitKey_orderAdjustmentId

public void setInitKey_orderAdjustmentId(java.lang.String aInitKey_orderAdjustmentId)

Set the primary key for this object

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

setInitKey_subOrderId

public void setInitKey_subOrderId(java.lang.String aInitKey_subOrderId)

Set the primary key for this object

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

setSubOrderId

public void setSubOrderId(java.lang.Long aSubOrderId)

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.

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

setSubOrderId

public void setSubOrderId(java.lang.String aSubOrderId)

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:
setSubOrderId in interface SubOrderAdjustmentAccessBeanData
Parameters:
aSubOrderId - java.lang.String
Returns:
void

setTotalAdjustment

public void setTotalAdjustment(java.math.BigDecimal aTotalAdjustment)

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

The following is a description of this column:

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

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

setTotalAdjustment

public void setTotalAdjustment(java.lang.String aTotalAdjustment)

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

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:
setTotalAdjustment in interface SubOrderAdjustmentAccessBeanData
Parameters:
aTotalAdjustment - java.lang.String
Returns:
void