com.ibm.commerce.fulfillment.objects
Class CalculationRuleScaleRelationshipAccessBean

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

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

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. This access bean corresponds to the database table 'CRULESCALE'.

See Also:
Serialized Form

Constructor Summary
CalculationRuleScaleRelationshipAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationRuleScaleRelationshipAccessBean(java.lang.Integer arg1, java.lang.Integer arg2)
Creates an access bean with the specified attributes.
CalculationRuleScaleRelationshipAccessBean(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 findByCalculationRule(java.lang.Integer ruleId)
Retrieves the CalculationRuleScaleRelationshipAccessBeans that match the specified CalculationRule.
java.util.Enumeration findByCalculationScale(java.lang.Integer scaleId)
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_calculationRuleId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_calculationScaleId(java.lang.String newValue)
Set the primary key for this object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CalculationRuleScaleRelationshipAccessBean

public CalculationRuleScaleRelationshipAccessBean()
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.CalculationRuleScaleRelationship com.ibm.commerce.fulfillment.objimpl.CalculationRuleScaleRelationshipHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationRuleScaleRelationshipKey) 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_calculationRuleId( java.lang.Integer ) setInitKey_calculationScaleId( java.lang.Integer )

CalculationRuleScaleRelationshipAccessBean

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

CalculationRuleScaleRelationshipAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
arg1 - the CalculationScale ID
arg2 - 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

findByCalculationRule

public java.util.Enumeration findByCalculationRule(java.lang.Integer ruleId)
                                            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:
ruleId - 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

findByCalculationScale

public java.util.Enumeration findByCalculationScale(java.lang.Integer scaleId)
                                             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:
scaleId - 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

setInitKey_calculationRuleId

public void setInitKey_calculationRuleId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_calculationScaleId

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

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

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

Feedback