com.ibm.commerce.fulfillment.objects
Class CalculationRuleAccessBean

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

public class CalculationRuleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationRuleAccessBeanData

Each row in this table represents a CalculationRule, defining how to arrive at a monetary amount for a set of OrderItems. This access bean corresponds to the database table 'CALRULE'.

See Also:
Serialized Form

Constructor Summary
CalculationRuleAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationRuleAccessBean(java.lang.Integer calculationCodeId, java.lang.Integer calculationMethodId, java.lang.Integer ruleQualifyMethodId)
Creates an access bean with the specified attributes.
CalculationRuleAccessBean(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 findByCalculationCode(java.lang.Integer calculationCodeId)
Retrieves the CalculationRuleAccessBeans of the specified CalculationCode.
java.util.Enumeration findByStoreSortedByEndDate(java.lang.Integer storeId)
Retrieves the CalculationRuleAccessBeans that match the specified Store.
java.util.Enumeration findByStoreSortedByStartDate(java.lang.Integer storeId)
Retrieves the CalculationRuleAccessBeans that match the specified Store.
java.util.Enumeration findEffectiveRulesByCalculationCodeSortByRuleSequence(java.lang.Integer calculationCodeId)
Retrieves the effective CalculationRuleAccessBeans of the specified CalculationCode, ordered by their sequence values.
java.lang.String getCalculationCodeId()
This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeIdInEJBType()
This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationMethodId()
This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationMethodIdInEJBType()
This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationRuleId()
This method provides access to the CALRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationRuleIdInEJBType()
This method provides access to the CALRULE.CALRULE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationRuleQualifyMethodId()
This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationRuleQualifyMethodIdInEJBType()
This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
java.lang.String getCombination()
This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL DEFAULT 2.
java.lang.Integer getCombinationInEJBType()
This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL DEFAULT 2.
java.lang.String getEndDate()
This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getEndDateInEJBType()
This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP.
java.lang.String getField1()
This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getField1InEJBType()
This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20 5).
java.lang.String getField2()
This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254).
java.lang.String getFlags()
This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getFlagsInEJBType()
This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getIdentifier()
This method accesses a non-CMP field
java.lang.Integer getIdentifierInEJBType()
This method accesses a non-CMP field
java.lang.String getSequence()
This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getSequenceInEJBType()
This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.String getStartDate()
This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getStartDateInEJBType()
This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP.
java.lang.String getTaxCategoryId()
This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER.
java.lang.Integer getTaxCategoryIdInEJBType()
This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationCodeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationMethodId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationMethodId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationRuleQualifyMethodId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationRuleQualifyMethodId(java.lang.String newValue)
This method accesses a non-CMP field
void setCombination(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCombination(java.lang.String newValue)
This method accesses a non-CMP field
void setEndDate(java.lang.String newValue)
This method accesses a non-CMP field
void setEndDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setField1(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setField1(java.lang.String newValue)
This method accesses a non-CMP field
void setField2(java.lang.String newValue)
This method accesses a non-CMP field
void setFlags(java.lang.Integer newValue)
This method accesses a non-CMP field
void setFlags(java.lang.String newValue)
This method accesses a non-CMP field
void setIdentifier(java.lang.Integer newValue)
This method accesses a non-CMP field
void setIdentifier(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationRuleId(java.lang.String newValue)
Set the primary key for this object
void setSequence(java.lang.Double newValue)
This method accesses a non-CMP field
void setSequence(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setTaxCategoryId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTaxCategoryId(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

CalculationRuleAccessBean

public CalculationRuleAccessBean()
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.CalculationRule com.ibm.commerce.fulfillment.objimpl.CalculationRuleHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationRuleKey) 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 )

CalculationRuleAccessBean

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

CalculationRuleAccessBean

public CalculationRuleAccessBean(java.lang.Integer calculationCodeId,
                                 java.lang.Integer calculationMethodId,
                                 java.lang.Integer ruleQualifyMethodId)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
calculationCodeId - the CalculationCode ID
calculationMethodId - the CalculationRuleCalculate CalculationMethod ID
ruleQualifyMethodId - the CalculationRuleQualify CalculationMethod 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
javax.ejb.FinderException
Method Detail

findByCalculationCode

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

Retrieves the CalculationRuleAccessBeans of the specified CalculationCode.

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

Parameters:
calculationCodeId - the CalculationCode ID
Returns:
An Enumeration of all the CalculationRuleAccessBeans 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

findByStoreSortedByEndDate

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

Retrieves the CalculationRuleAccessBeans that match the specified Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALRULE table is: SELECT * FROM CALRULE T1 WHERE T1.CALCODE_ID IN (SELECT CALCODE.CALCODE_ID FROM CALCODE WHERE CALCODE.STOREENT_ID = ?) ORDER BY T1.ENDDATE

Parameters:
storeId - the Store ID
Returns:
An Enumeration of all the CalculationRuleAccessBeans 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

findByStoreSortedByStartDate

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

Retrieves the CalculationRuleAccessBeans that match the specified Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALRULE table is: SELECT * FROM CALRULE T1 WHERE T1.CALCODE_ID IN (SELECT CALCODE.CALCODE_ID FROM CALCODE WHERE CALCODE.STOREENT_ID = ?) ORDER BY T1.STARTDATE

Parameters:
storeId - the Store ID
Returns:
An Enumeration of all the CalculationRuleAccessBeans 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

findEffectiveRulesByCalculationCodeSortByRuleSequence

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

Retrieves the effective CalculationRuleAccessBeans of the specified CalculationCode, ordered by their sequence values.

The SQL query used to fetch all the required rows from the CALRULE table is: SELECT * FROM CALRULE T1 WHERE T1.CALCODE_ID = ? AND (T1.STARTDATE <= CURRENT TIMESTAMP OR T1.ENDDATE IS NULL) AND (T1.ENDDATE >= CURRENT TIMESTAMP OR T1.ENDDATE IS NULL) ORDER BY T1.SEQUENCE

Parameters:
calculationCodeId - the CalculationCode ID
Returns:
An Enumeration of all the CalculationRuleAccessBeans 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

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

getCalculationCodeId

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

This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode of which this CalculationRule is a part.

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

getCalculationCodeIdInEJBType

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

This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode of which this CalculationRule is a part.

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

setCalculationCodeId

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

setCalculationCodeId

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

getTaxCategoryId

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

This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER.

The following is a description of this column:

For TaxType CalculationUsages, the TaxCategory for which this CalculationRule is effective.

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

getTaxCategoryIdInEJBType

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

This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER.

The following is a description of this column:

For TaxType CalculationUsages, the TaxCategory for which this CalculationRule is effective.

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

setTaxCategoryId

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

setTaxCategoryId

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

getIdentifier

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

getIdentifierInEJBType

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

setIdentifier

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

setIdentifier

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

getStartDate

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

This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationRule begins being effective.

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

getStartDateInEJBType

public java.sql.Timestamp getStartDateInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationRule begins being effective.

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

setStartDate

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

setStartDate

public void setStartDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getField2

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

This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

Specified by:
getField2 in interface CalculationRuleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setField2

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

getField1

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

This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getField1InEJBType

public java.math.BigDecimal getField1InEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

setField1

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

setField1

public void setField1(java.math.BigDecimal newValue)
This method accesses a non-CMP field

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

The following is a description of this column:

Generated unique identifier.

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

The following is a description of this column:

Generated unique identifier.

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

getCalculationRuleQualifyMethodId

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

This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleQualifyMethod that determines which of a set of OrderItems should be sent to the CalculationRuleCalculateMethod.

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

getCalculationRuleQualifyMethodIdInEJBType

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

This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleQualifyMethod that determines which of a set of OrderItems should be sent to the CalculationRuleCalculateMethod.

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

setCalculationRuleQualifyMethodId

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

setCalculationRuleQualifyMethodId

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

getCalculationMethodId

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

This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleCalculateMethod that calculates a monetary result for a set of OrderItems.

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

getCalculationMethodIdInEJBType

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

This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationRuleCalculateMethod that calculates a monetary result for a set of OrderItems.

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

setCalculationMethodId

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

setCalculationMethodId

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

getFlags

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

This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Contains the following bit flag indicating special processing to be performed by the default CalculationRuleCombineMethod implementation, where 1 = restricted - certain conditions must be met before the CalculationRule qualifies. Calls the CalculationRuleQualifyMethod to determine if the CalculationRule qualifies. If this flag is not 1, then the CalculationRule always qualifies.&l

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

getFlagsInEJBType

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

This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Contains the following bit flag indicating special processing to be performed by the default CalculationRuleCombineMethod implementation, where 1 = restricted - certain conditions must be met before the CalculationRule qualifies. Calls the CalculationRuleQualifyMethod to determine if the CalculationRule qualifies. If this flag is not 1, then the CalculationRule always qualifies.&l

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

setFlags

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

setFlags

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

getCombination

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

This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL DEFAULT 2.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Used by the default implementation of the CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules as follows:&l

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

getCombinationInEJBType

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

This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL DEFAULT 2.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Used by the default implementation of the CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules as follows:&l

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

setCombination

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

setCombination

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

getSequence

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

This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

CalculationRules for the same CalculationCode are processed in sequence from lowest to highest value.

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

getSequenceInEJBType

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

This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

CalculationRules for the same CalculationCode are processed in sequence from lowest to highest value.

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

setSequence

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

setSequence

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

getEndDate

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

This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationRule stops being effective.

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

getEndDateInEJBType

public java.sql.Timestamp getEndDateInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationRule stops being effective.

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

setEndDate

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

setEndDate

public void setEndDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

Feedback