com.ibm.commerce.taxation.objects
Class OrderTaxAccessBean

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

public class OrderTaxAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderTaxAccessBeanData

Each row of this table represents the total of the tax amounts of a particular TaxCategory for all the OrderItems in an Order. This access bean corresponds to the database table 'ORDTAX'.

See Also:
Serialized Form

Constructor Summary
OrderTaxAccessBean()
Zero argument constructor used to initialize the access bean.
OrderTaxAccessBean(javax.ejb.EJBObject o)
constructor
OrderTaxAccessBean(java.lang.Long orderId, java.math.BigDecimal taxAmount, java.lang.Integer taxCategoryId)
Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderTaxAccessBean(java.lang.Long orderId, java.math.BigDecimal taxAmount, java.lang.Integer taxCategoryId, java.sql.Timestamp lastUpdate)
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 findByOrder(java.lang.Long orderId)
Retrieves all the tax information for the indicated order.
java.util.Enumeration findByOrderForUpdate(java.lang.Long orderId)
Retrieves all the tax information for the indicated order.
java.lang.String getLastUpdate()
This method accesses a non-CMP field
java.sql.Timestamp getLastUpdateInEJBType()
This method accesses a non-CMP field
java.lang.String getOrdersId()
This method accesses a non-CMP field
java.lang.Long getOrdersIdInEJBType()
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_nOrdersId(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 setLastUpdate(java.lang.String newValue)
This method accesses a non-CMP field
void setLastUpdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setOrdersId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrdersId(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

OrderTaxAccessBean

public OrderTaxAccessBean()
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.OrderTax com.ibm.commerce.taxation.objimpl.OrderTaxHomeBase.findByPrimaryKey(com.ibm.commerce.taxation.objects.OrderTaxKey) 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_nOrdersId( java.lang.Long ) setInitKey_nTaxCategoryId( java.lang.Integer )

OrderTaxAccessBean

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

OrderTaxAccessBean

public OrderTaxAccessBean(java.lang.Long orderId,
                          java.math.BigDecimal taxAmount,
                          java.lang.Integer taxCategoryId)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.naming.NamingException

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

Parameters:
orderId - The ID of the order.
taxAmount - The tax amount in the currency of the order.
taxCategoryId - The ID of the Tax category.
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

OrderTaxAccessBean

public OrderTaxAccessBean(java.lang.Long orderId,
                          java.math.BigDecimal taxAmount,
                          java.lang.Integer taxCategoryId,
                          java.sql.Timestamp lastUpdate)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.naming.NamingException

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

Parameters:
orderId - The ID of the order.
taxAmount - The tax amount in the currency of the order.
taxCategoryId - The ID of the Tax category.
lastUpdate - The time of the last update.
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

findByOrder

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

Retrieves all the tax information for the indicated order.

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

SELECT * FROM ORDTAX T1 WHERE (T1.ORDERS_ID = ?)

Parameters:
orderId - The ID of the order.
Returns:
Enumeration of all the OrderTaxAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByOrderForUpdate

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

Retrieves all the tax information for the indicated order.

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

SELECT * FROM ORDTAX T1 WHERE (T1.ORDERS_ID = ?) for update

Parameters:
orderId - The ID of the order.
Returns:
Enumeration of all the OrderTaxAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_nOrdersId

public void setInitKey_nOrdersId(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 OrderTaxAccessBeanData
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 OrderTaxAccessBeanData

setTaxCategoryId

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

getLastUpdate

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

getLastUpdateInEJBType

public java.sql.Timestamp getLastUpdateInEJBType()
                                          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

setLastUpdate

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

setLastUpdate

public void setLastUpdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getOrdersId

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

getOrdersIdInEJBType

public java.lang.Long getOrdersIdInEJBType()
                                    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

setOrdersId

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

setOrdersId

public void setOrdersId(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 OrderTaxAccessBeanData
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 OrderTaxAccessBeanData

setTaxAmount

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

Feedback