public class CreatePAttributeValueCmdImpl extends TaskCommandImpl implements CreatePAttributeValueCmd
This is the default implementation of the CreatePAttributeValueCmd. This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CreatePAttributeValueCmdImpl()
Constructor for CreatePAttributeValueCmdImpl
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer[] | getOperatorsIntoArray(java.lang.Integer operator, java.lang.String[] valueArray)
Processes the single operator that has been input by the user into one or more operators depending on the length of the incoming array of values.
|
java.lang.Long[] | getPAttributeValueIds()
Gets the new personalization attribute value IDs.
|
void | performExecute()
Execute the command.
|
void | reset()
Resets the command.
|
void | setAllowMultipleValues(boolean allowMultipleValues)
(Optional) Sets the allow multiple values flag.
|
void | setAttrName(java.lang.String attrName)
Sets the personalization attribute name.
|
void | setAttrValue(java.lang.String attrValue)
Sets the personalization attribute value.
|
void | setChangeable(java.lang.Integer changeable)
Sets the changeable flag.
|
void | setCorrelationGroup(java.lang.Long correlationGroup)
(Optional) Sets the correlation groups.
|
void | setMandatory(java.lang.Integer mandatory)
Sets the mandatory flag.
|
void | setOperatorId(java.lang.Integer operatorId)
(Optional) Sets the operator ID.
|
void | setOrderItemId(java.lang.Long orderItemId)
(Optional) Sets the order item ID.
|
void | setPAttributeId(java.lang.Long pAttributeId)
Sets the personalization attribute ID.
|
void | setQuantityUnit(java.lang.String quantityUnit)
Sets the quantity unit.
|
void | setRFQProductId(java.lang.Long rFQProductId)
(Optional) Sets the RFQ product ID.
|
void | setRFQResponseProductId(java.lang.Long rfqResponseProductId)
(Optional) Sets the RFQ response product ID.
|
void | setValueDelimiter(java.lang.String valueDelimiter)
(Optional) Sets the value delimiter.
|
void | validateParameters()
Check mandatory parameters.
|
public static final java.lang.String COPYRIGHT
public CreatePAttributeValueCmdImpl()
protected java.lang.Integer[] getOperatorsIntoArray(java.lang.Integer operator, java.lang.String[] valueArray)
Attribute Name = "Length"
Operator = "Inclusive Range"
Value = 20-40
Unit = metre
Essentially, the user has specified that the length should be between 20 and 40 metres, 20 and 40 inclusive. However, this information is parsed out into two sets of detail:
Length >= 20
Length <= 40
Therefore, when saving this information, it becomes necessary to convert a single operator into a set of operators. One for each value, in this case ">=" and "<=".
public void performExecute() throws ECException
public void reset()
public void validateParameters() throws ECException
public void setAttrName(java.lang.String attrName)
public void setAttrValue(java.lang.String attrValue)
public void setQuantityUnit(java.lang.String quantityUnit)
public void setOperatorId(java.lang.Integer operatorId)
public void setRFQProductId(java.lang.Long rFQProductId)
public void setMandatory(java.lang.Integer mandatory)
public void setChangeable(java.lang.Integer changeable)
public void setPAttributeId(java.lang.Long pAttributeId)
public java.lang.Long[] getPAttributeValueIds()
public void setRFQResponseProductId(java.lang.Long rfqResponseProductId)
public void setAllowMultipleValues(boolean allowMultipleValues)
public void setValueDelimiter(java.lang.String valueDelimiter)
public void setCorrelationGroup(java.lang.Long correlationGroup)
public void setOrderItemId(java.lang.Long orderItemId)