com.ibm.commerce.ordermanagement.beans

Class PriceOverrideReasonDataBean

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PriceOverrideReasonDataBean

        public PriceOverrideReasonDataBean()
        PriceOverrideOrdersDataBean constructor .
      • PriceOverrideReasonDataBean

        public PriceOverrideReasonDataBean(PriceOverrideReasonAccessBean aabPriceOverride,
                                           CommandContext aCommandContext)
        Constructs an PriceOverrideReasonDataBean from an PriceOverrideReasonAccessBean by extracting the Order EJB reference from the PriceOverrideOrdersAccessBean and setting the commandContext
        Parameters:
        aabPriceOverride - PriceOverrideReasonAccessBean
        aCommandContext - Command Context
      • PriceOverrideReasonDataBean

        public PriceOverrideReasonDataBean(PriceOverrideReasonAccessBean aabPriceOverride)
        Constructs an PriceOverrideReasonDataBean from an PriceOverrideReasonAccessBean by extracting the Order EJB reference from the PriceOverrideReasonAccessBean. Note: Consider using PriceOverrideReasonDataBean(PriceOverrideReasonAccessBean aabPriceOverride,CommandContext aCommandContext) if commandContext is available.
        Parameters:
        aabPriceOverride - PriceOverrideReasonAccessBean
    • Method Detail

      • getRequestProperties

        public TypedProperty getRequestProperties()
        This method returns the request property set within this bean.
        Specified by:
        getRequestProperties in interface InputDataBean
        Returns:
        com.ibm.commerce.datatype.TypedProperty
      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperties)
        This method sets the request properties within this bean.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        aRequestProperties - com.ibm.commerce.datatype.TypedProperty
      • populate

        public void populate()
        This method is used to populate the PriceOverrideReasonDataBean.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
      • getDescription

        public java.lang.String getDescription()
        This method gets the description from the PriceOverrideReasonDescription with a language id from the context. No exception is thrown but null is returned when no description is located.
        Returns:
        String in a native language
      • getDataBeanKeyLanguageId

        public java.lang.Integer getDataBeanKeyLanguageId()
        This method returns the databean key: LanguageId from the CommandContext.
        Returns:
        Integer