com.ibm.commerce.catalogmanagement.commands

Interface ProductAttributeUpdateCmd

  • 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:
    ProductAttributeUpdateCmdImpl


    public interface ProductAttributeUpdateCmd
    extends ControllerCommand
    The ProductAttributeUpdateCmd is a URL and controller command that:
    • Updates an existing attribute. Note that attribute type cannot be changed.
    • If a new language ID is supplied, then ProductAttributeAddCmd will be called to create the attribute in the secondary language.
    Parameters:
    • Most fields in the ATTRIBUTE table except for Market Place Edition related columns and IBM internal use columns.
    • Most fields in the ATTRIBUTE table except for Market Place Edition related columns and IBM internal use columns.
    Access Beans:
    • AttributeAccessBean
    • AttributeAccessBean
    Task Commands: UpdateAttributeCmd
    Other Controller Commands: None.
    Mandatory Parameters: attributeId, or catentryId and name.
    Additional Parameters: None.
    Optional Parameters: attrtypeId, desc, desc2, field1, descLangId, seq, URL.
    Default Value: descLangId = language ID from command context.
    • 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.ProductAttributeUpdateCmd".
        See Also:
        Constant Field Values
    • Method Detail

      • getAttributeId

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

        java.lang.Long getCatentryId()
        Gets the catalog entry ID.
        Returns:
        the catalog entry ID
      • setAttributeId

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

        void setAttrLangId(java.lang.Integer anAttrLangId)
        Sets the language ID of the attribute.
        Parameters:
        anAttrLangId - the language ID
      • setCatentryId

        void setCatentryId(java.lang.Long anCatentryId)
        Sets the catalog entry ID.
        Parameters:
        anCatentryId - the catalog entry ID
      • setDescription

        void setDescription(java.lang.String astrDescription)
        Sets the description of the attribute.
        Parameters:
        astrDescription - the description of the attribute
      • setDescription2

        void setDescription2(java.lang.String astrDescription2)
        Sets the second description of the attribute.
        Parameters:
        astrDescription2 - the second description of the attribute
      • setField1

        void setField1(java.lang.String astrField1)
        Sets field 1 of the attribute.
        Parameters:
        astrField1 - customizable field 1
      • setName

        void setName(java.lang.String astrName)
        Sets the attribute name.
        Parameters:
        astrName - the attribute name
      • setOID

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

        void setSequence(java.lang.Double anSequence)
        Sets the sequence number of the attribute.
        Parameters:
        anSequence - the sequence number
      • setURL

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

        void setUsage(java.lang.String astrUsage)
        Sets the usage of the attribute:
        • NULL or "1" indicates SKU-resolution. A defining attribute.
        • "2" or any other characters indicates a descriptive attribute and will not be used to resolve SKUs.
        Parameters:
        astrUsage - the attribute usage