java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.fulfillment.objects.CalculationScaleAccessBean
A row in this table represents a CalculationScale, which can be used to perform a scale lookup to calculate a monetary amount, for a given set of OrderItems. This access bean corresponds to the database table 'CALSCALE'.
Constructor Summary | |
CalculationScaleAccessBean() Zero argument constructor used to initialize the access bean. |
|
CalculationScaleAccessBean(java.lang.Integer storeEntityId, java.lang.Integer usageId, java.lang.Integer calMethodId) Creates an access bean with the specified attributes. |
|
CalculationScaleAccessBean(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 | findByCalculationRule(java.lang.Integer calculationRuleId) Retrieves the CalculationScaleAccessBeans that are associated with the specified CalculationRule. |
java.util.Enumeration | findByCalculationRuleAndCurrency(java.lang.Integer calculationRuleId, java.lang.String currency) Retrieves the CalculationScaleAccessBeans that match the specified CalculationRule and currency. |
java.lang.String | getCalculationMethodId() This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getCalculationMethodIdInEJBType() This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getCalculationScaleId() This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getCalculationScaleIdInEJBType() This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getCalculationUsageId() This method provides access to the CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getCalculationUsageIdInEJBType() This method provides access to the CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getCode() This method provides access to the CALSCALE.CODE column of DB2 type CHAR(30). |
java.lang.String | getCurrency() This method provides access to the CALSCALE.SETCCURR column of DB2 type CHAR(3). |
java.lang.String | getDescription() This method provides access to the CALSCALE.DESCRIPTION column of DB2 type VARCHAR(254). |
java.lang.String | getField1() This method provides access to the CALSCALE.FIELD1 column of DB2 type VARCHAR(254). |
java.lang.String | getQuantityUnitId() This method provides access to the CALSCALE.QTYUNIT_ID column of DB2 type CHAR(16). |
java.lang.String | getStoreEntityId() This method provides access to the CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getStoreEntityIdInEJBType() This method provides access to the CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() Load data from the EJBObject. |
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 | setCalculationScaleId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setCalculationScaleId(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 | setCurrency(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 | setField1(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_calculationScaleId(java.lang.String newValue) Set the primary key for this object |
void | setQuantityUnitId(java.lang.String 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CalculationScaleAccessBean()
public CalculationScaleAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public CalculationScaleAccessBean(java.lang.Integer storeEntityId, java.lang.Integer usageId, java.lang.Integer calMethodId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Creates an access bean with the specified attributes.
Method Detail |
public java.util.Enumeration findByCalculationRule(java.lang.Integer calculationRuleId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the CalculationScaleAccessBeans that are associated with the specified CalculationRule.
The SQL query used to fetch all the required rows from the CALSCALE table is: SELECT * FROM CALSCALE T1 WHERE T1.CALSCALE_ID IN (SELECT CRULESCALE.CALSCALE_ID FROM CRULESCALE WHERE CRULESCALE.CALRULE_ID = ?)
public java.util.Enumeration findByCalculationRuleAndCurrency(java.lang.Integer calculationRuleId, java.lang.String currency) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the CalculationScaleAccessBeans that match the specified CalculationRule and currency.
The SQL query used to fetch all the required rows from the CALSCALE table is: SELECT * FROM CALSCALE T1 WHERE T1.CALSCALE_ID IN (SELECT CRULESCALE.CALSCALE_ID FROM CRULESCALE WHERE CRULESCALE.CALRULE_ID = ?) AND (T1.SETCCURR = ? OR T1.SETCCURR IS NULL)
public void setInitKey_calculationScaleId(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 CALSCALE.DESCRIPTION column of DB2 type VARCHAR(254).
The following is a description of this column:
A brief description of this CalculationScale, suitable for display by a user interface that allows creators of CalculationRules to choose from a list of available CalculationScales.
public void setDescription(java.lang.String newValue)
public java.lang.String getCalculationScaleId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Generated unique identifier.
public java.lang.Integer getCalculationScaleIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Generated unique identifier.
public void setCalculationScaleId(java.lang.String newValue)
public void setCalculationScaleId(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 CALSCALE.CODE column of DB2 type CHAR(30).
The following is a description of this column:
A character string that uniquely identifies this CalculationScale, given a particular CalculationUsage and StoreEntity.
public void setCode(java.lang.String newValue)
public java.lang.String getCurrency() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.SETCCURR column of DB2 type CHAR(3).
The following is a description of this column:
If specified, the currency for the rangeStart values of the CalculationRange objects for this CalculationScale. The CalculationScaleLookupMethod should return a &quo
public void setCurrency(java.lang.String newValue)
public java.lang.String getField1() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.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 getStoreEntityId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The CalculationScale 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 CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The CalculationScale is part of this StoreEntity.
public void setStoreEntityId(java.lang.String newValue)
public void setStoreEntityId(java.lang.Integer newValue)
public java.lang.String getCalculationMethodId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The CalculationScaleLookupMethod that given a set of OrderItems determines a &quo
public java.lang.Integer getCalculationMethodIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The CalculationScaleLookupMethod that given a set of OrderItems determines a &quo
public void setCalculationMethodId(java.lang.String newValue)
public void setCalculationMethodId(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 CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Indicates the kind of calculation this CalculationScale is used for. For example, the CalculationScale may be used to calculate one of the following monetary amounts: discounts, shipping charges, sales tax, or shipping tax.
public java.lang.Integer getCalculationUsageIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Indicates the kind of calculation this CalculationScale is used for. For example, the CalculationScale may be used to calculate one of the following monetary amounts: discounts, shipping charges, sales tax, or shipping tax.
public void setCalculationUsageId(java.lang.String newValue)
public void setCalculationUsageId(java.lang.Integer newValue)
public java.lang.String getQuantityUnitId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CALSCALE.QTYUNIT_ID column of DB2 type CHAR(16).
The following is a description of this column:
If specified, the unit of measure for the rangeStart values of the CalculationRange objects for this CalculationScale. The CalculationScaleLookupMethod should return a &quo
public void setQuantityUnitId(java.lang.String newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.