com.ibm.commerce.utf.commands

Class CreateRFQItemAttributeCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreateRFQItemAttributeCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CreateRFQItemAttributeCmdImpl
    extends TaskCommandImpl
    implements CreateRFQItemAttributeCmd
    Creates standard product attribute values for an RFQ item.

    An RFQ item may or may not have all the attributes of its parent product. This command stores the values for the inherited attributes.

    This is the default implementation of the CreateRFQItemAttributeCmd. This command uses the following Data Beans:

    • RFQProductAttributes
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • attributeVector

        public java.util.Vector attributeVector
        Attribute Vector.
      • catentryId

        public java.lang.Long catentryId
        Catentry Id.
      • languageId

        public java.lang.Integer languageId
        Language Id.
    • Constructor Detail

      • CreateRFQItemAttributeCmdImpl

        public CreateRFQItemAttributeCmdImpl()
        Default Constructor.
    • Method Detail

      • reset

        public void reset()
        Reset the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • getAttributeVector

        public java.util.Vector getAttributeVector()
        Retrieves the list of attributes.
        Returns:
        The list of standard attributes.
      • getCatentryId

        public java.lang.Long getCatentryId()
        Retrieves the catalog entry ID.
        Returns:
        The catalog entry ID.
      • getLanguageId

        public java.lang.Integer getLanguageId()
        Retrieves the language identifier.
        Returns:
        The language identifier.
      • setAttributeVector

        public void setAttributeVector(java.util.Vector newAttributeVector)
        Stores the list of inherited standard attributes.
        Specified by:
        setAttributeVector in interface CreateRFQItemAttributeCmd
        Parameters:
        newAttributeVector - The list of standard attributes.
      • setCatentryId

        public void setCatentryId(java.lang.Long newCatentryId)
        Stores the catalog entry ID.
        Specified by:
        setCatentryId in interface CreateRFQItemAttributeCmd
        Parameters:
        newCatentryId - The catalog entry ID.
      • setLanguageId

        public void setLanguageId(java.lang.Integer newLanguageId)
        Stores the language identifier.
        Specified by:
        setLanguageId in interface CreateRFQItemAttributeCmd
        Parameters:
        languageId - The language identifier.
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method does the following:
        1. Verifies that a catalog entry ID has been provided.
        2. Verifies that a list of standard attributes has been provided.
        3. Verifies that a language identifier has been provided.

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECApplicationException -
        • If the catalog entry ID has not been provided.
        • If the list of standard attributes is empty.
        • If the language identifier has not been provided.
        ECException
        See Also:
        ECCommand#validateParameters()