com.ibm.commerce.taxation.objects
Class SubOrderTaxAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.taxation.objects.SubOrderTaxAccessBean
All Implemented Interfaces:
SubOrderTaxAccessBeanData

public class SubOrderTaxAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements SubOrderTaxAccessBeanData

Each row of this table specifies the tax amount of a particular TaxCategory for all the OrderItems with the same shipping address as the SubOrder.

See Also:
Serialized Form

Constructor Summary
SubOrderTaxAccessBean()
          constructor
SubOrderTaxAccessBean(javax.ejb.EJBObject o)
          constructor
SubOrderTaxAccessBean(java.lang.Long arg0, java.math.BigDecimal arg1, java.lang.Integer 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 the tax information for the indicated suborder.
 java.lang.String getSubOrderId()
          This method accesses a non-CMP field
 java.lang.Long getSubOrderIdInEJBType()
          This method accesses a non-CMP field
 java.lang.String getTaxAmount()
          This method accesses a non-CMP field
 java.math.BigDecimal getTaxAmountInEJBType()
          This method accesses a non-CMP field
 java.lang.String getTaxCategoryId()
          This method accesses a non-CMP field
 java.lang.Integer getTaxCategoryIdInEJBType()
          This method accesses a non-CMP field
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_nSubOrderId(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_nTaxCategoryId(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 setTaxAmount(java.math.BigDecimal newValue)
          This method accesses a non-CMP field
 void setTaxAmount(java.lang.String newValue)
          This method accesses a non-CMP field
 void setTaxCategoryId(java.lang.Integer newValue)
          This method accesses a non-CMP field
 void setTaxCategoryId(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

SubOrderTaxAccessBean

public SubOrderTaxAccessBean()
constructor

SubOrderTaxAccessBean

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

SubOrderTaxAccessBean

public SubOrderTaxAccessBean(java.lang.Long arg0,
                             java.math.BigDecimal arg1,
                             java.lang.Integer arg2)
                      throws javax.ejb.CreateException,
                             java.rmi.RemoteException,
                             javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.math.BigDecimal
arg2 - java.lang.Integer
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 the tax information for the indicated suborder.

The SQL query used to fetch all the required rows from the SUBORDTAX table is:

SELECT * FROM SUBORDERTAX T1 WHERE (T1.SUBORDER_ID = ?)

Returns:
Enumeration of all the SubOrderTaxAccessBeans 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_nSubOrderId

public void setInitKey_nSubOrderId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_nTaxCategoryId

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

getTaxCategoryId

public java.lang.String getTaxCategoryId()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getTaxCategoryId in interface SubOrderTaxAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTaxCategoryIdInEJBType

public java.lang.Integer getTaxCategoryIdInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
This method accesses a non-CMP field
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTaxCategoryId

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

setTaxCategoryId

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

getSubOrderId

public java.lang.String getSubOrderId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getSubOrderId in interface SubOrderTaxAccessBeanData
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 accesses a non-CMP field
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 SubOrderTaxAccessBeanData

setSubOrderId

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

getTaxAmount

public java.lang.String getTaxAmount()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getTaxAmount in interface SubOrderTaxAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTaxAmountInEJBType

public java.math.BigDecimal getTaxAmountInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException
This method accesses a non-CMP field
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setTaxAmount

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

setTaxAmount

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