com.ibm.commerce.catalogmanagement.commands

Interface AttributeValueAddCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    AttributeValueAddCmdImpl


    public interface AttributeValueAddCmd
    extends ControllerCommand
    The AttributeValueAddCmd is a URL and controller command that:
    • Adds a new attribute value to an exisiting catalog entry (product or item). Note that once the attribute type is set, it cannot be changed.
    • If catalog entry ID is not supplied, then the attribute value will be assigned to catalog entry ID = 0, which is the product attribute value.
    • If the attribute value ID and language ID are given, providing that an entry exists with the given attribute value ID and store default language ID, it will create a new entry in the attribute value table using the specified value.
    Parameters:
    • Most fields in ATTRVALUE table except for Market Place Edition related columns and IBM internal use columns.
    • Catalog entry ID = 0 for product attribute value. Most fields in ATTRVALUE table except for Market Place Edition related columns and IBM internal use columns.
    • Attribute value ID and language ID. And most fields in ATTRVALUE table except for Market Place Edition related columns and IBM internal use columns.
    Access Beans:
    • AttributeValue
    Task Commands: AddAttributeValueCmd
    Other Controller Commands: None
    Mandatory Parameters: attributeId, attrtypeId, name (if catentryId no supplied, then catentryId=0)
    Additional Parameters: None
    Optional Parameters: catentryId, field1, field2, field3, image1, image2, seq, descLangId, URL, value or (integerValue, floatValue, stringValue)
    Default Value: descLangId = language ID from command context, name = value.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        static final java.lang.String CLASSNAME
        The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatalogEntryDeleteCmd".
        See Also:
        Constant Field Values
    • Method Detail

      • getAttributeId

        java.lang.Long getAttributeId()
        Gets the attribute ID for the attribute value.
        Returns:
        the attribute ID
      • getAttrvalueId

        java.lang.Long getAttrvalueId()
        Gets the attribute value ID.
        Returns:
        the attribute value ID
      • getCatentryId

        java.lang.Long getCatentryId()
        Gets the catalog entry ID. For product attribute value, the catalog entry Id for the attribute value is set to 0.
        Returns:
        the catalog entry ID
      • getSequence

        java.lang.Double getSequence()
        Gets the sequence number for the attribute value.
        Returns:
        the sequence number of attribute value
      • setAttributeId

        void setAttributeId(java.lang.Long anAttributeId)
        Sets the attribute ID.
        Parameters:
        abAttributeId - the attribute ID
      • setAttrtypeId

        void setAttrtypeId(java.lang.String astrAttrtypeId)
        Sets the attribute type ID. Attribute types includ:
        • String
        • Integer
        • Float
        Parameters:
        astrAttrtypeId - the attribute type ID of the attribute value
      • setAttrvalueId

        void setAttrvalueId(java.lang.Long anAttrvalueId)
        Sets the attribute value ID.
        Parameters:
        anAttrvalueId - the attribute value ID
      • setCatentryId

        void setCatentryId(java.lang.Long anCatentryId)
        Sets the catalog entry ID. For product attribute value, catalog entry ID is set to 0.
        Parameters:
        anCatentryId - the catalog entry ID
      • setDescLanguage

        void setDescLanguage(java.lang.Integer anDescLanguage)
        Sets the language ID for the attribute value.
        Parameters:
        anDescLanguage - the language ID
      • setField1

        void setField1(java.lang.Integer anField1)
        Sets field 1 of the attribute value.
        Parameters:
        anField1 - customizable field 1
      • setField2

        void setField2(java.lang.String astrField2)
        Sets field 2 of the attribute value.
        Parameters:
        astrField2 - customizable field 2
      • setField3

        void setField3(java.lang.String astrField3)
        Sets field 3 of the attribute value.
        Parameters:
        astrField3 - customizable field 3
      • setFloatvalue

        void setFloatvalue(java.lang.Double adFloatvalue)
        Sets the float value of the attribute value.
        Parameters:
        adFloatvalue - the float value of the attribute value
      • setImage1

        void setImage1(java.lang.String astrImage1)
        Sets the path of image 1 of the attribute value.
        Parameters:
        astrImage1 - the first image of the attribute value
      • setImage2

        void setImage2(java.lang.String astrImage2)
        Sets the path of image 2 of the attribute value.
        Parameters:
        astrImage2 - the second image of the attribute value
      • setIntegervalue

        void setIntegervalue(java.lang.Integer anIntegervalue)
        Sets the integer value of the attribute value.
        Parameters:
        anIntegervalue - the integer value of the attribute value
      • setName

        void setName(java.lang.String astrName)
        Sets the attribute value name. If not set, it is equal to the value of the attribute value.
        Parameters:
        astrName - the name of the attribute value
      • setOID

        void setOID(java.lang.String astrOID)
        Sets the object identifier of the attribute value.
        Parameters:
        astrOID - the attribute value object identifier
      • setSequence

        void setSequence(java.lang.Double adSequence)
        Sets the sequence number of the attribute value.
        Parameters:
        adSequence - the sequence number
      • setStringvalue

        void setStringvalue(java.lang.String astrStringvalue)
        Sets the string value of the attribute value.
        Parameters:
        astrStringvalue - the string value of then attribute value
      • setURL

        void setURL(java.lang.String astrURL)
        Sets the redirect URL.
        Parameters:
        astrURL - the redirect URL
      • setValue

        void setValue(java.lang.String astrValue)
        Sets the value of the attribute value. If the value is set, then there is no need to use setFloatvalue, setIntegervalue, or setStringvalue. Depending on the attribute type of the attribute value, the value will be set correspondingly.
        Parameters:
        astrValue - the value of the attribute value