com.ibm.commerce.tools.contract.beans

Class CategoryPricingTCDataBean

  • java.lang.Object
    • com.ibm.commerce.tools.contract.beans.CategoryPricingTCDataBean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable


    public class CategoryPricingTCDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
    This data bean represents a Category Pricing Term and Condition object. A price is part of the catalog entry, it includes list price and offer price. When retrieving all the data associated with a Percentage Pricing Term and Condition, the data bean will be called. Sets the contract and language identifiers in order to populate the bean. The data bean maps to a database table TERMCOND
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      CategoryPricingTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
      Constructs an CategoryPricingTCDataBean from an existing contract identifier Find the Percentage Pricing terms and conditions in the contract
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Returns the current command's context
      java.lang.Long getContractId()
      Gets the contract identifier for the contract this term and condition are in
      java.util.Vector getCustomAdjustment(int i)
      Gets a custom adjustment term and condition
      java.util.Vector getCustomAdjustments()
      Gets the custom adjustment term and conditions
      com.ibm.commerce.security.Protectable getDelegate()
      Returns the access control delegate of this data bean
      java.util.Vector getMasterCatalogAdjustment(int i)
      Gets a master catalog adjustment term and condition
      java.util.Vector getMasterCatalogAdjustments()
      Gets the master catalog adjustment term and conditions
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Gets the request properties
      java.util.Vector getSelectiveAdjustment(int i)
      Gets a selective adjustment term and condition
      java.util.Vector getSelectiveAdjustments()
      Gets the selective adjustment term and conditions
      void populate()
      This method is used to retrieve the Percentage Pricing term and conditions in a contract.
      void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
      Sets the command context
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
      Sets the request properties.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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_POLICY_DB

        public static final int PRICETC_PRODUCTSET_POLICY_DB
        The PRICETC_PRODUCTSET_POLICY_DB 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_REFERENCE_NUMBER

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

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

      • CategoryPricingTCDataBean

        public CategoryPricingTCDataBean(java.lang.Long newContractId,
                                         java.lang.Integer newLangId)
        Constructs 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 com.ibm.commerce.command.CommandContext getCommandContext()
        Returns the current command's context
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        com.ibm.commerce.command.CommandContext
      • getContractId

        public java.lang.Long getContractId()
        Gets the contract identifier for the contract this term and condition are in
        Returns:
        Long contract identifier
      • getCustomAdjustment

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

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

        public com.ibm.commerce.security.Protectable getDelegate()
                                                          throws java.lang.Exception
        Returns the access control delegate of this data bean
        Specified by:
        getDelegate in interface com.ibm.commerce.security.Delegator
        Returns:
        com.ibm.commerce.security.Protectable
        Throws:
        java.lang.Exception
      • getMasterCatalogAdjustment

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

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

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request properties
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        null
      • getSelectiveAdjustment

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

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

        public void populate()
                      throws java.lang.Exception
        This method is used to retrieve the Percentage Pricing term and conditions in a contract. Loads data into the data bean when the DataBeanManager.activate() runs.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception
      • setCommandContext

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

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
        Sets the request properties.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        param - com.ibm.commerce.datatype.TypedProperty