public class UpdateExperimentCmdImpl extends TaskCommandImpl implements UpdateExperimentCmd
UpdateExperimentCmd
interface to provide the
task command that updates an experiment. Different implementations of this interface
can be provided for different stores.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
UpdateExperimentCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void |
performExecute()
Performs the execution of the command.
|
void |
setDescription(java.lang.String description)
This method sets the description of the experiment to be updated.
|
void |
setEndDate(java.sql.Timestamp endDate)
This method sets the end date of the experiment to be updated.
|
void |
setExperimentId(java.lang.Integer experimentId)
This method sets the ID of the experiment to be updated.
|
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.
|
void |
setExpTypeId(java.lang.Integer expTypeId)
This method sets the ID of the experiment type to which the experiment is assigned.
|
void |
setLastUpdate(java.sql.Timestamp lastUpdate)
This method sets the last updated date of the experiment to be updated.
|
void |
setLastUpdatedBy(java.lang.String lastUpdatedBy)
This method sets the logon ID of the user who updates the experiment.
|
void |
setName(java.lang.String name)
This method sets the name of the experiment to be updated.
|
void |
setPreferredElement(java.lang.Short preferredElement)
This method sets the preferred element of the experiment to be updated.
|
void |
setPriority(java.lang.Short priority)
This method sets the priority of the experiment to be updated.
|
void |
setResultScope(java.lang.String resultScope)
This method sets the result scope of the experiment to be updated.
|
void |
setRuleXml(java.lang.String ruleXml)
This method sets the rule XML document of the experiment to be updated.
|
void |
setStartDate(java.sql.Timestamp startDate)
This method sets the start date of the experiment to be updated.
|
void |
setStatus(java.lang.String status)
This method sets the status of the experiment to be updated.
|
void |
setStoreId(java.lang.Integer storeId)
This method sets the ID of the store to which the experiment to be updated belongs.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public boolean isReadyToCallExecute()
false
if the experiment ID is null.isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
true
if the command is ready to be called.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
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.ECCommand#performExecute()
public void setDescription(java.lang.String description)
setDescription
in interface UpdateExperimentCmd
description
- The description of the experiment.public void setEndDate(java.sql.Timestamp endDate)
setEndDate
in interface UpdateExperimentCmd
endDate
- The end date of the experiment.public void setExperimentId(java.lang.Integer experimentId)
setExperimentId
in interface UpdateExperimentCmd
experimentId
- The ID of the experiment.public void setExpireCount(java.lang.Integer expireCount)
setExpireCount
in interface UpdateExperimentCmd
expireCount
- The expire count of the experiment.public void setExpTypeId(java.lang.Integer expTypeId)
setExpTypeId
in interface UpdateExperimentCmd
expTypeId
- The ID of the experiment type.public void setLastUpdate(java.sql.Timestamp lastUpdate)
setLastUpdate
in interface UpdateExperimentCmd
lastUpdate
- The last updated date of experiment.public void setLastUpdatedBy(java.lang.String lastUpdatedBy)
setLastUpdatedBy
in interface UpdateExperimentCmd
lastUpdatedBy
- The logon ID of the user.public void setName(java.lang.String name)
setName
in interface UpdateExperimentCmd
name
- The name of the experiment.public void setPreferredElement(java.lang.Short preferredElement)
setPreferredElement
in interface UpdateExperimentCmd
preferredElement
- The preferred element of the experiment.public void setPriority(java.lang.Short priority)
setPriority
in interface UpdateExperimentCmd
priority
- The priority of the experiment.public void setResultScope(java.lang.String resultScope)
setResultScope
in interface UpdateExperimentCmd
resultScope
- The result scope of the experiment.public void setRuleXml(java.lang.String ruleXml)
setRuleXml
in interface UpdateExperimentCmd
ruleXml
- The rule XML document of the experiment.public void setStartDate(java.sql.Timestamp startDate)
setStartDate
in interface UpdateExperimentCmd
startDate
- The start date of the experiment.public void setStatus(java.lang.String status)
setStatus
in interface UpdateExperimentCmd
status
- The status of the experiment.public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface UpdateExperimentCmd
storeId
- The ID of the store to which the experiment belongs.