com.ibm.commerce.taxation.objects
Class TaxJurisdictionGroupCalculationRuleAccessBean

java.lang.Object
  AbstractEntityAccessBean
      com.ibm.commerce.taxation.objects.TaxJurisdictionGroupCalculationRuleAccessBean
All Implemented Interfaces:
TaxJurisdictionGroupCalculationRuleAccessBeanData

public class TaxJurisdictionGroupCalculationRuleAccessBean
extends AbstractEntityAccessBean
implements TaxJurisdictionGroupCalculationRuleAccessBeanData

This table can be used by a tax CalculationRuleQualifyMethod to choose a CalculationRule when shipping from a FulfillmentCenter to a shipping address that matches one of the TaxJurisdictions in a particular TaxJurisdictionGroup. This access bean corresponds to the database table 'TAXJCRULE'. TaxJurisdictionGroupCalculationRuleAccessBean

See Also:
Serialized Form

Constructor Summary
TaxJurisdictionGroupCalculationRuleAccessBean()
constructor
TaxJurisdictionGroupCalculationRuleAccessBean(java.lang.Integer arg0, java.lang.Integer arg1, java.lang.Integer arg2)
TaxJurisdictionGroupCalculationRuleAccessBean constructor
TaxJurisdictionGroupCalculationRuleAccessBean(javax.ejb.EJBObject o)
TaxJurisdictionGroupCalculationRuleAccessBean constructor
Method Summary
void commitCopyHelper()
commitCopyHelper
java.lang.String defaultJNDIName()
defaultJNDIName
java.util.Enumeration findByFulfillmentCenterAndJurisdictionSortedByPrecedence(java.lang.Integer fulfillmentCenterId, java.lang.Integer jurisdictionId)
Retrieves all the tax categories for the indicated store and tax type for display.
java.util.Enumeration findByFulfillmentCentreJurisdictionGroupWithHighestPrecedence(java.lang.Integer fulfillmentCenterId, java.lang.Integer jurisdictionGroupId)
Retrieves all the tax categories for the indicated store and tax type for display.
java.lang.String getCalculationRuleId()
getCalculationRuleId
java.lang.Integer getCalculationRuleIdInEJBType()
This method accesses a non-CMP field
java.lang.String getFulfillmentCenterId()
This method accesses a non-CMP field
java.lang.Integer getFulfillmentCenterIdInEJBType()
This method accesses a non-CMP field
java.lang.String getJurisdictionGroupId()
This method accesses a non-CMP field
java.lang.Integer getJurisdictionGroupIdInEJBType()
This method accesses a non-CMP field
java.lang.String getPrecedence()
This method accesses a non-CMP field
java.lang.Double getPrecedenceInEJBType()
This method accesses a non-CMP field
java.lang.String getTaxJCRuleId()
This method accesses a non-CMP field
java.lang.Integer getTaxJCRuleIdInEJBType()
This method accesses a non-CMP field
protected void instantiateEJB()
instantiateEJB
protected boolean instantiateEJBByPrimaryKey()
instantiateEJBByPrimaryKey
void refreshCopyHelper()
refreshCopyHelper
void setCalculationRuleId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationRuleId(java.lang.String newValue)
This method accesses a non-CMP field
void setFulfillmentCenterId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setFulfillmentCenterId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_nCalculationRuleId(java.lang.String newValue)
setInitKey_nCalculationRuleId
void setInitKey_nFulfillmentCenterId(java.lang.String newValue)
setInitKey_nFulfillmentCenterId
void setInitKey_nJurisdictionGroupId(java.lang.String newValue)
setInitKey_nJurisdictionGroupId
void setJurisdictionGroupId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setJurisdictionGroupId(java.lang.String newValue)
This method accesses a non-CMP field
void setPrecedence(java.lang.Double newValue)
This method accesses a non-CMP field
void setPrecedence(java.lang.String newValue)
This method accesses a non-CMP field
void setTaxJCRuleId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTaxJCRuleId(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

TaxJurisdictionGroupCalculationRuleAccessBean

public TaxJurisdictionGroupCalculationRuleAccessBean()
constructor

TaxJurisdictionGroupCalculationRuleAccessBean

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

TaxJurisdictionGroupCalculationRuleAccessBean

public TaxJurisdictionGroupCalculationRuleAccessBean(java.lang.Integer arg0,
                                                     java.lang.Integer arg1,
                                                     java.lang.Integer arg2)
                                              throws javax.naming.NamingException,
                                                     javax.ejb.CreateException,
                                                     java.rmi.RemoteException
TaxJurisdictionGroupCalculationRuleAccessBean constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.lang.Integer
arg2 - java.lang.Integer
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
Method Detail

getCalculationRuleId

public java.lang.String getCalculationRuleId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException
getCalculationRuleId
Specified by:
getCalculationRuleId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCalculationRuleId

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

getFulfillmentCenterId

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

setFulfillmentCenterId

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

getJurisdictionGroupId

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

setJurisdictionGroupId

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

getPrecedence

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

setPrecedence

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

getTaxJCRuleId

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

setTaxJCRuleId

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

defaultJNDIName

public java.lang.String defaultJNDIName()
defaultJNDIName
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws javax.naming.NamingException,
                              javax.ejb.FinderException,
                              java.rmi.RemoteException
instantiateEJB
Returns:
void
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws javax.ejb.CreateException,
                                             java.rmi.RemoteException,
                                             javax.naming.NamingException
instantiateEJBByPrimaryKey
Returns:
boolean
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
refreshCopyHelper

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException
commitCopyHelper

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

findByFulfillmentCentreJurisdictionGroupWithHighestPrecedence

public java.util.Enumeration findByFulfillmentCentreJurisdictionGroupWithHighestPrecedence(java.lang.Integer fulfillmentCenterId,
                                                                                           java.lang.Integer jurisdictionGroupId)
                                                                                    throws javax.naming.NamingException,
                                                                                           javax.ejb.FinderException,
                                                                                           java.rmi.RemoteException

Retrieves all the tax categories for the indicated store and tax type for display.

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

SELECT * FROM TAXJCRULE T1 WHERE (T1.FFMCENTER_ID = ?) and (T1.JURSTGROUP_ID = ?) and (T1.PRECEDENCE )

Parameters:
fulfillmentCenterId - The ID of the fulfillment center.
jurisdictionGroupId - The ID of the jurisdiction group.
Returns:
Enumeration of all the TaxJurisdictionGroupCalculationRuleAccessBeans 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

findByFulfillmentCenterAndJurisdictionSortedByPrecedence

public java.util.Enumeration findByFulfillmentCenterAndJurisdictionSortedByPrecedence(java.lang.Integer fulfillmentCenterId,
                                                                                      java.lang.Integer jurisdictionId)
                                                                               throws javax.naming.NamingException,
                                                                                      javax.ejb.FinderException,
                                                                                      java.rmi.RemoteException

Retrieves all the tax categories for the indicated store and tax type for display.

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

SELECT * FROM TAXJCRULE T1 WHERE (FFMCENTER_ID IS NULL OR FFMCENTER_ID = ?) and (JURSTGROUP_ID IS NULL OR JURSTGROUP_ID in (select JURSTGROUP_ID from JURSTGPREL where JURST_ID = ?)) order by PRECEDENCE desc

Parameters:
fulfillmentCenterId - The ID of the fulfillment center.
jurisdictionId - The ID of the jurisdiction group.
Returns:
Enumeration of all the TaxJurisdictionGroupCalculationRuleAccessBeans 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

getCalculationRuleIdInEJBType

public java.lang.Integer getCalculationRuleIdInEJBType()
                                                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

setCalculationRuleId

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

getFulfillmentCenterIdInEJBType

public java.lang.Integer getFulfillmentCenterIdInEJBType()
                                                  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

setFulfillmentCenterId

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

getJurisdictionGroupIdInEJBType

public java.lang.Integer getJurisdictionGroupIdInEJBType()
                                                  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

setJurisdictionGroupId

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

getPrecedenceInEJBType

public java.lang.Double getPrecedenceInEJBType()
                                        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

setPrecedence

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

getTaxJCRuleIdInEJBType

public java.lang.Integer getTaxJCRuleIdInEJBType()
                                          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

setTaxJCRuleId

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

setInitKey_nCalculationRuleId

public void setInitKey_nCalculationRuleId(java.lang.String newValue)
setInitKey_nCalculationRuleId

Set the primary key for this object

Parameters:
newValue - String
Returns:
void

setInitKey_nFulfillmentCenterId

public void setInitKey_nFulfillmentCenterId(java.lang.String newValue)
setInitKey_nFulfillmentCenterId

Set the primary key for this object

Parameters:
newValue - String
Returns:
void

setInitKey_nJurisdictionGroupId

public void setInitKey_nJurisdictionGroupId(java.lang.String newValue)
setInitKey_nJurisdictionGroupId

Set the primary key for this object

Parameters:
newValue - String
Returns:
void

Feedback