com.ibm.commerce.taxation.objects
Class OrderItemTaxAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.taxation.objects.OrderItemTaxAccessBean
All Implemented Interfaces:
OrderItemTaxAccessBeanData

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

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. This access bean corresponds to the database table 'ORDITAX'.

See Also:
Serialized Form

Constructor Summary
OrderItemTaxAccessBean()
Zero argument constructor used to initialize the access bean.
OrderItemTaxAccessBean(javax.ejb.EJBObject o)
constructor
OrderItemTaxAccessBean(java.lang.Long orderItemsId, java.lang.Integer taxCategoryId, java.math.BigDecimal taxAmount)
Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderItemTaxAccessBean(java.lang.Long orderItemsId, java.lang.Integer taxCategoryId, java.lang.String taxAmount)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrderItem(java.lang.Long orderItemId)
Retrieves all the tax information for the indicated orderitem.
java.util.Enumeration findByOrderItemAndTaxCategory(java.lang.Long orderItemId, java.lang.String taxCategoryId)
Retrieves all the tax information for the indicated orderitem and tax category.
java.lang.String getOrderItemsId()
This method accesses a non-CMP field
java.lang.Long getOrderItemsIdInEJBType()
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_nOrderItemsId(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 setOrderItemsId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderItemsId(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

OrderItemTaxAccessBean

public OrderItemTaxAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.taxation.objects.OrderItemTax com.ibm.commerce.taxation.objimpl.OrderItemTaxHomeBase.findByPrimaryKey(com.ibm.commerce.taxation.objects.OrderItemTaxKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_nOrderItemsId( java.lang.Long ) setInitKey_nTaxCategoryId( java.lang.Integer )

OrderItemTaxAccessBean

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

OrderItemTaxAccessBean

public OrderItemTaxAccessBean(java.lang.Long orderItemsId,
                              java.lang.Integer taxCategoryId,
                              java.lang.String taxAmount)
                       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:
orderItemsId - java.lang.Long
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 orderItemsId,
                              java.lang.Integer taxCategoryId,
                              java.math.BigDecimal taxAmount)
                       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:
orderItemsId - java.lang.Long
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

findByOrderItem

public java.util.Enumeration findByOrderItem(java.lang.Long orderItemId)
                                      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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByOrderItemAndTaxCategory

public java.util.Enumeration findByOrderItemAndTaxCategory(java.lang.Long orderItemId,
                                                           java.lang.String taxCategoryId)
                                                    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.
Returns:
Enumeration of all the OrderItemTaxAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_nOrderItemsId

public void setInitKey_nOrderItemsId(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 OrderItemTaxAccessBeanData
Throws:
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
Throws:
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 OrderItemTaxAccessBeanData

setTaxCategoryId

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

getOrderItemsId

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

getOrderItemsIdInEJBType

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

setOrderItemsId

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

setOrderItemsId

public void setOrderItemsId(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 OrderItemTaxAccessBeanData
Throws:
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
Throws:
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 OrderItemTaxAccessBeanData

setTaxAmount

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

Feedback