com.ibm.commerce.taxation.objects
Class OrderTaxAccessBean

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

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

This bean provides access to the ORDTAX table.

The following is a description of this table:

Each row of this table represents the total of the tax amounts of a particular TaxCategory for all the OrderItems in an Order.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderTaxAccessBean()
          Default constructor.
OrderTaxAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderTaxAccessBean(java.lang.Long aOrderId, java.math.BigDecimal aTaxAmount, java.lang.Integer aTaxCategoryId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
OrderTaxAccessBean(java.lang.Long aOrderId, java.math.BigDecimal aTaxAmount, java.lang.Integer aTaxCategoryId, java.sql.Timestamp aLastUpdateTime)
          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 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 provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getLastUpdateInEJBType()
          This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getOrdersId()
          This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrdersIdInEJBType()
          This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTaxAmount()
          This method provides access to the ORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getTaxAmountInEJBType()
          This method provides access to the ORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getTaxCategoryId()
          This method provides access to the ORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTaxCategoryIdInEJBType()
          This method provides access to the ORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_nOrdersId(java.lang.String aInitKey_nOrdersId)
          Set the primary key for this object
 void setInitKey_nTaxCategoryId(java.lang.String aInitKey_nTaxCategoryId)
          Set the primary key for this object
 void setLastUpdate(java.lang.String aLastUpdate)
          This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastUpdate(java.sql.Timestamp aLastUpdate)
          This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setOrdersId(java.lang.Long aOrdersId)
          This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrdersId(java.lang.String aOrdersId)
          This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setTaxAmount(java.math.BigDecimal aTaxAmount)
          This method provides access to the ORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxAmount(java.lang.String aTaxAmount)
          This method provides access to the ORDTAX.TAXAMOUNT column of DB2 type DECIMAL(20,5) NOT NULL.
 void setTaxCategoryId(java.lang.Integer aTaxCategoryId)
          This method provides access to the ORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void setTaxCategoryId(java.lang.String aTaxCategoryId)
          This method provides access to the ORDTAX.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

OrderTaxAccessBean

public OrderTaxAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderTaxAccessBean

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

OrderTaxAccessBean

public OrderTaxAccessBean(java.lang.Long aOrderId,
                          java.math.BigDecimal aTaxAmount,
                          java.lang.Integer aTaxCategoryId)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.naming.NamingException

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

Parameters:
aOrderId - The ID of the order.
aTaxAmount - The tax amount in the currency of the order.
aTaxCategoryId - 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 aOrderId,
                          java.math.BigDecimal aTaxAmount,
                          java.lang.Integer aTaxCategoryId,
                          java.sql.Timestamp aLastUpdateTime)
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException,
                          javax.naming.NamingException

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

Parameters:
aOrderId - The ID of the order.
aTaxAmount - The tax amount in the currency of the order.
aTaxCategoryId - The ID of the Tax category.
aLastUpdateTime - 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

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

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.

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.

getLastUpdate

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

This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this information was most recently updated.

Specified by:
getLastUpdate in interface OrderTaxAccessBeanData
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

getLastUpdateInEJBType

public java.sql.Timestamp getLastUpdateInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this information was most recently updated.

Returns:
java.sql.Timestamp
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

getOrdersId

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

This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Specified by:
getOrdersId in interface OrderTaxAccessBeanData
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

getOrdersIdInEJBType

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

This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

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 ORDTAX.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 Order (ORDERS.CURRENCY).

Specified by:
getTaxAmount in interface OrderTaxAccessBeanData
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 ORDTAX.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 Order (ORDERS.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 ORDTAX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The TaxCategory.

Specified by:
getTaxCategoryId in interface OrderTaxAccessBeanData
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 ORDTAX.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_nOrdersId

public void setInitKey_nOrdersId(java.lang.String aInitKey_nOrdersId)

Set the primary key for this object

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

setLastUpdate

public void setLastUpdate(java.lang.String aLastUpdate)

This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this information was most recently updated.

Specified by:
setLastUpdate in interface OrderTaxAccessBeanData
Parameters:
aLastUpdate - java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.sql.Timestamp aLastUpdate)

This method provides access to the ORDTAX.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time this information was most recently updated.

Parameters:
aLastUpdate - java.sql.Timestamp
Returns:
void

setOrdersId

public void setOrdersId(java.lang.Long aOrdersId)

This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

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

setOrdersId

public void setOrdersId(java.lang.String aOrdersId)

This method provides access to the ORDTAX.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Specified by:
setOrdersId in interface OrderTaxAccessBeanData
Parameters:
aOrdersId - java.lang.String
Returns:
void

setTaxAmount

public void setTaxAmount(java.math.BigDecimal aTaxAmount)

This method provides access to the ORDTAX.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 Order (ORDERS.CURRENCY).

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

setTaxAmount

public void setTaxAmount(java.lang.String aTaxAmount)

This method provides access to the ORDTAX.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 Order (ORDERS.CURRENCY).

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

setTaxCategoryId

public void setTaxCategoryId(java.lang.Integer aTaxCategoryId)

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

The following is a description of this column:

The TaxCategory.

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