com.ibm.commerce.taxation.objects
Class CalculationCodeTaxExemptAccessBean

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

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

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

Constructor Summary
CalculationCodeTaxExemptAccessBean()
          constructor
CalculationCodeTaxExemptAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByCalculationCode(java.lang.Integer arg0)
          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 accesses a non-CMP field
 java.lang.Integer getCalculationCodeIdInEJBType()
          This method accesses a non-CMP field
 java.lang.String getTaxCategoryId()
          This method accesses a non-CMP field
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationCodeId(java.lang.Integer newValue)
          This method accesses a non-CMP field
 void setCalculationCodeId(java.lang.String newValue)
          This method accesses a non-CMP field
 void setInitKey_nCalculationCodeId(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_strTaxCategoryId(java.lang.String newValue)
          Set the primary key for this object
 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

CalculationCodeTaxExemptAccessBean

public CalculationCodeTaxExemptAccessBean()
constructor

CalculationCodeTaxExemptAccessBean

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

findByCalculationCode

public java.util.Enumeration findByCalculationCode(java.lang.Integer arg0)
                                            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 = ?

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

setInitKey_nCalculationCodeId

public void setInitKey_nCalculationCodeId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_strTaxCategoryId

public void setInitKey_strTaxCategoryId(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

getCalculationCodeId

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

getCalculationCodeIdInEJBType

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

setCalculationCodeId

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

setCalculationCodeId

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

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 CalculationCodeTaxExemptAccessBeanData
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 CalculationCodeTaxExemptAccessBeanData