com.ibm.commerce.fulfillment.objects
Class CalculationRuleAccessBean

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

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

This bean provides access to the CALRULE table.

The following is a description of this table:

Each row in this table represents a CalculationRule, defining how to arrive at a monetary amount for a set of OrderItems.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationRuleAccessBean()
          Default constructor.
CalculationRuleAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationRuleAccessBean(java.lang.Integer aCalculationCodeId, java.lang.Integer aCalculateMethodId, java.lang.Integer aQualifyMethodId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationCode(java.lang.Integer aCalculationCodeId)
          Retrieves the CalculationRuleAccessBeans of the specified CalculationCode.
 java.util.Enumeration findByStoreSortedByEndDate(java.lang.Integer aStoreId)
          Retrieves the CalculationRuleAccessBeans that match the specified Store.
 java.util.Enumeration findByStoreSortedByStartDate(java.lang.Integer aStoreId)
          Retrieves the CalculationRuleAccessBeans that match the specified Store.
 java.util.Enumeration findEffectiveRulesByCalculationCodeSortByRuleSequence(java.lang.Integer aCalculationCodeId)
          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.
 java.lang.Integer getCombinationInEJBType()
          This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.
 java.lang.String getEndDate()
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getEndDateInEJBType()
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getField1()
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.math.BigDecimal getField1InEJBType()
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getField2()
          This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getFlags()
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getFlagsInEJBType()
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 java.lang.String getIdentifier()
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getIdentifierInEJBType()
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 java.lang.String getSequence()
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Double getSequenceInEJBType()
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.String getStartDate()
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getStartDateInEJBType()
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getTaxCategoryId()
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getTaxCategoryIdInEJBType()
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationCodeId(java.lang.Integer aCalculationCodeId)
          This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationCodeId(java.lang.String aCalculationCodeId)
          This method provides access to the CALRULE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationMethodId(java.lang.Integer aCalculationMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationMethodId(java.lang.String aCalculationMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationRuleQualifyMethodId(java.lang.Integer aCalculationRuleQualifyMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
 void setCalculationRuleQualifyMethodId(java.lang.String aCalculationRuleQualifyMethodId)
          This method provides access to the CALRULE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
 void setCombination(java.lang.Integer aCombination)
          This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.
 void setCombination(java.lang.String aCombination)
          This method provides access to the CALRULE.COMBINATION column of DB2 type INTEGER NOT NULL.
 void setEndDate(java.lang.String aEndDate)
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 void setEndDate(java.sql.Timestamp aEndDate)
          This method provides access to the CALRULE.ENDDATE column of DB2 type TIMESTAMP NULL.
 void setField1(java.math.BigDecimal aField1)
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 void setField1(java.lang.String aField1)
          This method provides access to the CALRULE.FIELD1 column of DB2 type DECIMAL(20,5) NULL.
 void setField2(java.lang.String aField2)
          This method provides access to the CALRULE.FIELD2 column of DB2 type VARCHAR(254) NULL.
 void setFlags(java.lang.Integer aFlags)
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 void setFlags(java.lang.String aFlags)
          This method provides access to the CALRULE.FLAGS column of DB2 type INTEGER NOT NULL.
 void setIdentifier(java.lang.Integer aIdentifier)
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 void setIdentifier(java.lang.String aIdentifier)
          This method provides access to the CALRULE.identifier column of DB2 type INTEGER NOT NULL.
 void setInitKey_calculationRuleId(java.lang.String aInitKey_calculationRuleId)
          Set the primary key for this object
 void setSequence(java.lang.Double aSequence)
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setSequence(java.lang.String aSequence)
          This method provides access to the CALRULE.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setStartDate(java.lang.String aStartDate)
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 void setStartDate(java.sql.Timestamp aStartDate)
          This method provides access to the CALRULE.STARTDATE column of DB2 type TIMESTAMP NULL.
 void setTaxCategoryId(java.lang.Integer aTaxCategoryId)
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER NULL.
 void setTaxCategoryId(java.lang.String aTaxCategoryId)
          This method provides access to the CALRULE.TAXCGRY_ID column of DB2 type INTEGER 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

CalculationRuleAccessBean

public CalculationRuleAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationRuleAccessBean

public CalculationRuleAccessBean(javax.ejb.EJBObject aEJBObject)
                          throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

CalculationRuleAccessBean

public CalculationRuleAccessBean(java.lang.Integer aCalculationCodeId,
                                 java.lang.Integer aCalculateMethodId,
                                 java.lang.Integer aQualifyMethodId)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
aCalculationScaleId - the CalculationScale ID
aCalculationCodeId - the CalculationCode ID
aCalculateMethodId - the CalculationRuleCalculate CalculationMethod ID
aQualifyMethodId - 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
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

findByCalculationCode

public java.util.Enumeration findByCalculationCode(java.lang.Integer aCalculationCodeId)
                                            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:
aCalculationCodeId - 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 - The javax.naming.NamingException exception

findByStoreSortedByEndDate

public java.util.Enumeration findByStoreSortedByEndDate(java.lang.Integer aStoreId)
                                                 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:
aStoreId - 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 - The javax.naming.NamingException exception

findByStoreSortedByStartDate

public java.util.Enumeration findByStoreSortedByStartDate(java.lang.Integer aStoreId)
                                                   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:
aStoreId - 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 - The javax.naming.NamingException exception

findEffectiveRulesByCalculationCodeSortByRuleSequence

public java.util.Enumeration findEffectiveRulesByCalculationCodeSortByRuleSequence(java.lang.Integer aCalculationCodeId)
                                                                            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:
aCalculationCodeId - 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 - The javax.naming.NamingException exception

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

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

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

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

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

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

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

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.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

Specified by:
getCombination in interface CalculationRuleAccessBeanData
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

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.

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

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

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 NULL.

The following is a description of this column:

The time this CalculationRule stops being effective.

Specified by:
getEndDate in interface CalculationRuleAccessBeanData
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

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 NULL.

The following is a description of this column:

The time this CalculationRule stops being effective.

Returns:
java.sql.Timestamp
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

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) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface CalculationRuleAccessBeanData
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

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) NULL.

The following is a description of this column:

Customizable.

Returns:
java.math.BigDecimal
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

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) NULL.

The following is a description of this column:

Customizable.

Specified by:
getField2 in interface CalculationRuleAccessBeanData
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

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.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

Specified by:
getFlags in interface CalculationRuleAccessBeanData
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

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.

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

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

getIdentifier

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

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

IBM internal use only.

Specified by:
getIdentifier in interface CalculationRuleAccessBeanData
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

getIdentifierInEJBType

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

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

IBM internal use only.

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

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.

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

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.

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

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 NULL.

The following is a description of this column:

The time this CalculationRule begins being effective.

Specified by:
getStartDate in interface CalculationRuleAccessBeanData
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

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 NULL.

The following is a description of this column:

The time this CalculationRule begins being effective.

Returns:
java.sql.Timestamp
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

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 NULL.

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

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 NULL.

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.Integer aCalculationCodeId)

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.

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

setCalculationCodeId

public void setCalculationCodeId(java.lang.String aCalculationCodeId)

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:
setCalculationCodeId in interface CalculationRuleAccessBeanData
Parameters:
aCalculationCodeId - java.lang.String
Returns:
void

setCalculationMethodId

public void setCalculationMethodId(java.lang.Integer aCalculationMethodId)

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.

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

setCalculationMethodId

public void setCalculationMethodId(java.lang.String aCalculationMethodId)

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:
setCalculationMethodId in interface CalculationRuleAccessBeanData
Parameters:
aCalculationMethodId - java.lang.String
Returns:
void

setCalculationRuleQualifyMethodId

public void setCalculationRuleQualifyMethodId(java.lang.Integer aCalculationRuleQualifyMethodId)

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.

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

setCalculationRuleQualifyMethodId

public void setCalculationRuleQualifyMethodId(java.lang.String aCalculationRuleQualifyMethodId)

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:
setCalculationRuleQualifyMethodId in interface CalculationRuleAccessBeanData
Parameters:
aCalculationRuleQualifyMethodId - java.lang.String
Returns:
void

setCombination

public void setCombination(java.lang.Integer aCombination)

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

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

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

setCombination

public void setCombination(java.lang.String aCombination)

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

The following is a description of this column:

Specifies the bit flag to indicate special processing to be performed by the default CalculationRuleCombineMethod implementation. Refer to CALRULE table: details for more information.

Specified by:
setCombination in interface CalculationRuleAccessBeanData
Parameters:
aCombination - java.lang.String
Returns:
void

setEndDate

public void setEndDate(java.lang.String aEndDate)

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

The following is a description of this column:

The time this CalculationRule stops being effective.

Specified by:
setEndDate in interface CalculationRuleAccessBeanData
Parameters:
aEndDate - java.lang.String
Returns:
void

setEndDate

public void setEndDate(java.sql.Timestamp aEndDate)

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

The following is a description of this column:

The time this CalculationRule stops being effective.

Parameters:
aEndDate - java.sql.Timestamp
Returns:
void

setField1

public void setField1(java.math.BigDecimal aField1)

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

The following is a description of this column:

Customizable.

Parameters:
aField1 - java.math.BigDecimal
Returns:
void

setField1

public void setField1(java.lang.String aField1)

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

The following is a description of this column:

Customizable.

Specified by:
setField1 in interface CalculationRuleAccessBeanData
Parameters:
aField1 - java.lang.String
Returns:
void

setField2

public void setField2(java.lang.String aField2)

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

The following is a description of this column:

Customizable.

Specified by:
setField2 in interface CalculationRuleAccessBeanData
Parameters:
aField2 - java.lang.String
Returns:
void

setFlags

public void setFlags(java.lang.Integer aFlags)

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

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

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

setFlags

public void setFlags(java.lang.String aFlags)

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

The following is a description of this column:

Used by CalculationRuleCombineMethod to determine how this CalculationRule may be combined with other CalculationRules. Refer to CALRULE table: details for more information.

Specified by:
setFlags in interface CalculationRuleAccessBeanData
Parameters:
aFlags - java.lang.String
Returns:
void

setIdentifier

public void setIdentifier(java.lang.Integer aIdentifier)

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

IBM internal use only.

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

setIdentifier

public void setIdentifier(java.lang.String aIdentifier)

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

IBM internal use only.

Specified by:
setIdentifier in interface CalculationRuleAccessBeanData
Parameters:
aIdentifier - java.lang.String
Returns:
void

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

setSequence

public void setSequence(java.lang.Double aSequence)

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

The following is a description of this column:

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

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

setSequence

public void setSequence(java.lang.String aSequence)

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

The following is a description of this column:

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

Specified by:
setSequence in interface CalculationRuleAccessBeanData
Parameters:
aSequence - java.lang.String
Returns:
void

setStartDate

public void setStartDate(java.lang.String aStartDate)

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

The following is a description of this column:

The time this CalculationRule begins being effective.

Specified by:
setStartDate in interface CalculationRuleAccessBeanData
Parameters:
aStartDate - java.lang.String
Returns:
void

setStartDate

public void setStartDate(java.sql.Timestamp aStartDate)

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

The following is a description of this column:

The time this CalculationRule begins being effective.

Parameters:
aStartDate - java.sql.Timestamp
Returns:
void

setTaxCategoryId

public void setTaxCategoryId(java.lang.Integer aTaxCategoryId)

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

The following is a description of this column:

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

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

setTaxCategoryId

public void setTaxCategoryId(java.lang.String aTaxCategoryId)

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

The following is a description of this column:

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

Specified by:
setTaxCategoryId in interface CalculationRuleAccessBeanData
Parameters:
aTaxCategoryId - java.lang.String
Returns:
void