java.lang.Object | +--com.ibm.commerce.tools.contract.beans.CategoryPricingTCDataBean
Retrieve all the data associated with a Percentage Pricing Term and Condition Set the contract and language identifiers in order to populate the bean.
Field Summary | |
---|---|
static int |
PRICETC_ADJUSTMENT_VALUE The PRICETC_ADJUSTMENT_VALUE array position constant |
static int |
PRICETC_PRODUCTSET_NAME The PRICETC_PRODUCTSET_NAME array position constant |
static int |
PRICETC_PRODUCTSET_POLICY_DB The PRICETC_PRODUCTSET_POLICY_DB array position constant |
static int |
PRICETC_PRODUCTSET_SELECTIONS The PRICETC_PRODUCTSET_SELECTIONS array position constant |
static int |
PRICETC_REFERENCE_NUMBER The PRICETC_REFERENCE_NUMBER array position constant |
static int |
PRICETC_TYPE The PRICETC_TYPE array position constant |
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
CategoryPricingTCDataBean(java.lang.Long newContractId,
java.lang.Integer newLangId) Construct an CategoryPricingTCDataBean from an existing contract identifier Find the Percentage Pricing terms and conditions in the contract |
Method Summary | |
---|---|
CommandContext |
getCommandContext() Returns the current command's context |
java.lang.Long |
getContractId() Get the contract identifier for the contract this term and condition is in |
java.util.Vector |
getCustomAdjustment(int i) Get a custom adjustment term and condition |
java.util.Vector |
getCustomAdjustments() Get the custom adjustment term and conditions |
com.ibm.commerce.security.Protectable |
getDelegate() Return the access control delegate of this databean |
java.util.Vector |
getMasterCatalogAdjustment(int i) Get a master catalog adjustment term and condition |
java.util.Vector |
getMasterCatalogAdjustments() Get the master catalog adjustment term and conditions |
TypedProperty |
getRequestProperties() Get the request properties |
java.util.Vector |
getSelectiveAdjustment(int i) Get a selective adjustment term and condition |
java.util.Vector |
getSelectiveAdjustments() Get the selective adjustment term and conditions |
void |
populate() Retreive the Percentage Pricing term and conditions in a contract |
protected
java.lang.String |
removeSign(java.lang.String percentage) Remove the leading negative sign from a number |
void |
setCommandContext(
CommandContext newICommandContext) Set the command context |
void |
setRequestProperties(
TypedProperty param) Set the requestProperties associated with the data bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final int PRICETC_TYPE
public static final int PRICETC_REFERENCE_NUMBER
public static final int PRICETC_ADJUSTMENT_VALUE
public static final int PRICETC_PRODUCTSET_NAME
public static final int PRICETC_PRODUCTSET_SELECTIONS
public static final int PRICETC_PRODUCTSET_POLICY_DB
Constructor Detail |
---|
public CategoryPricingTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
newContractId
- Long An existing contract identifiernewLangId
- Integer The language identifier for which language
to retrieve the dataMethod Detail |
---|
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
public java.lang.Long getContractId()
public java.util.Vector getCustomAdjustment(int i)
public java.util.Vector getCustomAdjustments()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
java.lang.Exception
public java.util.Vector getMasterCatalogAdjustment(int i)
public java.util.Vector getMasterCatalogAdjustments()
public TypedProperty getRequestProperties()
getRequestProperties
in interface
InputDataBean
public java.util.Vector getSelectiveAdjustment(int i)
public java.util.Vector getSelectiveAdjustments()
public void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
java.lang.Exception
protected java.lang.String removeSign(java.lang.String percentage)
percentage
- java.lang.Stringpublic void setCommandContext(CommandContext newICommandContext)
setCommandContext
in interface
SmartDataBean
newICommandContext
-
com.ibm.commerce.command.CommandContextpublic void setRequestProperties(TypedProperty param)
InputDataBean
setRequestProperties
in interface
InputDataBean