java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.fulfillment.objects.CalculationCodeAccessBean
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'.
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 |
public CalculationCodeAccessBean()
public CalculationCodeAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
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.
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.
Method Detail |
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 = ?
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 = ?)
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
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
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
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
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 = ?)
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 = ?)
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
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
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 (?, ...)))
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 = ?)
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 (?, ...))
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 = ?)
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 = ?)
public void setInitKey_calculationCodeId(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 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.
public void setDescription(java.lang.String newValue)
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
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
public void setGroupBy(java.lang.String newValue)
public void setGroupBy(java.lang.Integer newValue)
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.
public void setCode(java.lang.String newValue)
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.
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.
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.
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.
public void setLastUpdate(java.lang.String newValue)
public void setLastUpdate(java.sql.Timestamp newValue)
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
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
public void setPublished(java.lang.String newValue)
public void setPublished(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 CALCODE.STARTDATE column of DB2 type TIMESTAMP.
The following is a description of this column:
The time this CalculationCode 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 CALCODE.STARTDATE column of DB2 type TIMESTAMP.
The following is a description of this column:
The time this CalculationCode begins being effective.
public void setStartDate(java.lang.String newValue)
public void setStartDate(java.sql.Timestamp 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 CALCODE.FIELD1 column of DB2 type VARCHAR(254).
The following is a description of this column:
Customizable.
public void setField1(java.lang.String newValue)
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.
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.
public void setCalculationCodeApplyMethodId(java.lang.String newValue)
public void setCalculationCodeApplyMethodId(java.lang.Integer newValue)
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.
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.
public void setTaxCodeClassId(java.lang.String newValue)
public void setTaxCodeClassId(java.lang.Integer newValue)
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.
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.
public void setStoreEntityId(java.lang.String newValue)
public void setStoreEntityId(java.lang.Integer newValue)
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.
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.
public void setPrecedence(java.lang.String newValue)
public void setPrecedence(java.lang.Double 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 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.
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.
public void setCalculationMethodId(java.lang.String newValue)
public void setCalculationMethodId(java.lang.Integer newValue)
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
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
public void setDisplayLevel(java.lang.String newValue)
public void setDisplayLevel(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 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
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
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 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
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
public void setCombination(java.lang.String newValue)
public void setCombination(java.lang.Integer newValue)
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.
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.
public void setCalculationUsageId(java.lang.String newValue)
public void setCalculationUsageId(java.lang.Integer newValue)
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.
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.
public void setCalculationCodeQualifyMethodId(java.lang.String newValue)
public void setCalculationCodeQualifyMethodId(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 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.
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.
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 CALCODE.ENDDATE column of DB2 type TIMESTAMP.
The following is a description of this column:
The time this CalculationCode 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 CALCODE.ENDDATE column of DB2 type TIMESTAMP.
The following is a description of this column:
The time this CalculationCode stops being effective.
public void setEndDate(java.lang.String newValue)
public void setEndDate(java.sql.Timestamp newValue)
public boolean fulfills(java.lang.Long arg0, java.lang.String arg1) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public java.util.Enumeration getEffectiveRules() throws javax.naming.NamingException, java.rmi.RemoteException, javax.ejb.FinderException
Retrieves the effective CalculationRuleAccessBeans, ordered by their sequences.
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.