com.ibm.commerce.tools.contract.beans
Class CategoryPricingTCDataBean

java.lang.Object
  |
  +--com.ibm.commerce.tools.contract.beans.CategoryPricingTCDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class CategoryPricingTCDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with a Percentage Pricing Term and Condition Set the contract and language identifiers in order to populate the bean.

See Also:
Serialized Form

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

PRICETC_TYPE

public static final int PRICETC_TYPE
The PRICETC_TYPE array position constant
See Also:
Constant Field Values

PRICETC_REFERENCE_NUMBER

public static final int PRICETC_REFERENCE_NUMBER
The PRICETC_REFERENCE_NUMBER array position constant
See Also:
Constant Field Values

PRICETC_ADJUSTMENT_VALUE

public static final int PRICETC_ADJUSTMENT_VALUE
The PRICETC_ADJUSTMENT_VALUE array position constant
See Also:
Constant Field Values

PRICETC_PRODUCTSET_NAME

public static final int PRICETC_PRODUCTSET_NAME
The PRICETC_PRODUCTSET_NAME array position constant
See Also:
Constant Field Values

PRICETC_PRODUCTSET_SELECTIONS

public static final int PRICETC_PRODUCTSET_SELECTIONS
The PRICETC_PRODUCTSET_SELECTIONS array position constant
See Also:
Constant Field Values

PRICETC_PRODUCTSET_POLICY_DB

public static final int PRICETC_PRODUCTSET_POLICY_DB
The PRICETC_PRODUCTSET_POLICY_DB array position constant
See Also:
Constant Field Values
Constructor Detail

CategoryPricingTCDataBean

public 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
Parameters:
newContractId - Long An existing contract identifier
newLangId - Integer The language identifier for which language to retrieve the data
Method Detail

getCommandContext

public CommandContext getCommandContext()
Returns the current command's context
Specified by:
getCommandContext in interface SmartDataBean
Returns:
com.ibm.commerce.command.CommandContext

getContractId

public java.lang.Long getContractId()
Get the contract identifier for the contract this term and condition is in
Returns:
Long

getCustomAdjustment

public java.util.Vector getCustomAdjustment(int i)
Get a custom adjustment term and condition
Returns:
java.util.Vector

getCustomAdjustments

public java.util.Vector getCustomAdjustments()
Get the custom adjustment term and conditions
Returns:
java.util.Vector

getDelegate

public com.ibm.commerce.security.Protectable getDelegate()
                                                  throws java.lang.Exception
Return the access control delegate of this databean
Returns:
com.ibm.commerce.security.Protectable
Throws:
java.lang.Exception

getMasterCatalogAdjustment

public java.util.Vector getMasterCatalogAdjustment(int i)
Get a master catalog adjustment term and condition
Returns:
java.util.Vector

getMasterCatalogAdjustments

public java.util.Vector getMasterCatalogAdjustments()
Get the master catalog adjustment term and conditions
Returns:
java.util.Vector

getRequestProperties

public TypedProperty getRequestProperties()
Get the request properties
Specified by:
getRequestProperties in interface InputDataBean
Returns:
null

getSelectiveAdjustment

public java.util.Vector getSelectiveAdjustment(int i)
Get a selective adjustment term and condition
Returns:
java.util.Vector

getSelectiveAdjustments

public java.util.Vector getSelectiveAdjustments()
Get the selective adjustment term and conditions
Returns:
java.util.Vector

populate

public void populate()
              throws java.lang.Exception
Retreive the Percentage Pricing term and conditions in a contract
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception

removeSign

protected java.lang.String removeSign(java.lang.String percentage)
Remove the leading negative sign from a number
Parameters:
percentage - java.lang.String

setCommandContext

public void setCommandContext(CommandContext newICommandContext)
Set the command context
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newICommandContext - com.ibm.commerce.command.CommandContext

setRequestProperties

public void setRequestProperties(TypedProperty param)
Description copied from interface: InputDataBean
Set the requestProperties associated with the data bean. If the requestProperties is null when the activate method on the DataBeanManager is invoked, the DataBeanManager sets the request properties based on the request properties set in the request.
Specified by:
setRequestProperties in interface InputDataBean