com.ibm.commerce.catalog.beans

Class AttributeValueDataBean

  • All Implemented Interfaces:
    java.io.Serializable


    public class AttributeValueDataBean
    extends AttributeValueAccessBean
    This bean represents an attribute value of a catalog entry. Attribute values are the property of an attribute such as a specific color (blue or yellow) or size (medium).

    You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.

    Access Beans: AttributeValue

    Mandatory Parameters (for single row retrieval):

    • attribute value ID

    Some hints and tips for using this data bean are:

    • It is important to set the attribute value ID value before activating the data bean
    • You can set parameters using the constructor, or setters

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public java.lang.String istrAttributeId
        The attribute ID of the attribute value.
      • istrName

        public java.lang.String istrName
        Name of the attribute value.
      • istrCatalogEntryId

        public java.lang.String istrCatalogEntryId
        The catalog entry ID to which the attribute value belongs to.
    • Constructor Detail

      • AttributeValueDataBean

        public AttributeValueDataBean()
        Creates an empty attribute value data bean.
      • AttributeValueDataBean

        public AttributeValueDataBean(AttributeValueAccessBean abAttributeValue)
        Constructor of the AttributeValueDataBean using an AttributeValueAccessBean
        Parameters:
        abAttributeValue - an AttributeValueAccessBean that represent an attribute value
    • Method Detail

      • getAttributeDataBean

        public AttributeDataBean getAttributeDataBean()
        Gets the AttributeDataBean that represents the attribute of the attribute value.
      • getAttributeId

        public java.lang.String getAttributeId()
        Gets the attribute ID of the attribute value.
        Returns:
        the attribute ID
      • getAttributeValueId

        public java.lang.String getAttributeValueId()
        Gets the attribute value ID.
        Returns:
        attribute value ID
      • getCatalogEntryId

        public java.lang.String getCatalogEntryId()
        Gets the catalog entry ID that owns the attribute value.
        Returns:
        catalog entry ID
      • getCommandContext

        public CommandContext getCommandContext()
        Gets the command context set within this bean.
        Returns:
        command context
      • getLanguageId

        public java.lang.String getLanguageId()
        Gets the language ID of the attribute value.
        Returns:
        the language ID
      • getName

        public java.lang.String getName()
        Gets the language dependent name of the attribute value.
        Overrides:
        getName in class AttributeValueAccessBean
        Returns:
        the name of the attribute value
      • getValue

        public java.lang.String getValue()
        Gets the value of the attribute value in the form of a String.
        Returns:
        value of the attribute value
      • populate

        public void populate()
                      throws java.lang.Exception
        Loads data into the data bean when the DataBeanManager.activate() runs.
        Throws:
        java.lang.Exception
      • setAttributeId

        public void setAttributeId(java.lang.String newAttributeId)
        Sets the attribute ID of the attribute value.
        Parameters:
        newAttributeId - the attribute ID
      • setAttributeValueId

        public void setAttributeValueId(java.lang.String newAttributeValueId)
        Sets the attribute value ID of the attribute value.
        Parameters:
        newAttributeValueId - the attribute value ID
      • setCatalogEntryId

        public void setCatalogEntryId(java.lang.String newCatalogEntryId)
        Sets the catalog entry ID to which the attribute value belongs.
        Parameters:
        newCatalogEntryId - the catalog entry ID
      • setCommandContext

        public void setCommandContext(CommandContext newCommandContext)
        Sets the command context within this bean.
        Parameters:
        newCommandContext - the command context
      • setLanguageId

        public void setLanguageId(java.lang.String newLanguageId)
        Sets the language ID for the attribute. The language ID value must be equal to an entry in the LANGUAGE database table.
        Parameters:
        newLanguageId - the language ID
      • setName

        public void setName(java.lang.String newName)
        Sets the language dependent name of the attribute value.
        Overrides:
        setName in class AttributeValueAccessBean
        Parameters:
        newName - name of the attribute value