com.ibm.commerce.fulfillment.objects
Class CalculationCodeAccessBean

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

public class CalculationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationCodeAccessBeanData

A row in this table represents a CalculationCode. CalculationCodes represent ways of determining monetary amounts associated with OrderItems. They are used to calculate discounts, shipping charges, sales tax, and shipping tax. This access bean corresponds to the database table 'CALCODE'.

See Also:
Serialized Form

Constructor Summary
CalculationCodeAccessBean()
Zero argument constructor used to initialize the access bean.
CalculationCodeAccessBean(java.lang.Integer usageId, java.lang.Integer calculationMethodId, java.lang.Integer applyMethodId, java.lang.Integer qualifyMethodId, java.lang.Integer storeEntityId)
Creates an access bean with the specified attributes.
CalculationCodeAccessBean(java.lang.Integer usageId, java.lang.Integer calculationMethodId, java.lang.Integer applyMethodId, java.lang.Integer qualifyMethodId, java.lang.Integer storeEntityId, java.lang.String code)
Creates an access bean with the specified attributes.
CalculationCodeAccessBean(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 findAllAttachedCalculationCodes(java.lang.Integer usageId, java.lang.Integer storeId, java.lang.Long contractId, java.lang.Long offerId)
Retrieves the CalculationCodeAccessBeans that are attached to the specified Contract and Offer.
java.util.Enumeration findByCalculationUsageAndStoreEntity(java.lang.Integer usageId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage and StoreEntity.
java.util.Enumeration findByCalculationUsageAndStoreEntityAndDisplayLevel(java.lang.Integer usageId, java.lang.Integer storeEntityId, java.lang.Integer displayLevel)
Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, StoreEntity and displayLevel.
java.util.Enumeration findByCalculationUsageAndStoreEntitySortByCode(java.lang.Integer usageId, java.lang.Integer storeId)
Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage and StoreEntity, ordered by their codes.
java.util.Enumeration findByCalculationUsageCatalogEntryContractAndStore(java.lang.Integer calculationUsageId, java.lang.Long catalogEntryId, java.lang.Long contractId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry, Contract and Store.
java.util.Enumeration findByCalculationUsageCatalogGroupContractAndStore(java.lang.Integer calculationUsageId, java.lang.Long catalogGroupId, java.lang.Long contractId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, CatalogGroup, Contract and Store.
CalculationCodeAccessBean findByCalculationUsageCodeAndStoreEntity(java.lang.Integer usageId, java.lang.String code, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBean that matches the specified CalculationUsage, code and StoreEntity.
java.util.Enumeration findByCalculationUsageStoreContractAndOffer(java.lang.Integer usageId, java.lang.Integer storeId, java.lang.Long contractId, java.lang.Long offerId)
Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, Store, Contract and Offer.
java.util.Enumeration findByCatalogEntryAndStoreSortByCode(java.lang.Long catalogId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry and Store.
java.util.Enumeration findByCatalogEntryAttachments(java.lang.Integer calculationUsageId, java.lang.Integer storeId, java.lang.Long tradingId, java.lang.Long[] catalogEntryIds)
Retrieves the CalculationCodeAccessBeans directly attached to the specified CatalogEntries.
java.util.Enumeration findByCatalogEntryContractAndStore(java.lang.Long catalogEntryId, java.lang.Long contractId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry, Contract and Store.
java.util.Enumeration findByCatalogGroupAttachments(java.lang.Integer calculationUsageId, java.lang.Integer storeId, java.lang.Long tradingId, java.lang.Long[] catalogEntryIds)
Retrieves the CalculationCodeAccessBeans indirectly attached to the specified CatalogEntries through their CatalogGroups.
java.util.Enumeration findByCatalogGroupContractAndStore(java.lang.Long catalogGroupId, java.lang.Long contractId, java.lang.Integer storeEntityId)
Retrieves the CalculationCodeAccessBeans that match the specified CatalogGroup, Contract and Store.
java.util.Enumeration findByOrderItem(java.lang.Long orderItemId)
Retrieves the CalculationCodeAccessBeans directly attached to the specified OrderItem.
CalculationCodeAccessBean findDefaultCalculationCodeByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId, java.lang.Integer calculationUsage)
Retrieves the default CalculationCodeAccessBeans of the specified StoreEntity and CalculationUsage.
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getCalculationCodeApplyMethodId()
This method provides access to the CALCODE.CALMETHOD_ID_APP column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeApplyMethodIdInEJBType()
This method provides access to the CALCODE.CALMETHOD_ID_APP column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationCodeId()
This method provides access to the CALCODE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeIdInEJBType()
This method provides access to the CALCODE.CALCODE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationCodeQualifyMethodId()
This method provides access to the CALCODE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationCodeQualifyMethodIdInEJBType()
This method provides access to the CALCODE.CALMETHOD_ID_QFY column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationMethodId()
This method provides access to the CALCODE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationMethodIdInEJBType()
This method provides access to the CALCODE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCalculationUsageId()
This method provides access to the CALCODE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCalculationUsageIdInEJBType()
This method provides access to the CALCODE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getCode()
This method provides access to the CALCODE.CODE column of DB2 type CHAR(128) NOT NULL.
java.lang.String getCombination()
This method provides access to the CALCODE.COMBINATION column of DB2 type INTEGER.
java.lang.Integer getCombinationInEJBType()
This method provides access to the CALCODE.COMBINATION column of DB2 type INTEGER.
java.lang.String getDescription()
This method provides access to the CALCODE.DESCRIPTION column of DB2 type VARCHAR(254).
java.lang.String getDisplayLevel()
This method provides access to the CALCODE.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getDisplayLevelInEJBType()
This method provides access to the CALCODE.DISPLAYLEVEL column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.util.Enumeration getEffectiveRules()
Retrieves the effective CalculationRuleAccessBeans, ordered by their sequences.
java.lang.String getEndDate()
This method provides access to the CALCODE.ENDDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getEndDateInEJBType()
This method provides access to the CALCODE.ENDDATE column of DB2 type TIMESTAMP.
java.lang.String getField1()
This method provides access to the CALCODE.FIELD1 column of DB2 type VARCHAR(254).
java.lang.String getFlags()
This method provides access to the CALCODE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getFlagsInEJBType()
This method provides access to the CALCODE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getGroupBy()
This method provides access to the CALCODE.GROUPBY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getGroupByInEJBType()
This method provides access to the CALCODE.GROUPBY column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getLastUpdate()
This method provides access to the CALCODE.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the CALCODE.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.Long getOwner()
This method accesses a non-CMP field
java.lang.String getPrecedence()
This method provides access to the CALCODE.PRECEDENCE column of DB2 type DOUBLE NOT NULL DEFAULT 0.
java.lang.Double getPrecedenceInEJBType()
This method provides access to the CALCODE.PRECEDENCE column of DB2 type DOUBLE NOT NULL DEFAULT 0.
java.lang.String getPublished()
This method provides access to the CALCODE.PUBLISHED column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getPublishedInEJBType()
This method provides access to the CALCODE.PUBLISHED column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getSequence()
This method provides access to the CALCODE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getSequenceInEJBType()
This method provides access to the CALCODE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.String getStartDate()
This method provides access to the CALCODE.STARTDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getStartDateInEJBType()
This method provides access to the CALCODE.STARTDATE column of DB2 type TIMESTAMP.
java.lang.String getStoreEntityId()
This method provides access to the CALCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the CALCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getTaxCodeClassId()
This method provides access to the CALCODE.TXCDCLASS_ID column of DB2 type INTEGER.
java.lang.Integer getTaxCodeClassIdInEJBType()
This method provides access to the CALCODE.TXCDCLASS_ID column of DB2 type INTEGER.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCalculationCodeApplyMethodId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeApplyMethodId(java.lang.String newValue)
This method accesses a non-CMP field
void setCalculationCodeQualifyMethodId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationCodeQualifyMethodId(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 setCalculationUsageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCalculationUsageId(java.lang.String newValue)
This method accesses a non-CMP field
void setCode(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 setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setDisplayLevel(java.lang.Integer newValue)
This method accesses a non-CMP field
void setDisplayLevel(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.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 setGroupBy(java.lang.Integer newValue)
This method accesses a non-CMP field
void setGroupBy(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_calculationCodeId(java.lang.String newValue)
Set the primary key for this object
void setLastUpdate(java.lang.String newValue)
This method accesses a non-CMP field
void setLastUpdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setPrecedence(java.lang.Double newValue)
This method accesses a non-CMP field
void setPrecedence(java.lang.String newValue)
This method accesses a non-CMP field
void setPublished(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPublished(java.lang.String newValue)
This method accesses a non-CMP field
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 setStoreEntityId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreEntityId(java.lang.String newValue)
This method accesses a non-CMP field
void setTaxCodeClassId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTaxCodeClassId(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

CalculationCodeAccessBean

public CalculationCodeAccessBean()
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.CalculationCode com.ibm.commerce.fulfillment.objimpl.CalculationCodeHomeBase.findByPrimaryKey(com.ibm.commerce.fulfillment.objects.CalculationCodeKey) 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_calculationCodeId( java.lang.Integer )

CalculationCodeAccessBean

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

CalculationCodeAccessBean

public CalculationCodeAccessBean(java.lang.Integer usageId,
                                 java.lang.Integer calculationMethodId,
                                 java.lang.Integer applyMethodId,
                                 java.lang.Integer qualifyMethodId,
                                 java.lang.Integer storeEntityId)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.ejb.FinderException

Creates an access bean with the specified attributes.

Parameters:
usageId - the CalculationUsage ID
calculationMethodId - the CalculationCodeCalculate CalculationMethod ID
applyMethodId - the CalculationCodeApply CalculationMethod ID
qualifyMethodId - the CalculationCodeQualify CalculationMethod ID
storeEntityId - the StoreEntity ID
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

CalculationCodeAccessBean

public CalculationCodeAccessBean(java.lang.Integer usageId,
                                 java.lang.Integer calculationMethodId,
                                 java.lang.Integer applyMethodId,
                                 java.lang.Integer qualifyMethodId,
                                 java.lang.Integer storeEntityId,
                                 java.lang.String code)
                          throws javax.naming.NamingException,
                                 javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.ejb.FinderException

Creates an access bean with the specified attributes.

Parameters:
usageId - the CalculationUsage ID
calculationMethodId - the CalculationCodeCalculate CalculationMethod ID
applyMethodId - the CalculationCodeApply CalculationMethod ID
qualifyMethodId - the CalculationCodeQualify CalculationMethod ID
storeEntityId - the StoreEntity ID
code - the code
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByCalculationUsageCodeAndStoreEntity

public CalculationCodeAccessBean findByCalculationUsageCodeAndStoreEntity(java.lang.Integer usageId,
                                                                          java.lang.String code,
                                                                          java.lang.Integer storeEntityId)
                                                                   throws java.rmi.RemoteException,
                                                                          javax.ejb.FinderException,
                                                                          javax.naming.NamingException

Retrieves the CalculationCodeAccessBean that matches the specified CalculationUsage, code and StoreEntity.

The SQL query used to fetch all the required row from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.CODE = ? AND T1.STOREENT_ID = ?

Parameters:
usageId - the CalculationUsage ID
code - the code
storeEntityId - the StoreEntity ID
Returns:
The CalculationCodeAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findDefaultCalculationCodeByStoreEntityAndCalculationUsage

public CalculationCodeAccessBean findDefaultCalculationCodeByStoreEntityAndCalculationUsage(java.lang.Integer storeEntityId,
                                                                                            java.lang.Integer calculationUsage)
                                                                                     throws java.rmi.RemoteException,
                                                                                            javax.ejb.FinderException,
                                                                                            javax.naming.NamingException

Retrieves the default CalculationCodeAccessBeans of the specified StoreEntity and CalculationUsage.

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

Parameters:
storeEntityId - the StoreEntity ID
calculationUsage - the CalculationUsage ID
Returns:
The CalculationCodeAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAllAttachedCalculationCodes

public java.util.Enumeration findAllAttachedCalculationCodes(java.lang.Integer usageId,
                                                             java.lang.Integer storeId,
                                                             java.lang.Long contractId,
                                                             java.lang.Long offerId)
                                                      throws java.rmi.RemoteException,
                                                             javax.ejb.FinderException,
                                                             javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that are attached to the specified Contract and Offer. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.STOREENT_ID = ? AND T1.CALCODE_ID IN (SELECT OFFCNTRCOD.CALCODE_ID FROM OFFCNTRCOD WHERE (OFFCNTRCOD.CONTRACT_ID = ? OR OFFCNTRCOD.CONTRACT_ID IS NULL) AND (OFFCNTRCOD.OFFER_ID = ? OR OFFCNTRCOD.OFFER_ID IS NULL)) ORDER BY T1.SEQUENCE

Parameters:
usageId - the CalculationUsage ID
storeId - the CatalogGroup ID
contractId - the Contract ID
offerId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageAndStoreEntity

public java.util.Enumeration findByCalculationUsageAndStoreEntity(java.lang.Integer usageId,
                                                                  java.lang.Integer storeEntityId)
                                                           throws java.rmi.RemoteException,
                                                                  javax.ejb.FinderException,
                                                                  javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage and StoreEntity.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.STOREENT_ID = ? ORDER BY T1.CODE

Parameters:
usageId - the CalculationUsage ID
storeEntityId - the StoreEntity ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageAndStoreEntityAndDisplayLevel

public java.util.Enumeration findByCalculationUsageAndStoreEntityAndDisplayLevel(java.lang.Integer usageId,
                                                                                 java.lang.Integer storeEntityId,
                                                                                 java.lang.Integer displayLevel)
                                                                          throws java.rmi.RemoteException,
                                                                                 javax.ejb.FinderException,
                                                                                 javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, StoreEntity and displayLevel.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.STOREENT_ID = ? AND T1.DISPLAYLEVEL = ? ORDER BY T1.CODE

Parameters:
usageId - the CalculationUsage ID
storeEntityId - the StoreEntity ID
displayLevel - the displayLevel
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageAndStoreEntitySortByCode

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

Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage and StoreEntity, ordered by their codes.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.STOREENT_ID = ? ORDER BY T1.CODE

Parameters:
usageId - the CalculationUsage ID
storeId - the StoreEntity ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageCatalogEntryContractAndStore

public java.util.Enumeration findByCalculationUsageCatalogEntryContractAndStore(java.lang.Integer calculationUsageId,
                                                                                java.lang.Long catalogEntryId,
                                                                                java.lang.Long contractId,
                                                                                java.lang.Integer storeEntityId)
                                                                         throws java.rmi.RemoteException,
                                                                                javax.ejb.FinderException,
                                                                                javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry, Contract and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALCODE_ID IN (SELECT CATENCALCD.CALCODE_ID FROM CATENCALCD WHERE (CATENCALCD.CATENTRY_ID = ? OR CATENCALCD.CALCODE_ID IS NULL) AND (CATENCALCD.CONTRACT_ID = ? OR CATENCALCD.CONTRACT_ID IS NULL) AND CATENCALCD.STORE_ID = ?)

Parameters:
calculationUsageId - the CalculationUsage ID
catalogEntryId - the CatalogEntry ID
contractId - the Contract ID
storeEntityId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageCatalogGroupContractAndStore

public java.util.Enumeration findByCalculationUsageCatalogGroupContractAndStore(java.lang.Integer calculationUsageId,
                                                                                java.lang.Long catalogGroupId,
                                                                                java.lang.Long contractId,
                                                                                java.lang.Integer storeEntityId)
                                                                         throws java.rmi.RemoteException,
                                                                                javax.ejb.FinderException,
                                                                                javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, CatalogGroup, Contract and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.CALCODE_ID IN (SELECT CATGPCALCD.CALCODE_ID FROM CATGPCALCD WHERE CATGPCALCD.CATGROUP_ID = ? AND (CATGPCALCD.CONTRACT_ID = ? OR CATGPCALCD.CONTRACT_ID IS NULL) AND CATGPCALCD.STORE_ID = ?)

Parameters:
calculationUsageId - the CalculationUsage ID
catalogGroupId - the CatalogGroup ID
contractId - the Contract ID
storeEntityId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCalculationUsageStoreContractAndOffer

public java.util.Enumeration findByCalculationUsageStoreContractAndOffer(java.lang.Integer usageId,
                                                                         java.lang.Integer storeId,
                                                                         java.lang.Long contractId,
                                                                         java.lang.Long offerId)
                                                                  throws java.rmi.RemoteException,
                                                                         javax.ejb.FinderException,
                                                                         javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CalculationUsage, Store, Contract and Offer. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? AND T1.STOREENT_ID = ? AND T1.CALCODE_ID IN (SELECT OFFCNTRCOD.CALCODE_ID FROM OFFCNTRCOD WHERE OFFCNTRCOD.CONTRACT_ID = ? AND OFFCNTRCOD.OFFER_ID = ?) ORDER BY T1.SEQUENCE

Parameters:
usageId - the CalculationUsage ID
storeId - the Store ID
contractId - the Contract ID
offerId - the Offer ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCatalogEntryAndStoreSortByCode

public java.util.Enumeration findByCatalogEntryAndStoreSortByCode(java.lang.Long catalogId,
                                                                  java.lang.Integer storeEntityId)
                                                           throws java.rmi.RemoteException,
                                                                  javax.ejb.FinderException,
                                                                  javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALCODE_ID IN (SELECT CATENCALCD.CALCODE_ID FROM CATENCALCD WHERE CATENCALCD.CATENTRY_ID = ? AND CATENCALCD.STORE_ID = ?) ORDER BY T1.CODE

Parameters:
catalogId - the CatalogEntry ID
storeEntityId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCatalogEntryAttachments

public java.util.Enumeration findByCatalogEntryAttachments(java.lang.Integer calculationUsageId,
                                                           java.lang.Integer storeId,
                                                           java.lang.Long tradingId,
                                                           java.lang.Long[] catalogEntryIds)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans directly attached to the specified CatalogEntries.

The SQL query used to fetch all the required row from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? T1.CALCODE_ID IN ( SELECT CATENCALCD.CALCODE_ID FROM CATENCALCD WHERE CATENCALCD.STORE_ID = ? AND (CATENCALCD.TRADING_ID IS NULL OR CATENCALCD.TRADING_ID = ?) AND (CATENCALCD.CATENTRY_ID IS NULL OR CATENCALCD.CATENTRY_ID IN (?, ...)))

Parameters:
calculationUsageId - the CalculationUsage ID
storeId - the Store ID
tradingId - the TradingAgreement ID
catalogEntryIds - the CatalogEntry IDs
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCatalogEntryContractAndStore

public java.util.Enumeration findByCatalogEntryContractAndStore(java.lang.Long catalogEntryId,
                                                                java.lang.Long contractId,
                                                                java.lang.Integer storeEntityId)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CatalogEntry, Contract and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALCODE_ID IN (SELECT CATENCALCD.CALCODE_ID FROM CATENCALCD WHERE (CATENCALCD.CATENTRY_ID = ? OR CATENCALCD.CATENTRY_ID IS NULL) AND (CATENCALCD.CONTRACT_ID = ? OR CATENCALCD.CONTRACT_ID IS NULL) AND CATENCALCD.STORE_ID = ?)

Parameters:
catalogEntryId - the CatalogEntry ID
contractId - the Contract ID
storeEntityId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCatalogGroupAttachments

public java.util.Enumeration findByCatalogGroupAttachments(java.lang.Integer calculationUsageId,
                                                           java.lang.Integer storeId,
                                                           java.lang.Long tradingId,
                                                           java.lang.Long[] catalogEntryIds)
                                                    throws java.rmi.RemoteException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans indirectly attached to the specified CatalogEntries through their CatalogGroups.

The SQL query used to fetch all the required row from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALUSAGE_ID = ? T1.CALCODE_ID IN ( SELECT CATGPCALCD.CALCODE_ID FROM CATGPCALCD WHERE CATGPCALCD.STORE_ID = ? AND (CATGPCALCD.TRADING_ID IS NULL OR CATGPCALCD.TRADING_ID = ?) AND CATGPCALCD.CATGROUP_ID IN (SELECT CATGPENREL.CATGROUP_ID FROM CATGPENREL WHERE CATGPENREL.CATENTRY_ID IN (?, ...))

Parameters:
calculationUsageId - the CalculationUsage ID
storeId - the Store ID
tradingId - the TradingAgreement ID
catalogEntryIds - the CatalogEntry IDs
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByCatalogGroupContractAndStore

public java.util.Enumeration findByCatalogGroupContractAndStore(java.lang.Long catalogGroupId,
                                                                java.lang.Long contractId,
                                                                java.lang.Integer storeEntityId)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans that match the specified CatalogGroup, Contract and Store. Reserved for IBM internal use.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALCODE_ID IN (SELECT CATGPCALCD.CALCODE_ID FROM CATGPCALCD WHERE (CATGPCALCD.CATGROUP_ID = ? OR CATGPCALCD.CALCODE_ID IS NULL) AND (CATGPCALCD.CONTRACT_ID = ? OR CATGPCALCD.CONTRACT_ID IS NULL) AND CATGPCALCD.STORE_ID = ?)

Parameters:
catalogGroupId - the CatalogGroup ID
contractId - the Contract ID
storeEntityId - the Store ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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

findByOrderItem

public java.util.Enumeration findByOrderItem(java.lang.Long orderItemId)
                                      throws java.rmi.RemoteException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

Retrieves the CalculationCodeAccessBeans directly attached to the specified OrderItem.

The SQL query used to fetch all the required rows from the CALCODE table is: SELECT * FROM CALCODE T1 WHERE T1.CALCODE_ID IN (SELECT ORDICALCD.CALCODE_ID FROM ORDICALCD WHERE ORDICALCD.ORDERITEMS_ID = ?)

Parameters:
orderItemId - the OrderItem ID
Returns:
An Enumeration of all the CalculationCodeAccessBeans 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_calculationCodeId

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

getDescription

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

This method provides access to the CALCODE.DESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

A brief description of this CalculationCode, suitable for display by a user interface that manages CalculationCodes.

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

setDescription

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

getGroupBy

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

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

The following is a description of this column:

Bit flags indicating to the CalculationCodeCombineMethod how OrderItems should be grouped when performing calculations. Each group of OrderItems is used to calculate a monetary amount, which is applied separately using the CalculationCodeApplyMethod. The default CalculationCodeCombineMethods recognize the following bit flags, from low to high order bits:&l

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

getGroupByInEJBType

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

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

The following is a description of this column:

Bit flags indicating to the CalculationCodeCombineMethod how OrderItems should be grouped when performing calculations. Each group of OrderItems is used to calculate a monetary amount, which is applied separately using the CalculationCodeApplyMethod. The default CalculationCodeCombineMethods recognize the following bit flags, from low to high order bits:&l

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

setGroupBy

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

setGroupBy

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

getCode

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

This method provides access to the CALCODE.CODE column of DB2 type CHAR(128) NOT NULL.

The following is a description of this column:

A character string that uniquely identifies this CalculationCode, given a particular CalculationUsage and StoreEntity.

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

setCode

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

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

The following is a description of this column:

Generated unique identifier.

Specified by:
getCalculationCodeId in interface CalculationCodeAccessBeanData
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 CALCODE.CALCODE_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

getLastUpdate

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

This method provides access to the CALCODE.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode (including its CalculationRules) was most recently updated.

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

getLastUpdateInEJBType

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

This method provides access to the CALCODE.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode (including its CalculationRules) was most recently updated.

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

setLastUpdate

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

setLastUpdate

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

getPublished

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

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

The following is a description of this column:

Specifies whether or not the calculation code is published:&l

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

getPublishedInEJBType

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

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

The following is a description of this column:

Specifies whether or not the calculation code is published:&l

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

setPublished

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

setPublished

public void setPublished(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 CALCODE.STARTDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode begins being effective.

Specified by:
getStartDate in interface CalculationCodeAccessBeanData
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 CALCODE.STARTDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode 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 CalculationCodeAccessBeanData

setStartDate

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

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 CALCODE.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface CalculationCodeAccessBeanData
Returns:
java.lang.String
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 CalculationCodeAccessBeanData

getCalculationCodeApplyMethodId

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

This method provides access to the CALCODE.CALMETHOD_ID_APP column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCodeApplyMethod that stores the calculated amount for the associated OrderItems.

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

getCalculationCodeApplyMethodIdInEJBType

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

This method provides access to the CALCODE.CALMETHOD_ID_APP column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCodeApplyMethod that stores the calculated amount for the associated OrderItems.

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

setCalculationCodeApplyMethodId

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

setCalculationCodeApplyMethodId

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

getTaxCodeClassId

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

This method provides access to the CALCODE.TXCDCLASS_ID column of DB2 type INTEGER.

The following is a description of this column:

For Taxation CalculationCodes, the TaxCodeClassification, if any, associated with this CalculationCode.

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

getTaxCodeClassIdInEJBType

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

This method provides access to the CALCODE.TXCDCLASS_ID column of DB2 type INTEGER.

The following is a description of this column:

For Taxation CalculationCodes, the TaxCodeClassification, if any, associated with this CalculationCode.

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

setTaxCodeClassId

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

setTaxCodeClassId

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

getStoreEntityId

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

This method provides access to the CALCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode is part of this StoreEntity.

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

getStoreEntityIdInEJBType

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

This method provides access to the CALCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCode is part of this StoreEntity.

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

setStoreEntityId

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

setStoreEntityId

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

getPrecedence

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

This method provides access to the CALCODE.PRECEDENCE column of DB2 type DOUBLE NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

getPrecedenceInEJBType

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

This method provides access to the CALCODE.PRECEDENCE column of DB2 type DOUBLE NOT NULL DEFAULT 0.

The following is a description of this column:

Reserved for IBM internal use.

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

setPrecedence

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

setPrecedence

public void setPrecedence(java.lang.Double 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 CALCODE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCodeCalculateMethod that defines how to calculate a monetary amount for this CalculationCode.

Specified by:
getCalculationMethodId in interface CalculationCodeAccessBeanData
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 CALCODE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The CalculationCodeCalculateMethod that defines how to calculate a monetary amount for this CalculationCode.

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 CalculationCodeAccessBeanData

setCalculationMethodId

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

getDisplayLevel

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

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

The following is a description of this column:

Amounts calculated by this CalculationCode should be displayed with each:&l

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

getDisplayLevelInEJBType

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

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

The following is a description of this column:

Amounts calculated by this CalculationCode should be displayed with each:&l

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

setDisplayLevel

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

setDisplayLevel

public void setDisplayLevel(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 CALCODE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Specifies whether the CalculationCodeQualifyMethod of this CalculationCode should be invoked:&l

Specified by:
getFlags in interface CalculationCodeAccessBeanData
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 CALCODE.FLAGS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Specifies whether the CalculationCodeQualifyMethod of this CalculationCode should be invoked:&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 CalculationCodeAccessBeanData

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 CALCODE.COMBINATION column of DB2 type INTEGER.

The following is a description of this column:

For schema based discount, this column is used to check if there is a combination between CALCODE and CALRULE etc. &l

Specified by:
getCombination in interface CalculationCodeAccessBeanData
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 CALCODE.COMBINATION column of DB2 type INTEGER.

The following is a description of this column:

For schema based discount, this column is used to check if there is a combination between CALCODE and CALRULE etc. &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 CalculationCodeAccessBeanData

setCombination

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

getCalculationUsageId

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

This method provides access to the CALCODE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates the kind of calculation this CalculationCode is used for. For example, the CalculationCode may be used to calculate one of the following monetary amounts: discounts, shipping charges, sales tax, or shipping tax. Out of box, -1 is for Discount, -2 is for Shipping, -3 is for Sales Tax, -4 is for Shipping Tax, -5 is for Coupon and -6 is for Surcharge.

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

getCalculationUsageIdInEJBType

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

This method provides access to the CALCODE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates the kind of calculation this CalculationCode is used for. For example, the CalculationCode may be used to calculate one of the following monetary amounts: discounts, shipping charges, sales tax, or shipping tax. Out of box, -1 is for Discount, -2 is for Shipping, -3 is for Sales Tax, -4 is for Shipping Tax, -5 is for Coupon and -6 is for Surcharge.

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

setCalculationUsageId

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

setCalculationUsageId

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

getCalculationCodeQualifyMethodId

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

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

The following is a description of this column:

The CalculationCodeQualifyMethod that defines which OrderItems are associated with this CalculationCode.

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

getCalculationCodeQualifyMethodIdInEJBType

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

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

The following is a description of this column:

The CalculationCodeQualifyMethod that defines which OrderItems are associated with this CalculationCode.

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

setCalculationCodeQualifyMethodId

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

setCalculationCodeQualifyMethodId

public void setCalculationCodeQualifyMethodId(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 CALCODE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

CalculationCodes are calculated and applied in sequence from lowest to highest.

Specified by:
getSequence in interface CalculationCodeAccessBeanData
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 CALCODE.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

CalculationCodes are calculated and applied in sequence from lowest to highest.

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 CalculationCodeAccessBeanData

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 CALCODE.ENDDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode stops being effective.

Specified by:
getEndDate in interface CalculationCodeAccessBeanData
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 CALCODE.ENDDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this CalculationCode 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 CalculationCodeAccessBeanData

setEndDate

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

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

getEffectiveRules

public java.util.Enumeration getEffectiveRules()
                                        throws javax.naming.NamingException,
                                               java.rmi.RemoteException,
                                               javax.ejb.FinderException

Retrieves the effective CalculationRuleAccessBeans, ordered by their sequences.

Returns:
An Enumeration of all the CalculationCodeAccessBeans that are effective.
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

Feedback