com.ibm.commerce.fulfillment.objects
Class CalculationRuleScaleRelationshipAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.fulfillment.objects.CalculationRuleScaleRelationshipAccessBean
All Implemented Interfaces:
CalculationRuleScaleRelationshipAccessBeanData, java.io.Serializable

public class CalculationRuleScaleRelationshipAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationRuleScaleRelationshipAccessBeanData

This bean provides access to the CRULESCALE table.

The following is a description of this table:

Each row in this table shows that a CalculationRule is associated with a CalculationScale. Both are used by the Calculation Framework for discounts, shipping charges, taxes, and so on.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationRuleScaleRelationshipAccessBean()
          Default constructor.
CalculationRuleScaleRelationshipAccessBean(javax.ejb.EJBObject aCulationRuleScaleRelationshipAccessBean)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
CalculationRuleScaleRelationshipAccessBean(java.lang.Integer aCalculationScaleId, java.lang.Integer aCalculationRuleId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationRule(java.lang.Integer aCalculationRuleId)
          Retrieves the CalculationRuleScaleRelationshipAccessBeans that match the specified CalculationRule.
 java.util.Enumeration findByCalculationScale(java.lang.Integer aCalculationScaleId)
          Retrieves the CalculationRuleScaleRelationshipAccessBeans that match the specified CalculationScale.
 java.lang.String getCalculationRuleId()
          This method provides access to the CRULESCALE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationRuleIdInEJBType()
          This method provides access to the CRULESCALE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getCalculationScaleId()
          This method provides access to the CRULESCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCalculationScaleIdInEJBType()
          This method provides access to the CRULESCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_calculationRuleId(java.lang.String aInitKey_calculationRuleId)
          Set the primary key for this object
 void setInitKey_calculationScaleId(java.lang.String aInitKey_calculationScaleId)
          Set the primary key for this object
 
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

CalculationRuleScaleRelationshipAccessBean

public CalculationRuleScaleRelationshipAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationRuleScaleRelationshipAccessBean

public CalculationRuleScaleRelationshipAccessBean(javax.ejb.EJBObject aCulationRuleScaleRelationshipAccessBean)
                                           throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aCulationRuleScaleRelationshipAccessBean - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CalculationRuleScaleRelationshipAccessBean

public CalculationRuleScaleRelationshipAccessBean(java.lang.Integer aCalculationScaleId,
                                                  java.lang.Integer aCalculationRuleId)
                                           throws javax.ejb.CreateException,
                                                  java.rmi.RemoteException,
                                                  javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aCalculationScaleId - the CalculationScale ID
aCalculationRuleId - the CalculationRule ID
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException 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

findByCalculationRule

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

Retrieves the CalculationRuleScaleRelationshipAccessBeans that match the specified CalculationRule.

The SQL query used to fetch all the required rows from the CRULESCALE table is:
SELECT * FROM CRULESCALE T1 WHERE
T1.CALRULE_ID = ?

Parameters:
aCalculationRuleId - the CalculationRule ID
Returns:
An Enumeration of all the CalculationRuleScaleRelationshipAccessBeans 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

findByCalculationScale

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

Retrieves the CalculationRuleScaleRelationshipAccessBeans that match the specified CalculationScale.

The SQL query used to fetch all the required rows from the CRULESCALE table is:
SELECT * FROM CRULESCALE T1 WHERE
T1.CALSCALE_ID = ?

Parameters:
aCalculationScaleId - the CalculationScale ID
Returns:
An Enumeration of all the CalculationRuleScaleRelationshipAccessBeans 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 CRULESCALE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule for the calculation. CalclationRules are represented by rows in the CALRULE table.

Specified by:
getCalculationRuleId in interface CalculationRuleScaleRelationshipAccessBeanData
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 CRULESCALE.CALRULE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRule for the calculation. CalclationRules are represented by rows in the CALRULE table.

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

getCalculationScaleId

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

This method provides access to the CRULESCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationScale for the calculation. CalculationScales are represented by rows in the CALSCALE table.

Specified by:
getCalculationScaleId in interface CalculationRuleScaleRelationshipAccessBeanData
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

getCalculationScaleIdInEJBType

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

This method provides access to the CRULESCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationScale for the calculation. CalculationScales are represented by rows in the CALSCALE table.

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

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

setInitKey_calculationRuleId

public void setInitKey_calculationRuleId(java.lang.String aInitKey_calculationRuleId)

Set the primary key for this object

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

setInitKey_calculationScaleId

public void setInitKey_calculationScaleId(java.lang.String aInitKey_calculationScaleId)

Set the primary key for this object

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