com.ibm.commerce.fulfillment.objects
Class ShippingJurisdictionGroupCalculationRuleAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.fulfillment.objects.ShippingJurisdictionGroupCalculationRuleAccessBean
All Implemented Interfaces:
ShippingJurisdictionGroupCalculationRuleAccessBeanData

public class ShippingJurisdictionGroupCalculationRuleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ShippingJurisdictionGroupCalculationRuleAccessBeanData

This table can be used by the shipping CalculationRuleQualifyMethod to choose a CalculationRule based on ShippingMode and FulfillmentCenter when the shipping address matches one of the ShippingJurisdictions in a particular ShippingJurisdictionGroup. This access bean corresponds to the database table 'SHPJCRULE'.

See Also:
Serialized Form

Constructor Summary
ShippingJurisdictionGroupCalculationRuleAccessBean()
Zero argument constructor used to initialize the access bean.
ShippingJurisdictionGroupCalculationRuleAccessBean(java.lang.Integer aCalculationRuleId, java.lang.Integer aJurisdictionGroupId, java.lang.Integer aFulfillmentCenterId, java.lang.Integer aShipModeId)
ejbCreate method for a CMP entity bean
ShippingJurisdictionGroupCalculationRuleAccessBean(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 findByCalculationRuleId(java.lang.Integer calculationRuleId)
java.util.Enumeration findByFulfillmentCenterShipModeAndJurisdiction(java.lang.Integer fulfillmentCenterId, java.lang.Integer shipModeId, java.lang.Integer jurisdictionId)
Retrieves the ShippingJurisdictionGroupCalculationRuleAccessBeans that match the specified FulfillmentCenter, ShippingMode and Jurisdiction.
java.util.Enumeration findByShippingArrangementJurisdictionAndCalculationRule(java.lang.Integer shipArrangementId, java.lang.Integer jurisdictionId, java.lang.Integer calculationRuleId)
Retrieves the ShippingJurisdictionGroupCalculationRuleAccessBeans that match the specified ShippingArrangement, Jurisdiction and CalculationRule.
java.lang.String getCalculationRuleId()
This method provides access to the SHPJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationRuleIdInEJBType()
This method provides access to the SHPJCRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getFulfillmentCenterId()
This method provides access to the SHPJCRULE.FFMCENTER_ID column of DB2 type INTEGER.
java.lang.Integer getFulfillmentCenterIdInEJBType()
This method provides access to the SHPJCRULE.FFMCENTER_ID column of DB2 type INTEGER.
java.lang.String getJurisdictionGroupId()
This method provides access to the SHPJCRULE.JURSTGROUP_ID column of DB2 type INTEGER.
java.lang.Integer getJurisdictionGroupIdInEJBType()
This method provides access to the SHPJCRULE.JURSTGROUP_ID column of DB2 type INTEGER.
java.lang.String getPrecedence()
This method provides access to the SHPJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getPrecedenceInEJBType()
This method provides access to the SHPJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.String getShipModeId()
This method provides access to the SHPJCRULE.SHIPMODE_ID column of DB2 type INTEGER.
java.lang.Integer getShipModeIdInEJBType()
This method provides access to the SHPJCRULE.SHIPMODE_ID column of DB2 type INTEGER.
java.lang.String getShippingJurisdictionGroupCalculationRuleId()
This method provides access to the SHPJCRULE.SHPJCRULE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getShippingJurisdictionGroupCalculationRuleIdInEJBType()
This method provides access to the SHPJCRULE.SHPJCRULE_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
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_shippingJurisdictionGroupCalculationRuleId(java.lang.String newValue)
Set the primary key for this object
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 setShipModeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setShipModeId(java.lang.String newValue)
This method accesses a non-CMP field
void setShippingJurisdictionGroupCalculationRuleId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setShippingJurisdictionGroupCalculationRuleId(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

ShippingJurisdictionGroupCalculationRuleAccessBean

public ShippingJurisdictionGroupCalculationRuleAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.fulfillment.objects.ShippingJurisdictionGroupCalculationRule com.ibm.commerce.fulfillment.objimpl.ShippingJurisdictionGroupCalculationRuleHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.ShippingJurisdictionGroupCalculationRuleKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_shippingJurisdictionGroupCalculationRuleId( java.lang.Integer )

ShippingJurisdictionGroupCalculationRuleAccessBean

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

ShippingJurisdictionGroupCalculationRuleAccessBean

public ShippingJurisdictionGroupCalculationRuleAccessBean(java.lang.Integer aCalculationRuleId,
                                                          java.lang.Integer aJurisdictionGroupId,
                                                          java.lang.Integer aFulfillmentCenterId,
                                                          java.lang.Integer aShipModeId)
                                                   throws javax.naming.NamingException,
                                                          javax.ejb.FinderException,
                                                          javax.ejb.CreateException,
                                                          java.rmi.RemoteException
ejbCreate method for a CMP entity bean
Throws:
javax.ejb.CreateException - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findByFulfillmentCenterShipModeAndJurisdiction

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

Retrieves the ShippingJurisdictionGroupCalculationRuleAccessBeans that match the specified FulfillmentCenter, ShippingMode and Jurisdiction.

The SQL query used to fetch all the required rows from the SHPJCRULE table is: SELECT * FROM SHPJCRULE T1 WHERE (T1.FFMCENTER_ID = ? OR T1.FFMCENTER_ID IS NULL) AND (T1.SHIPMODE_ID = ? OR T1.SHIPMODE_ID IS NULL) AND (T1.JURSTGROUP_ID IS NULL OR T1.JURSTGROUP_ID IN (SELECT JURSTGPREL.JURSTGROUP_ID FROM JURSTGPREL WHERE JURSTGPREL.JURST_ID = ?)) ORDER BY T1.PRECEDENCE DESC

Parameters:
fulfillmentCenterId - the FulfillmentCenter ID
shipModeId - the ShippingMode ID
jurisdictionId - the Jurisdiction ID
Returns:
An Enumeration of all the ShippingJurisdictionGroupCalculationRuleAccessBeans 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

findByShippingArrangementJurisdictionAndCalculationRule

public java.util.Enumeration findByShippingArrangementJurisdictionAndCalculationRule(java.lang.Integer shipArrangementId,
                                                                                     java.lang.Integer jurisdictionId,
                                                                                     java.lang.Integer calculationRuleId)
                                                                              throws java.rmi.RemoteException,
                                                                                     javax.ejb.FinderException,
                                                                                     javax.naming.NamingException

Retrieves the ShippingJurisdictionGroupCalculationRuleAccessBeans that match the specified ShippingArrangement, Jurisdiction and CalculationRule. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the SHPJCRULE table is: SELECT * FROM SHPJCRULE T1 WHERE T1.SHPARRANGE_ID = ? AND T1.JURSTGROUP_ID IN (SELECT JURSTGPREL.JURSTGROUP_ID FROM JURSTGPREL WHERE JURSTGPREL.JURST_ID = ?) AND T1.CALRULE_ID = ?

Parameters:
shipArrangementId - the ShippingArrangement ID
jurisdictionId - the Jurisdiction ID
calculationRuleId - the CalculationRule ID
Returns:
An Enumeration of all the ShippingJurisdictionGroupCalculationRuleAccessBeans 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

findByCalculationRuleId

public java.util.Enumeration findByCalculationRuleId(java.lang.Integer calculationRuleId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
Parameters:
calculationRuleId - Integer
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_shippingJurisdictionGroupCalculationRuleId

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

getShipModeId

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

This method provides access to the SHPJCRULE.SHIPMODE_ID column of DB2 type INTEGER.

The following is a description of this column:

The ShippingMode.

Specified by:
getShipModeId in interface ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getShipModeIdInEJBType

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

This method provides access to the SHPJCRULE.SHIPMODE_ID column of DB2 type INTEGER.

The following is a description of this column:

The ShippingMode.

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

setShipModeId

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

setShipModeId

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

setCalculationRuleId

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

setCalculationRuleId

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

setJurisdictionGroupId

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

setJurisdictionGroupId

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

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 SHPJCRULE.JURSTGROUP_ID column of DB2 type INTEGER.

The following is a description of this column:

The ShippingJurisdictionGroup. If this is NULL, then this row applies to all ShippingJurisdictionGroups.

Specified by:
getJurisdictionGroupId in interface ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 SHPJCRULE.JURSTGROUP_ID column of DB2 type INTEGER.

The following is a description of this column:

The ShippingJurisdictionGroup. If this is NULL, then this row applies to all ShippingJurisdictionGroups.

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

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

The following is a description of this column:

The CalculationRule.

Specified by:
getCalculationRuleId in interface ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 SHPJCRULE.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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 SHPJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

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

Specified by:
getPrecedence in interface ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 SHPJCRULE.PRECEDENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

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

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

setPrecedence

public void setPrecedence(java.lang.Double 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 provides access to the SHPJCRULE.FFMCENTER_ID column of DB2 type INTEGER.

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 ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 SHPJCRULE.FFMCENTER_ID column of DB2 type INTEGER.

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

setFulfillmentCenterId

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

getShippingJurisdictionGroupCalculationRuleId

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

This method provides access to the SHPJCRULE.SHPJCRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getShippingJurisdictionGroupCalculationRuleId in interface ShippingJurisdictionGroupCalculationRuleAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getShippingJurisdictionGroupCalculationRuleIdInEJBType

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

This method provides access to the SHPJCRULE.SHPJCRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

setShippingJurisdictionGroupCalculationRuleId

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

setShippingJurisdictionGroupCalculationRuleId

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

Feedback