com.ibm.commerce.taxation.objects
Class CalculationCodeTaxExemptAccessBean

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

public class CalculationCodeTaxExemptAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationCodeTaxExemptAccessBeanData

This bean provides access to the CALCODTXEX table.

The following is a description of this table:

Each row of this table indicates that monetary amounts calculated using a particular CalculationCode are exempt from taxation of a particular TaxCategory.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationCodeTaxExemptAccessBean()
          Default constructor.
CalculationCodeTaxExemptAccessBean(javax.ejb.EJBObject ejbObject)
          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 findByCalculationCode(java.lang.Integer calculationCodeId)
          Retrieves all the tax categories from which calculated amounts are tax exempt when the indicated calculation code is being used.
 java.lang.String getCalculationCodeId()
          This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationCodeIdInEJBType()
          This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getTaxCategoryId()
          This method provides access to the CALCODTXEX.TAXCGRY_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationCodeId(java.lang.String aCalculationCodeId)
          This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setInitKey_nCalculationCodeId(java.lang.String aInitKey_nCalculationCodeId)
          Set the primary key for this object
 void setInitKey_strTaxCategoryId(java.lang.String aInitKey_strTaxCategoryId)
          Set the primary key for this object
 void setTaxCategoryId(java.lang.String aTaxCategoryId)
          This method provides access to the CALCODTXEX.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

CalculationCodeTaxExemptAccessBean

public CalculationCodeTaxExemptAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationCodeTaxExemptAccessBean

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

findByCalculationCode

public java.util.Enumeration findByCalculationCode(java.lang.Integer calculationCodeId)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Retrieves all the tax categories from which calculated amounts are tax exempt when the indicated calculation code is being used.

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

SELECT * FROM CALCODTXEX T1 WHERE T1.CALCODE_ID = ?

Parameters:
calculationCodeId - java.lang.Integer
Returns:
Enumeration of all the CalculationCodeTaxExemptAccessBeans 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

getCalculationCodeId

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

This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode whose calculated monetary amounts are tax exempt.

Specified by:
getCalculationCodeId in interface CalculationCodeTaxExemptAccessBeanData
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

getCalculationCodeIdInEJBType

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

This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode whose calculated monetary amounts are tax exempt.

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

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

The following is a description of this column:

The TaxCategory from which calculated amounts are tax exempt.

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

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode whose calculated monetary amounts are tax exempt.

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.String aCalculationCodeId)

This method provides access to the CALCODTXEX.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode whose calculated monetary amounts are tax exempt.

Specified by:
setCalculationCodeId in interface CalculationCodeTaxExemptAccessBeanData
Parameters:
aCalculationCodeId - java.lang.String
Returns:
void

setInitKey_nCalculationCodeId

public void setInitKey_nCalculationCodeId(java.lang.String aInitKey_nCalculationCodeId)

Set the primary key for this object

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

setInitKey_strTaxCategoryId

public void setInitKey_strTaxCategoryId(java.lang.String aInitKey_strTaxCategoryId)

Set the primary key for this object

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

setTaxCategoryId

public void setTaxCategoryId(java.lang.String aTaxCategoryId)

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

The following is a description of this column:

The TaxCategory from which calculated amounts are tax exempt.

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