com.ibm.commerce.taxation.objects
Class TaxJurisdictionGroupCalculationRuleAccessBean

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

public class TaxJurisdictionGroupCalculationRuleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TaxJurisdictionGroupCalculationRuleAccessBeanData

This bean provides access to the TAXJCRULE table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
TaxJurisdictionGroupCalculationRuleAccessBean()
          Default constructor.
TaxJurisdictionGroupCalculationRuleAccessBean(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 findByFulfillmentCenterAndJurisdictionSortedByPrecedence(java.lang.Integer ffmcenterId, java.lang.Integer jurstGroupId)
          Retrieves all the tax categories for the indicated store and tax type for display.
 java.util.Enumeration findByFulfillmentCentreJurisdictionGroupWithHighestPrecedence(java.lang.Integer ffmcenterId, java.lang.Integer jurstGroupId)
          Retrieves all the tax categories for the indicated store and tax type for display.
 java.lang.String getCalculationRuleId()
          This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRuleIdInEJBType()
          This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getFulfillmentCenterId()
          This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getFulfillmentCenterIdInEJBType()
          This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.
 java.lang.String getJurisdictionGroupId()
          This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getJurisdictionGroupIdInEJBType()
          This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.
 java.lang.String getPrecedence()
          This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Double getPrecedenceInEJBType()
          This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationRuleId(java.lang.Integer aCalculationRuleId)
          This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationRuleId(java.lang.String aCalculationRuleId)
          This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
          This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.
 void setFulfillmentCenterId(java.lang.String aFulfillmentCenterId)
          This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.
 void setInitKey_nCalculationRuleId(java.lang.String aInitKey_nCalculationRuleId)
          Set the primary key for this object
 void setInitKey_nFulfillmentCenterId(java.lang.String aInitKey_nFulfillmentCenterId)
          Set the primary key for this object
 void setInitKey_nJurisdictionGroupId(java.lang.String aInitKey_nJurisdictionGroupId)
          Set the primary key for this object
 void setJurisdictionGroupId(java.lang.Integer aJurisdictionGroupId)
          This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.
 void setJurisdictionGroupId(java.lang.String aJurisdictionGroupId)
          This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.
 void setPrecedence(java.lang.Double aPrecedence)
          This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.
 void setPrecedence(java.lang.String aPrecedence)
          This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT 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

TaxJurisdictionGroupCalculationRuleAccessBean

public TaxJurisdictionGroupCalculationRuleAccessBean()

Default constructor. Maps to findByPrimaryKey.


TaxJurisdictionGroupCalculationRuleAccessBean

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

findByFulfillmentCenterAndJurisdictionSortedByPrecedence

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

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:
ffmcenterId - The ID of the fulfillment center.
jurstGroupId - 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 - The javax.naming.NamingException exception

findByFulfillmentCentreJurisdictionGroupWithHighestPrecedence

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

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:
ffmcenterId - The ID of the fulfillment center.
jurstGroupId - 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 - The javax.naming.NamingException exception

getCalculationRuleId

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

This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

Specified by:
getCalculationRuleId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
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

getCalculationRuleIdInEJBType

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

This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

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

getFulfillmentCenterId

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

This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The FulfillmentCenter. If this is NULL then this row applies to all FulfillmentCenters.

Specified by:
getFulfillmentCenterId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
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

getFulfillmentCenterIdInEJBType

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

This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The FulfillmentCenter. If this is NULL then this row applies to all FulfillmentCenters.

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

getJurisdictionGroupId

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

This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The TaxJurisdictionGroup. If this is NULL, then this row applies to all TaxJurisdictionGroups.

Specified by:
getJurisdictionGroupId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
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

getJurisdictionGroupIdInEJBType

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

This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The TaxJurisdictionGroup. If this is NULL, then this row applies to all TaxJurisdictionGroups.

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

getPrecedence

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

This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When a shipping address falls within more than one of the specified TaxJurisdictionGroups, for the same FulfillmentCenter, only the CalculationRule with the highest TAXJCRULE.PRECEDENCE value qualifies.

Specified by:
getPrecedence in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
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

getPrecedenceInEJBType

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

This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When a shipping address falls within more than one of the specified TaxJurisdictionGroups, for the same FulfillmentCenter, only the CalculationRule with the highest TAXJCRULE.PRECEDENCE value qualifies.

Returns:
java.lang.Double
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

setCalculationRuleId

public void setCalculationRuleId(java.lang.Integer aCalculationRuleId)

This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

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

setCalculationRuleId

public void setCalculationRuleId(java.lang.String aCalculationRuleId)

This method provides access to the TAXJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule.

Specified by:
setCalculationRuleId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
Parameters:
aCalculationRuleId - java.lang.String
Returns:
void

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)

This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The FulfillmentCenter. If this is NULL then this row applies to all FulfillmentCenters.

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

setFulfillmentCenterId

public void setFulfillmentCenterId(java.lang.String aFulfillmentCenterId)

This method provides access to the TAXJCRULE.FFMCENTER_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The FulfillmentCenter. If this is NULL then this row applies to all FulfillmentCenters.

Specified by:
setFulfillmentCenterId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
Parameters:
aFulfillmentCenterId - java.lang.String
Returns:
void

setInitKey_nCalculationRuleId

public void setInitKey_nCalculationRuleId(java.lang.String aInitKey_nCalculationRuleId)

Set the primary key for this object

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

setInitKey_nFulfillmentCenterId

public void setInitKey_nFulfillmentCenterId(java.lang.String aInitKey_nFulfillmentCenterId)

Set the primary key for this object

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

setInitKey_nJurisdictionGroupId

public void setInitKey_nJurisdictionGroupId(java.lang.String aInitKey_nJurisdictionGroupId)

Set the primary key for this object

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

setJurisdictionGroupId

public void setJurisdictionGroupId(java.lang.Integer aJurisdictionGroupId)

This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The TaxJurisdictionGroup. If this is NULL, then this row applies to all TaxJurisdictionGroups.

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

setJurisdictionGroupId

public void setJurisdictionGroupId(java.lang.String aJurisdictionGroupId)

This method provides access to the TAXJCRULE.JURSTGROUP_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

The TaxJurisdictionGroup. If this is NULL, then this row applies to all TaxJurisdictionGroups.

Specified by:
setJurisdictionGroupId in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
Parameters:
aJurisdictionGroupId - java.lang.String
Returns:
void

setPrecedence

public void setPrecedence(java.lang.Double aPrecedence)

This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When a shipping address falls within more than one of the specified TaxJurisdictionGroups, for the same FulfillmentCenter, only the CalculationRule with the highest TAXJCRULE.PRECEDENCE value qualifies.

Parameters:
aPrecedence - java.lang.Double
Returns:
void

setPrecedence

public void setPrecedence(java.lang.String aPrecedence)

This method provides access to the TAXJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When a shipping address falls within more than one of the specified TaxJurisdictionGroups, for the same FulfillmentCenter, only the CalculationRule with the highest TAXJCRULE.PRECEDENCE value qualifies.

Specified by:
setPrecedence in interface TaxJurisdictionGroupCalculationRuleAccessBeanData
Parameters:
aPrecedence - java.lang.String
Returns:
void