com.ibm.commerce.taxation.objects
Class OrderItemTaxAccessBean

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

public class OrderItemTaxAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderItemTaxAccessBeanData

This bean provides access to the ORDITAX table.

The following is a description of this table:

Each row of this table contains a tax amount of a particular TaxCategory, for an OrderItem. By default, WebSphere Commerce does not save any data in this table. However tax amounts are aggregated by TaxCategory in the SUBORDTAX and ORDTAX tables.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderItemTaxAccessBean()
          Default constructor.
OrderItemTaxAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderItemTaxAccessBean(java.lang.Long aErItemTaxAccessBean, java.lang.Integer aErItemTaxAccessBean, java.math.BigDecimal aErItemTaxAccessBean)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderItemTaxAccessBean(java.lang.Long aErItemTaxAccessBean, java.lang.Integer aErItemTaxAccessBean, java.lang.String aErItemTaxAccessBean)
          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 findByOrderItem(java.lang.Long aDByOrderItem)
          Retrieves all the tax information for the indicated orderitem.
 java.util.Enumeration findByOrderItemAndTaxCategory(java.lang.Long aDByOrderItemAndTaxCategory, java.lang.String aDByOrderItemAndTaxCategory)
          Retrieves all the tax information for the indicated orderitem and tax category.
 java.lang.String getOrderItemsId()
          This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderItemsIdInEJBType()
          This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTaxAmount()
          This method provides access to the ORDITAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getTaxAmountInEJBType()
          This method provides access to the ORDITAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getTaxCategoryId()
          This method provides access to the ORDITAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTaxCategoryIdInEJBType()
          This method provides access to the ORDITAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_nOrderItemsId(java.lang.String aInitKey_nOrderItemsId)
          Set the primary key for this object
 void setInitKey_nTaxCategoryId(java.lang.String aInitKey_nTaxCategoryId)
          Set the primary key for this object
 void setOrderItemsId(java.lang.Long aOrderItemsId)
          This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderItemsId(java.lang.String aOrderItemsId)
          This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.
 void setTaxAmount(java.math.BigDecimal aTaxAmount)
          This method provides access to the ORDITAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxAmount(java.lang.String aTaxAmount)
          This method provides access to the ORDITAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxCategoryId(java.lang.Integer aTaxCategoryId)
          This method provides access to the ORDITAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void setTaxCategoryId(java.lang.String aTaxCategoryId)
          This method provides access to the ORDITAX.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

OrderItemTaxAccessBean

public OrderItemTaxAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderItemTaxAccessBean

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

OrderItemTaxAccessBean

public OrderItemTaxAccessBean(java.lang.Long aErItemTaxAccessBean,
                              java.lang.Integer aErItemTaxAccessBean,
                              java.math.BigDecimal aErItemTaxAccessBean)
                       throws javax.naming.NamingException,
                              javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.ejb.FinderException

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

Parameters:
aErItemTaxAccessBean - java.lang.Long
aErItemTaxAccessBean - java.lang.Integer
aErItemTaxAccessBean - java.math.BigDecimal
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

OrderItemTaxAccessBean

public OrderItemTaxAccessBean(java.lang.Long aErItemTaxAccessBean,
                              java.lang.Integer aErItemTaxAccessBean,
                              java.lang.String aErItemTaxAccessBean)
                       throws javax.naming.NamingException,
                              javax.ejb.CreateException,
                              java.rmi.RemoteException,
                              javax.ejb.FinderException

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

Parameters:
aErItemTaxAccessBean - java.lang.Long
aErItemTaxAccessBean - java.lang.Integer
aErItemTaxAccessBean - java.lang.String
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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

findByOrderItem

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

Retrieves all the tax information for the indicated orderitem.

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

SELECT * FROM ORDITAX T1 WHERE T1.ORDERITEMS_ID = ?

Parameters:
orderItemId - The ID of the orderitem.
Returns:
Enumeration of all the OrderItemTaxAccessBeans representing rows that match the search criteria.

findByOrderItemAndTaxCategory

public java.util.Enumeration findByOrderItemAndTaxCategory(java.lang.Long aDByOrderItemAndTaxCategory,
                                                           java.lang.String aDByOrderItemAndTaxCategory)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Retrieves all the tax information for the indicated orderitem and tax category.

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

SELECT * FROM ORDITAX T1 WHERE (T1.ORDERITEMS_ID = ?) and (T1.TAXCGRY_ID = ?)

Parameters:
orderItemId - The ID of the orderitem.
taxCatetoryId - The ID of the tax category.
Returns:
Enumeration of all the OrderItemTaxAccessBeans representing rows that match the search criteria.

getOrderItemsId

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

This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

Specified by:
getOrderItemsId in interface OrderItemTaxAccessBeanData
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

getOrderItemsIdInEJBType

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

This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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 ORDITAX.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 OrderItem (ORDERITEMS.CURRENCY).

Specified by:
getTaxAmount in interface OrderItemTaxAccessBeanData
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 ORDITAX.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 OrderItem (ORDERITEMS.CURRENCY).

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 ORDITAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Specified by:
getTaxCategoryId in interface OrderItemTaxAccessBeanData
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 ORDITAX.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_nOrderItemsId

public void setInitKey_nOrderItemsId(java.lang.String aInitKey_nOrderItemsId)

Set the primary key for this object

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

setOrderItemsId

public void setOrderItemsId(java.lang.Long aOrderItemsId)

This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

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

setOrderItemsId

public void setOrderItemsId(java.lang.String aOrderItemsId)

This method provides access to the ORDITAX.ORDERITEMS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The OrderItem.

Specified by:
setOrderItemsId in interface OrderItemTaxAccessBeanData
Parameters:
aOrderItemsId - java.lang.String
Returns:
void

setTaxAmount

public void setTaxAmount(java.math.BigDecimal aTaxAmount)

This method provides access to the ORDITAX.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 OrderItem (ORDERITEMS.CURRENCY).

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

setTaxAmount

public void setTaxAmount(java.lang.String aTaxAmount)

This method provides access to the ORDITAX.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 OrderItem (ORDERITEMS.CURRENCY).

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

setTaxCategoryId

public void setTaxCategoryId(java.lang.Integer aTaxCategoryId)

This method provides access to the ORDITAX.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 ORDITAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

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