java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.fulfillment.objects.CalculationRuleAccessBean
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'.
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 |
public CalculationRuleAccessBean()
public CalculationRuleAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
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.
Method Detail |
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 = ?
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
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
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
public void setInitKey_calculationRuleId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
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.
public void setCalculationCodeId(java.lang.String newValue)
public void setCalculationCodeId(java.lang.Integer newValue)
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.
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.
public void setTaxCategoryId(java.lang.String newValue)
public void setTaxCategoryId(java.lang.Integer newValue)
public java.lang.String getIdentifier() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Integer getIdentifierInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setIdentifier(java.lang.String newValue)
public void setIdentifier(java.lang.Integer newValue)
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.
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.
public void setStartDate(java.lang.String newValue)
public void setStartDate(java.sql.Timestamp newValue)
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.
public void setField2(java.lang.String newValue)
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.
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.
public void setField1(java.lang.String newValue)
public void setField1(java.math.BigDecimal newValue)
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.
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.
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.
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.
public void setCalculationRuleQualifyMethodId(java.lang.String newValue)
public void setCalculationRuleQualifyMethodId(java.lang.Integer newValue)
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.
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.
public void setCalculationMethodId(java.lang.String newValue)
public void setCalculationMethodId(java.lang.Integer newValue)
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
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
public void setFlags(java.lang.String newValue)
public void setFlags(java.lang.Integer newValue)
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
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
public void setCombination(java.lang.String newValue)
public void setCombination(java.lang.Integer newValue)
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.
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.
public void setSequence(java.lang.String newValue)
public void setSequence(java.lang.Double newValue)
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.
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.
public void setEndDate(java.lang.String newValue)
public void setEndDate(java.sql.Timestamp newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.