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

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.

See Also:
Serialized Form

Constructor Summary
SubOrderAdjustmentAccessBean()
          constructor
SubOrderAdjustmentAccessBean(javax.ejb.EJBObject o)
          constructor
SubOrderAdjustmentAccessBean(java.lang.Long arg0, java.lang.Long arg1)
          constructor
SubOrderAdjustmentAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.math.BigDecimal arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findBySubOrder(java.lang.Long arg0)
          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 provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setSubOrderId(java.lang.String newValue)
          This method provides access to the SUBORDADJ.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setTotalAdjustment(java.math.BigDecimal newValue)
          This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 void setTotalAdjustment(java.lang.String newValue)
          This method provides access to the SUBORDADJ.TOTALADJUSTMENT column of DB2 type DECIMAL(20 5) DEFAULT 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean()
constructor

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 arg0,
                                    java.lang.Long arg1)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException

SubOrderAdjustmentAccessBean

public SubOrderAdjustmentAccessBean(java.lang.Long arg0,
                                    java.lang.Long arg1,
                                    java.math.BigDecimal arg2)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.math.BigDecimal
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
Method Detail

findBySubOrder

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

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 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:
newValue - String
Returns:
void

setSubOrderId

public void setSubOrderId(java.lang.Long newValue)

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

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 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:
setTotalAdjustment in interface SubOrderAdjustmentAccessBeanData
Parameters:
newValue - String
Returns:
void

setTotalAdjustment

public void setTotalAdjustment(java.math.BigDecimal newValue)

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.

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