com.ibm.commerce.tools.ecoupon

Class CreateCouponDiscountCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreateCouponDiscountCmd, ECECouponConstant, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 
    The WC54 coupon feature will be replaced by the WC56 promotion engine coupon feature.

    public class CreateCouponDiscountCmdImpl
    extends TaskCommandImpl
    implements CreateCouponDiscountCmd, ECECouponConstant
    This interface defines a task command for creating calculation code related entries for coupon discounts.

    Behaviour If any of the parameter to this command is missing then it throws ECSystemException.

    The command uses the following access beans: CalculationCodeAccessBean, CalculationCodeDescriptionAccessBean, CalculationRangeAccessBean, CalculationRangeLookupResultAccessBean, CalculationRuleAccessBean, CalculationRuleMemberGroupRelationshipAccessBean, CalculationRuleScaleRelationshipAccessBean, CalculationScaleAccessBean, CatalogEntryCalculationCodeAccessBean, CatalogEntryAccessBean, CatalogEntryCalculationCodeAccessBean, StoreAccessBean, CatalogGroupAccessBean, CatalogGroupCalculationCodeAccessBean.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • CreateCouponDiscountCmdImpl

        public CreateCouponDiscountCmdImpl()
        Deprecated. 
        CreateCouponDiscountCmdImpl calls super().
    • Method Detail

      • createCalCodeBean

        public void createCalCodeBean()
                               throws ECSystemException
        Deprecated. 
        Creates and populates the calculation code bean.
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalDescBean

        public void createCalDescBean()
                               throws ECSystemException
        Deprecated. 
        Creates and populates the calculation code description bean.
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalRangeBean

        public void createCalRangeBean()
                                throws ECSystemException
        Deprecated. 
        Creates and populates the calculation code range bean
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalRuleBean

        public void createCalRuleBean()
                               throws ECSystemException
        Deprecated. 
        Creates and populates the calculation rule bean
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalRuleMgpBean

        public void createCalRuleMgpBean()
                                  throws ECSystemException
        Deprecated. 
        Creates and populates the calculation rule member group bean
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalRuleScaleBean

        public void createCalRuleScaleBean()
                                    throws ECSystemException
        Deprecated. 
        Creates and populates the calculation rule scale bean
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCalScaleBean

        public void createCalScaleBean()
                                throws ECSystemException
        Deprecated. 
        Creates and populates the calculation scale bean
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • createCatencalcd

        public void createCatencalcd()
                              throws ECSystemException
        Deprecated. 
        Creates and populates catalog entry to calculation code mapping.
        Throws:
        ECSystemException - Thown if any EJB related exception occurs.
      • getAdminDescription

        public java.lang.String getAdminDescription()
        Deprecated. 
        Gets the AdminsDescription.
        Returns:
        Description of this calcode for the administrators.
      • getAssignedShopperGroups

        public java.util.Vector getAssignedShopperGroups()
        Deprecated. 
        Gets AssignedShopperGroups.
        Returns:
        The groups of shopper who can avail this calcode.
      • getCalCodeId

        public java.lang.Integer getCalCodeId()
        Deprecated. 
        Gets CalCodeId.
        Specified by:
        getCalCodeId in interface CreateCouponDiscountCmd
        Returns:
        Id of this calcode.
      • getCode

        public java.lang.String getCode()
        Deprecated. 
        Gets Code(Discount Name).
        Returns:
        Name of this calcode.
      • getCurrency

        public java.lang.String getCurrency()
        Deprecated. 
        Gets Currency.
        Returns:
        name of the currency.
      • getDescription

        public java.lang.String getDescription()
        Deprecated. 
        Gets Description.
        Returns:
        The description of the calcode.
      • getDiscountValueVector

        public java.util.Vector getDiscountValueVector()
        Deprecated. 
        Gets DiscountValueVector.
        Returns:
        The discount values associated to this calcode.
      • getDiscSubType

        public java.lang.Integer getDiscSubType()
        Deprecated. 
        Gets DiscountSubType.
        Returns:
        The discount subtype of this calcode.
      • getDiscType

        public java.lang.Integer getDiscType()
        Deprecated. 
        Gets DiscountType
        Returns:
        The discount type of this calcode.
      • getEndTimestamp

        public java.sql.Timestamp getEndTimestamp()
        Deprecated. 
        Gets EndTimestamp.
        Returns:
        Time when this calcode expires.
      • getGroupBy

        public java.lang.Integer getGroupBy()
        Deprecated. 
        Gets GroupBy.
        Returns:
        Whether to group or not.
      • getLangId

        public java.lang.Integer getLangId()
        Deprecated. 
        Gets LanguageId.
        Returns:
        The language identifier.
      • getProduct

        public java.util.Vector getProduct()
        Deprecated. 
        Gets Product set for populating CatenCalCd.
        Returns:
        The product associated with the catencalcd.
      • getRangeFromVector

        public java.util.Vector getRangeFromVector()
        Deprecated. 
        Gets RangeFromeVector.
        Returns:
        Useful for range claculation code
      • getRangeType

        public java.lang.Integer getRangeType()
        Deprecated. 
        Gets Range Type
        Returns:
        The type of the range.
      • getStartTimestamp

        public java.sql.Timestamp getStartTimestamp()
        Deprecated. 
        Gets StartTimestamp.
        Returns:
        The start time of the calculcation code.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        Always returns true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        java.sql.Timestamp
      • setAdminDescription

        public void setAdminDescription(java.lang.String newAdminDescription)
        Deprecated. 
        Sets the AdminsDescription.
        Specified by:
        setAdminDescription in interface CreateCouponDiscountCmd
        Parameters:
        newDescription - The new description to be assigned
      • setAllShoppers

        public void setAllShoppers(boolean newAllShoppers)
        Deprecated. 
        Sets whether all shopper can avail this discount.
        Specified by:
        setAllShoppers in interface CreateCouponDiscountCmd
        Parameters:
        newAllShoppers - true if all shopper can avail this discount
      • setAssignedShopperGroups

        public void setAssignedShopperGroups(java.util.Vector newAssignedShopperGroups)
        Deprecated. 
        Sets AssignedShopperGroups if all shoppers can not avail the discount.
        Specified by:
        setAssignedShopperGroups in interface CreateCouponDiscountCmd
        Parameters:
        newAssignedShopperGroups - The shopper group that can avail this discount.
      • setCalCodeId

        public void setCalCodeId(java.lang.Integer newCalCodeId)
        Deprecated. 
        Sets CalcodeId.
        Parameters:
        newCalCodeId - ID of the calcode.
      • setCategory

        public void setCategory(java.util.Vector newCategory)
        Deprecated. 
        Sets the categories to be included in catgpcalcd table
        Specified by:
        setCategory in interface CreateCouponDiscountCmd
        Parameters:
        paramCategory - The categories to be included in the catgpcalcd table.
      • setCode

        public void setCode(java.lang.String newCode)
        Deprecated. 
        Sets the Discount Name.
        Specified by:
        setCode in interface CreateCouponDiscountCmd
        Parameters:
        newCode - The name of this calculation code.
      • setCurrency

        public void setCurrency(java.lang.String newCurrency)
        Deprecated. 
        Sets Currency for this calculation code.
        Specified by:
        setCurrency in interface CreateCouponDiscountCmd
        Parameters:
        newCurrency - Name of the currency for this calculation code.
      • setDescription

        public void setDescription(java.lang.String newDescription)
        Deprecated. 
        Sets Description.
        Specified by:
        setDescription in interface CreateCouponDiscountCmd
        Parameters:
        newDescription - description of the calculation code
      • setDiscountValueVector

        public void setDiscountValueVector(java.util.Vector newDiscountValueVector)
        Deprecated. 
        Sets DiscountValueVector.
        Specified by:
        setDiscountValueVector in interface CreateCouponDiscountCmd
        Parameters:
        newDiscountValueVector - represents the discounts to be given
      • setDiscSubType

        public void setDiscSubType(java.lang.Integer newDiscSubType)
        Deprecated. 
        Sets the type of discount given.
        Specified by:
        setDiscSubType in interface CreateCouponDiscountCmd
        Parameters:
        newDiscSubType - 0 - percentage discount, 1 - fixed amount discount.
      • setDiscType

        public void setDiscType(java.lang.Integer newDiscType)
        Deprecated. 
        Sets DiscountType.
        Specified by:
        setDiscType in interface CreateCouponDiscountCmd
        Parameters:
        newDiscType - 0 - order level discount, 1 - order item level discount.
      • setEndTimestamp

        public void setEndTimestamp(java.sql.Timestamp newEndTimestamp)
        Deprecated. 
        Sets the end of validity period.
        Specified by:
        setEndTimestamp in interface CreateCouponDiscountCmd
        Parameters:
        newEndTimestamp - The time when the discount becomes invalid.
      • setGroupBy

        public void setGroupBy(java.lang.Integer newGroupBy)
        Deprecated. 
        Sets GroupBy.
        Specified by:
        setGroupBy in interface CreateCouponDiscountCmd
        Parameters:
        newGroupBy - Indicate whether to group or not.
      • setHasDateTimeRange

        public void setHasDateTimeRange(boolean newHasDateTimeRange)
        Deprecated. 
        Indicates whether this calculation code has a date time range.
        Specified by:
        setHasDateTimeRange in interface CreateCouponDiscountCmd
        Parameters:
        new_hasDateTimeRange - true if there is a dateTimeRange.
      • setLangId

        public void setLangId(java.lang.Integer newLangId)
        Deprecated. 
        Sets LanguageId.(Can be removed)
        Parameters:
        newLangId - ID of the language.
      • setProduct

        public void setProduct(java.util.Vector newProduct)
        Deprecated. 
        Sets Product list to be included in Catentcalcd table.
        Specified by:
        setProduct in interface CreateCouponDiscountCmd
        Parameters:
        newProduct - The products to be put in the Catentcalcd table.
      • setRangeFromVector

        public void setRangeFromVector(java.util.Vector newRangeFromVector)
        Deprecated. 
        Sets RangeFromVector.
        Specified by:
        setRangeFromVector in interface CreateCouponDiscountCmd
        Parameters:
        newRangeFromVector - Useful for range claculation code.
      • setRangeType

        public void setRangeType(java.lang.Integer newRangeType)
        Deprecated. 
        Sets RangeType.
        Specified by:
        setRangeType in interface CreateCouponDiscountCmd
        Parameters:
        newRangeType - Indicates the range type.
      • setStartTimestamp

        public void setStartTimestamp(java.sql.Timestamp newStartTimestamp)
        Deprecated. 
        Sets the start time of the calculcation code.
        Specified by:
        setStartTimestamp in interface CreateCouponDiscountCmd
        Parameters:
        newStartTimestamp - The time when the calculation code becomes effective.
      • setStoreId

        public void setStoreId(java.lang.Integer newStoreId)
        Deprecated. 
        Sets StoreId(Can be removed).
        Parameters:
        newStoreId - The ID of the store.