com.ibm.commerce.taxation.objects
Class SubOrderTaxAccessBean

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

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

This bean provides access to the SUBORDTAX table.

The following is a description of this table:

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

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
SubOrderTaxAccessBean()
          Default constructor.
SubOrderTaxAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
SubOrderTaxAccessBean(java.lang.Long aOrderTaxAccessBean, java.math.BigDecimal aOrderTaxAccessBean, java.lang.Integer aOrderTaxAccessBean)
          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 subOrderId)
          Retrieves the tax information for the indicated suborder.
 java.lang.String getSubOrderId()
          This method provides access to the SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getSubOrderIdInEJBType()
          This method provides access to the SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTaxAmount()
          This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getTaxAmountInEJBType()
          This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getTaxCategoryId()
          This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTaxCategoryIdInEJBType()
          This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_nSubOrderId(java.lang.String aInitKey_nSubOrderId)
          Set the primary key for this object
 void setInitKey_nTaxCategoryId(java.lang.String aInitKey_nTaxCategoryId)
          Set the primary key for this object
 void setSubOrderId(java.lang.Long aSubOrderId)
          This method provides access to the SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setSubOrderId(java.lang.String aSubOrderId)
          This method provides access to the SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.
 void setTaxAmount(java.math.BigDecimal aTaxAmount)
          This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxAmount(java.lang.String aTaxAmount)
          This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxCategoryId(java.lang.Integer aTaxCategoryId)
          This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void setTaxCategoryId(java.lang.String aTaxCategoryId)
          This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT 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

SubOrderTaxAccessBean

public SubOrderTaxAccessBean()

Default constructor. Maps to findByPrimaryKey.


SubOrderTaxAccessBean

public SubOrderTaxAccessBean(javax.ejb.EJBObject ejbObject)
                      throws java.rmi.RemoteException

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

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

SubOrderTaxAccessBean

public SubOrderTaxAccessBean(java.lang.Long aOrderTaxAccessBean,
                             java.math.BigDecimal aOrderTaxAccessBean,
                             java.lang.Integer aOrderTaxAccessBean)
                      throws javax.ejb.CreateException,
                             java.rmi.RemoteException,
                             javax.naming.NamingException

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

Parameters:
aOrderTaxAccessBean - java.lang.Long
aOrderTaxAccessBean - java.math.BigDecimal
aOrderTaxAccessBean - java.lang.Integer
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 subOrderId)
                                     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 = ?)

Parameters:
subOrderId - The ID of the suborder.
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 - 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 SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The SubOrder.

Specified by:
getSubOrderId in interface SubOrderTaxAccessBeanData
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 SUBORDTAX.SUBORDER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The SubOrder.

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

getTaxAmount

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

This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The tax amount in the Currency of the SubOrder (see SUBORDERS.CURRENCY for details).

Specified by:
getTaxAmount in interface SubOrderTaxAccessBeanData
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

getTaxAmountInEJBType

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

This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The tax amount in the Currency of the SubOrder (see SUBORDERS.CURRENCY for details).

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

getTaxCategoryId

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

This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Specified by:
getTaxCategoryId in interface SubOrderTaxAccessBeanData
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

getTaxCategoryIdInEJBType

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

This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Returns:
java.lang.Integer
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_nSubOrderId

public void setInitKey_nSubOrderId(java.lang.String aInitKey_nSubOrderId)

Set the primary key for this object

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

setInitKey_nTaxCategoryId

public void setInitKey_nTaxCategoryId(java.lang.String aInitKey_nTaxCategoryId)

Set the primary key for this object

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

setSubOrderId

public void setSubOrderId(java.lang.Long aSubOrderId)

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

The following is a description of this column:

The SubOrder.

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

setSubOrderId

public void setSubOrderId(java.lang.String aSubOrderId)

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

The following is a description of this column:

The SubOrder.

Specified by:
setSubOrderId in interface SubOrderTaxAccessBeanData
Parameters:
aSubOrderId - java.lang.String
Returns:
void

setTaxAmount

public void setTaxAmount(java.math.BigDecimal aTaxAmount)

This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The tax amount in the Currency of the SubOrder (see SUBORDERS.CURRENCY for details).

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

setTaxAmount

public void setTaxAmount(java.lang.String aTaxAmount)

This method provides access to the SUBORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The tax amount in the Currency of the SubOrder (see SUBORDERS.CURRENCY for details).

Specified by:
setTaxAmount in interface SubOrderTaxAccessBeanData
Parameters:
aTaxAmount - java.lang.String
Returns:
void

setTaxCategoryId

public void setTaxCategoryId(java.lang.Integer aTaxCategoryId)

This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Parameters:
aTaxCategoryId - java.lang.Integer
Returns:
void

setTaxCategoryId

public void setTaxCategoryId(java.lang.String aTaxCategoryId)

This method provides access to the SUBORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Specified by:
setTaxCategoryId in interface SubOrderTaxAccessBeanData
Parameters:
aTaxCategoryId - java.lang.String
Returns:
void