public class AttributeValueUpdateCmdImpl extends ControllerCommandImpl implements AttributeValueUpdateCmd
AttributeValueUpdateCmd
is a URL and controller command that updates an existing attribute value. "fr_Red"to
"fr_Blue").
ATTRVALUE
table except for Market Place Edition related columns and IBM internal use columns.
AttributeValue
UpdateAttributeValueCmd
attrvalueId
, or attributeId + catentryId + name
descLangId
, URL descLangId
= language ID from command contact. name = valueModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.AttributeValueUpdateCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
AttributeValueUpdateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAttributeId()
Get the attribute Id
|
java.lang.Long |
getAttrvalueId()
Get the attribute value Id
|
java.lang.Long |
getCatentryId()
Get the catalog entry Id
|
java.lang.Integer |
getDescLanguage()
Get the description language
|
java.lang.Integer |
getField1()
Get field 1 of the attribute value
|
java.lang.String |
getField2()
Get field 2 of the attribute value
|
java.lang.String |
getField3()
Get field 3 of the attribute value
|
java.lang.Double |
getFloatvalue()
Get the float value of the attribute value
|
java.lang.String |
getImage1()
Get image 1 of the attribute value
|
java.lang.String |
getImage2()
Get image 2 of the attribute value
|
java.lang.Integer |
getIntegervalue()
Get the integer value of the attribute value
|
java.lang.String |
getName()
Get the attribute value name
|
java.lang.String |
getOID()
Get the object identifier
|
java.lang.Double |
getSequence()
Get sequence number
|
java.lang.String |
getStringvalue()
Get the string value of the attribute value
|
java.lang.String |
getURL()
Get the redirect URL
|
java.lang.String |
getValue()
Get value of the attribute value
If value is get, then there is no need to use getFloatvalue, getIntegervalue, getStringvalue.
|
void |
performExecute()
The main program for
AttributeValueUpdate command. |
void |
reset()
This method reset all the variables used in
AttributeValueUpdate command. |
void |
setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id
|
void |
setAttrvalueId(java.lang.Long anAttrvalueId)
Set the attribute value Id
|
void |
setCatentryId(java.lang.Long anCatentryId)
Set a catalog entry Id
|
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set language Id of the attribute value
|
void |
setField1(java.lang.Integer anField1)
Set field 1 of the attribute value
|
void |
setField2(java.lang.String astrField2)
Set field 2 of the attribute value
|
void |
setField3(java.lang.String astrField3)
Set field 3 of the attribute value
|
void |
setFloatvalue(java.lang.Double adFloatvalue)
Set the float value of the attribute value
|
void |
setImage1(java.lang.String astrImage1)
Set image 1 of the attribute value
|
void |
setImage2(java.lang.String astrImage2)
Set image 2 of the attribute value
|
void |
setIntegervalue(java.lang.Integer anIntegervalue)
Set the integer value of the attribute value
|
void |
setName(java.lang.String astrName)
Set the attribute value name
|
void |
setOID(java.lang.String astrOID)
Set the object identifier of the attribute value
|
void |
setProductAttributeValue(java.lang.String astrProductAttributeValue)
Set the value of the product attribute value
It is used to determine the attribute value ID if it is not given
by the user.
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
AttributeValueUpdate command. |
void |
setSequence(java.lang.Double adSequence)
Set the sequence number
|
void |
setStringvalue(java.lang.String astrStringvalue)
Set the string value of the attribute value
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
setValue(java.lang.String astrValue)
Set the value of the attribute value.
|
void |
validateParameters()
This method validates the parameters for
AttributeValueAdd command |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getAttributeId()
getAttributeId
in interface AttributeValueUpdateCmd
public java.lang.Long getAttrvalueId()
getAttrvalueId
in interface AttributeValueUpdateCmd
public java.lang.Long getCatentryId()
getCatentryId
in interface AttributeValueUpdateCmd
public java.lang.Integer getDescLanguage()
public java.lang.Integer getField1()
public java.lang.String getField2()
public java.lang.String getField3()
public java.lang.Double getFloatvalue()
public java.lang.String getImage1()
public java.lang.String getImage2()
public java.lang.Integer getIntegervalue()
public java.lang.String getName()
public java.lang.String getOID()
public java.lang.Double getSequence()
public java.lang.String getStringvalue()
public java.lang.String getURL()
public java.lang.String getValue()
public void performExecute() throws ECException
AttributeValueUpdate
command.
This method calls the UpdateAttributeValueCmd
task command and then sets attribute value ID, attribute ID, catalog entry ID, and description language in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
AttributeValueUpdate
command.reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAttributeId(java.lang.Long anAttributeId)
setAttributeId
in interface AttributeValueUpdateCmd
anAttributeId
- java.lang.Longpublic void setAttrvalueId(java.lang.Long anAttrvalueId)
setAttrvalueId
in interface AttributeValueUpdateCmd
anAttrvalueId
- java.lang.Longpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface AttributeValueUpdateCmd
anCatentryId
- java.lang.Longpublic void setDescLanguage(java.lang.Integer anDescLanguage)
setDescLanguage
in interface AttributeValueUpdateCmd
anDescLanguage
- java.lang.Integerpublic void setField1(java.lang.Integer anField1)
setField1
in interface AttributeValueUpdateCmd
anField1
- java.lang.Integerpublic void setField2(java.lang.String astrField2)
setField2
in interface AttributeValueUpdateCmd
astrField2
- java.lang.Stringpublic void setField3(java.lang.String astrField3)
setField3
in interface AttributeValueUpdateCmd
astrField3
- java.lang.Stringpublic void setFloatvalue(java.lang.Double adFloatvalue)
setFloatvalue
in interface AttributeValueUpdateCmd
adFloatvalue
- java.lang.Doublepublic void setImage1(java.lang.String astrImage1)
setImage1
in interface AttributeValueUpdateCmd
astrImage1
- java.lang.Stringpublic void setImage2(java.lang.String astrImage2)
setImage2
in interface AttributeValueUpdateCmd
astrImage2
- java.lang.Stringpublic void setIntegervalue(java.lang.Integer anIntegervalue)
setIntegervalue
in interface AttributeValueUpdateCmd
anIntegervalue
- java.lang.Integerpublic void setName(java.lang.String astrName)
setName
in interface AttributeValueUpdateCmd
astrName
- java.lang.Stringpublic void setOID(java.lang.String astrOID)
setOID
in interface AttributeValueUpdateCmd
astrOID
- java.lang.Stringpublic void setProductAttributeValue(java.lang.String astrProductAttributeValue)
setProductAttributeValue
in interface AttributeValueUpdateCmd
astrProductAttributeValue
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
AttributeValueUpdate
command.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setSequence(java.lang.Double adSequence)
setSequence
in interface AttributeValueUpdateCmd
adSequence
- java.lang.Doublepublic void setStringvalue(java.lang.String astrStringvalue)
setStringvalue
in interface AttributeValueUpdateCmd
astrStringvalue
- java.lang.Stringpublic void setURL(java.lang.String astrURL)
setURL
in interface AttributeValueUpdateCmd
astrURL
- java.lang.Stringpublic void setValue(java.lang.String astrValue)
setValue
in interface AttributeValueUpdateCmd
astrValue
- java.lang.Stringpublic void validateParameters() throws ECException
AttributeValueAdd
commandvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException