com.ibm.commerce.fulfillment.objects
Class CalculationScaleAccessBean

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

public class CalculationScaleAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CalculationScaleAccessBeanData

This bean provides access to the CALSCALE table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CalculationScaleAccessBean()
          Default constructor.
CalculationScaleAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
CalculationScaleAccessBean(java.lang.Integer aStoreEntityId, java.lang.Integer aCalculationUsageId, java.lang.Integer aCalculationMethodId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCalculationRule(java.lang.Integer aCalculationRuleId)
          Retrieves the CalculationScaleAccessBeans that are associated with the specified CalculationRule.
 java.util.Enumeration findByCalculationRuleAndCurrency(java.lang.Integer aCalculationRuleId, java.lang.String aCurrency)
          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) NULL.
 java.lang.String getCurrency()
          This method provides access to the CALSCALE.SETCCURR column of DB2 type CHAR(3) NULL.
 java.lang.String getDescription()
          This method provides access to the CALSCALE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getField1()
          This method provides access to the CALSCALE.FIELD1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the CALSCALE.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCalculationMethodId(java.lang.Integer aCalculationMethodId)
          This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationMethodId(java.lang.String aCalculationMethodId)
          This method provides access to the CALSCALE.CALMETHOD_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationScaleId(java.lang.Integer aCalculationScaleId)
          This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationScaleId(java.lang.String aCalculationScaleId)
          This method provides access to the CALSCALE.CALSCALE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationUsageId(java.lang.Integer aCalculationUsageId)
          This method provides access to the CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
 void setCalculationUsageId(java.lang.String aCalculationUsageId)
          This method provides access to the CALSCALE.CALUSAGE_ID column of DB2 type INTEGER NOT NULL.
 void setCode(java.lang.String aCode)
          This method provides access to the CALSCALE.CODE column of DB2 type CHAR(30) NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the CALSCALE.SETCCURR column of DB2 type CHAR(3) NULL.
 void setDescription(java.lang.String aDescription)
          This method provides access to the CALSCALE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setField1(java.lang.String aField1)
          This method provides access to the CALSCALE.FIELD1 column of DB2 type VARCHAR(254) NULL.
 void setInitKey_calculationScaleId(java.lang.String aInitKey_calculationScaleId)
          Set the primary key for this object
 void setQuantityUnitId(java.lang.String aQuantityUnitId)
          This method provides access to the CALSCALE.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 void setStoreEntityId(java.lang.Integer aStoreEntityId)
          This method provides access to the CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreEntityId(java.lang.String aStoreEntityId)
          This method provides access to the CALSCALE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculationScaleAccessBean

public CalculationScaleAccessBean()

Default constructor. Maps to findByPrimaryKey.


CalculationScaleAccessBean

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

Creates an access bean for the specified EJB.

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

CalculationScaleAccessBean

public CalculationScaleAccessBean(java.lang.Integer aStoreEntityId,
                                  java.lang.Integer aCalculationUsageId,
                                  java.lang.Integer aCalculationMethodId)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Creates an access bean with the specified attributes.

Parameters:
aStoreEntityId - the StoreEntity ID
aCalculationUsageId - the CalculationUsage ID
aCalculationMethodId - the CalculationMethod ID
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationRule

public java.util.Enumeration findByCalculationRule(java.lang.Integer aCalculationRuleId)
                                            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 = ?)

Parameters:
aCalculationRuleId - the CalculationRule ID
Returns:
An Enumeration of all the CalculationScaleAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCalculationRuleAndCurrency

public java.util.Enumeration findByCalculationRuleAndCurrency(java.lang.Integer aCalculationRuleId,
                                                              java.lang.String aCurrency)
                                                       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)

Parameters:
aCalculationRuleId - the CalculationRule ID
aCurrency - the currency
Returns:
An Enumeration of all the CalculationScaleAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 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 "lookup number", a "base monetary value", a "result multiplier", and a set of mathematical weights that can be used by the CalculationScale to calculate a monetary amount.

Specified by:
getCalculationMethodId in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCalculationMethodIdInEJBType

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

This method provides access to the 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 "lookup number", a "base monetary value", a "result multiplier", and a set of mathematical weights that can be used by the CalculationScale to calculate a monetary amount.

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

getCalculationScaleId

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.

Specified by:
getCalculationScaleId in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCalculationScaleIdInEJBType

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.

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

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

Specified by:
getCalculationUsageId in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

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

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 CALSCALE.CODE column of DB2 type CHAR(30) NULL.

The following is a description of this column:

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

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

getCurrency

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

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 "lookup number" in this currency. This is a currency code as per ISO 4217 standards.

Specified by:
getCurrency in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 CALSCALE.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

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.

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

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

The following is a description of this column:

Customizable.

Specified by:
getField1 in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getQuantityUnitId

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

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 "lookup number" in these units.

Specified by:
getQuantityUnitId in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

Specified by:
getStoreEntityId in interface CalculationScaleAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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

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

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setCalculationMethodId

public void setCalculationMethodId(java.lang.Integer aCalculationMethodId)

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 "lookup number", a "base monetary value", a "result multiplier", and a set of mathematical weights that can be used by the CalculationScale to calculate a monetary amount.

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

setCalculationMethodId

public void setCalculationMethodId(java.lang.String aCalculationMethodId)

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 "lookup number", a "base monetary value", a "result multiplier", and a set of mathematical weights that can be used by the CalculationScale to calculate a monetary amount.

Specified by:
setCalculationMethodId in interface CalculationScaleAccessBeanData
Parameters:
aCalculationMethodId - java.lang.String
Returns:
void

setCalculationScaleId

public void setCalculationScaleId(java.lang.Integer aCalculationScaleId)

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.

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

setCalculationScaleId

public void setCalculationScaleId(java.lang.String aCalculationScaleId)

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.

Specified by:
setCalculationScaleId in interface CalculationScaleAccessBeanData
Parameters:
aCalculationScaleId - java.lang.String
Returns:
void

setCalculationUsageId

public void setCalculationUsageId(java.lang.Integer aCalculationUsageId)

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.

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

setCalculationUsageId

public void setCalculationUsageId(java.lang.String aCalculationUsageId)

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.

Specified by:
setCalculationUsageId in interface CalculationScaleAccessBeanData
Parameters:
aCalculationUsageId - java.lang.String
Returns:
void

setCode

public void setCode(java.lang.String aCode)

This method provides access to the CALSCALE.CODE column of DB2 type CHAR(30) NULL.

The following is a description of this column:

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

Specified by:
setCode in interface CalculationScaleAccessBeanData
Parameters:
aCode - java.lang.String
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the CALSCALE.SETCCURR column of DB2 type CHAR(3) NULL.

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 "lookup number" in this currency. This is a currency code as per ISO 4217 standards.

Specified by:
setCurrency in interface CalculationScaleAccessBeanData
Parameters:
aCurrency - java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String aDescription)

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

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.

Specified by:
setDescription in interface CalculationScaleAccessBeanData
Parameters:
aDescription - java.lang.String
Returns:
void

setField1

public void setField1(java.lang.String aField1)

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

The following is a description of this column:

Customizable.

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

setInitKey_calculationScaleId

public void setInitKey_calculationScaleId(java.lang.String aInitKey_calculationScaleId)

Set the primary key for this object

Parameters:
aInitKey_calculationScaleId - java.lang.String
Returns:
void

setQuantityUnitId

public void setQuantityUnitId(java.lang.String aQuantityUnitId)

This method provides access to the CALSCALE.QTYUNIT_ID column of DB2 type CHAR(16) NULL.

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 "lookup number" in these units.

Specified by:
setQuantityUnitId in interface CalculationScaleAccessBeanData
Parameters:
aQuantityUnitId - java.lang.String
Returns:
void

setStoreEntityId

public void setStoreEntityId(java.lang.Integer aStoreEntityId)

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.

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

setStoreEntityId

public void setStoreEntityId(java.lang.String aStoreEntityId)

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.

Specified by:
setStoreEntityId in interface CalculationScaleAccessBeanData
Parameters:
aStoreEntityId - java.lang.String
Returns:
void