Class UpdateExperimentCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, UpdateExperimentCmd,,,,,,

    public class UpdateExperimentCmdImpl
    extends TaskCommandImpl
    implements UpdateExperimentCmd
    This class implements the UpdateExperimentCmd interface to provide the task command that updates an experiment. Different implementations of this interface can be provided for different stores.
    See Also:
    Serialized Form
    • Field Detail


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

      • UpdateExperimentCmdImpl

        public UpdateExperimentCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if the experiment ID is null.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if the command is ready to be called.
      • performExecute

        public void performExecute()
                            throws ECException
        Performs the execution of the command.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - Thrown when an exception occurred while this method attempted to update the experiment in the database or refresh the experiment cache registry.
        See Also:
      • setDescription

        public void setDescription(java.lang.String description)
        This method sets the description of the experiment to be updated.
        Specified by:
        setDescription in interface UpdateExperimentCmd
        description - The description of the experiment.
      • setEndDate

        public void setEndDate(java.sql.Timestamp endDate)
        This method sets the end date of the experiment to be updated.
        Specified by:
        setEndDate in interface UpdateExperimentCmd
        endDate - The end date of the experiment.
      • setExperimentId

        public void setExperimentId(java.lang.Integer experimentId)
        This method sets the ID of the experiment to be updated.
        Specified by:
        setExperimentId in interface UpdateExperimentCmd
        experimentId - The ID of the experiment.
      • setExpireCount

        public void setExpireCount(java.lang.Integer expireCount)
        This method sets the expire count of the experiment to be updated, which is used to determine the number of customers to display the experiment to before the experiment expires.
        Specified by:
        setExpireCount in interface UpdateExperimentCmd
        expireCount - The expire count of the experiment.
      • setExpTypeId

        public void setExpTypeId(java.lang.Integer expTypeId)
        This method sets the ID of the experiment type to which the experiment is assigned.
        Specified by:
        setExpTypeId in interface UpdateExperimentCmd
        expTypeId - The ID of the experiment type.
      • setLastUpdate

        public void setLastUpdate(java.sql.Timestamp lastUpdate)
        This method sets the last updated date of the experiment to be updated.
        Specified by:
        setLastUpdate in interface UpdateExperimentCmd
        lastUpdate - The last updated date of experiment.
      • setLastUpdatedBy

        public void setLastUpdatedBy(java.lang.String lastUpdatedBy)
        This method sets the logon ID of the user who updates the experiment.
        Specified by:
        setLastUpdatedBy in interface UpdateExperimentCmd
        lastUpdatedBy - The logon ID of the user.
      • setName

        public void setName(java.lang.String name)
        This method sets the name of the experiment to be updated.
        Specified by:
        setName in interface UpdateExperimentCmd
        name - The name of the experiment.
      • setPreferredElement

        public void setPreferredElement(java.lang.Short preferredElement)
        This method sets the preferred element of the experiment to be updated.
        Specified by:
        setPreferredElement in interface UpdateExperimentCmd
        preferredElement - The preferred element of the experiment.
      • setPriority

        public void setPriority(java.lang.Short priority)
        This method sets the priority of the experiment to be updated.
        Specified by:
        setPriority in interface UpdateExperimentCmd
        priority - The priority of the experiment.
      • setResultScope

        public void setResultScope(java.lang.String resultScope)
        This method sets the result scope of the experiment to be updated.
        Specified by:
        setResultScope in interface UpdateExperimentCmd
        resultScope - The result scope of the experiment.
      • setRuleXml

        public void setRuleXml(java.lang.String ruleXml)
        This method sets the rule XML document of the experiment to be updated.
        Specified by:
        setRuleXml in interface UpdateExperimentCmd
        ruleXml - The rule XML document of the experiment.
      • setStartDate

        public void setStartDate(java.sql.Timestamp startDate)
        This method sets the start date of the experiment to be updated.
        Specified by:
        setStartDate in interface UpdateExperimentCmd
        startDate - The start date of the experiment.
      • setStatus

        public void setStatus(java.lang.String status)
        This method sets the status of the experiment to be updated.
        Specified by:
        setStatus in interface UpdateExperimentCmd
        status - The status of the experiment.
      • setStoreId

        public void setStoreId(java.lang.Integer storeId)
        This method sets the ID of the store to which the experiment to be updated belongs.
        Specified by:
        setStoreId in interface UpdateExperimentCmd
        storeId - The ID of the store to which the experiment belongs.