com.ibm.commerce.attachment.commands

Class AddAttachmentRelationCmdImpl

  • All Implemented Interfaces:
    AddAttachmentRelationCmd, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, 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 AddAttachmentRelationCmdImpl
    extends TaskCommandImpl
    implements AddAttachmentRelationCmd
    Creates an attachment relation with the specified parameters:
    • The attachment object type ID of the business object.
    • The primary key, as a string, of the business object.
    • The attachment target ID.
    • The attachment relation usage ID.
    • The sequence.

    Behavior:
    • Creates the attachment relation using the specified parameters
    Access Bean:
    • AttachmentRelationAccessBean
    • StoreEntityAccessBean
    Helper:
    • AttachmentRelationHelper
    See Also:
    Serialized Form
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        Define the CLASSNAME.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddAttachmentRelationCmdImpl

        public AddAttachmentRelationCmdImpl()
    • Method Detail

      • getSequence

        public java.lang.Double getSequence()
        Gets the sequence of the attachment relation.
        Specified by:
        getSequence in interface AddAttachmentRelationCmd
        Returns:
        The attachment relation sequence
      • getAttachmentObjectTypeId

        public java.lang.Integer getAttachmentObjectTypeId()
        Gets the attachment object type ID of the business object that owns the attachment relation.
        Specified by:
        getAttachmentObjectTypeId in interface AddAttachmentRelationCmd
        Returns:
        The attachment object type ID
      • getAttachmentRelationUsageId

        public java.lang.Integer getAttachmentRelationUsageId()
        Gets the attachment relation usage ID used in this attachment relation.
        Specified by:
        getAttachmentRelationUsageId in interface AddAttachmentRelationCmd
        Returns:
        The attachment relation usage ID
      • getAttachmentTargetId

        public java.lang.Long getAttachmentTargetId()
        Gets the attachment target ID used in this attachment relation.
        Specified by:
        getAttachmentTargetId in interface AddAttachmentRelationCmd
        Returns:
        The attachment target ID
      • getObjectId

        public java.lang.String getObjectId()
        Gets the primary key, in the form of a string, of the business object that owns this attachment relation.
        Specified by:
        getObjectId in interface AddAttachmentRelationCmd
        Returns:
        The primary key of the business object
      • reset

        public void reset()
        Resets all the parameters
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setSequence

        public void setSequence(java.lang.Double adSequence)
        Sets the sequence of the attachment relation.
        Specified by:
        setSequence in interface AddAttachmentRelationCmd
        Parameters:
        adSequence - The sequence of the attachment relation
      • setAttachmentObjectTypeId

        public void setAttachmentObjectTypeId(java.lang.Integer anAttachmentObjectTypeId)
        Sets the attachment object type ID of the business object that owns this attachment relation.
        Specified by:
        setAttachmentObjectTypeId in interface AddAttachmentRelationCmd
        Parameters:
        anAttachmentObjectTypeId - The attachment object type ID
      • setAttachmentRelationUsageId

        public void setAttachmentRelationUsageId(java.lang.Integer anAttachmentRelationUsageId)
        Sets the attachment relation usage ID used in this attachment relation.
        Specified by:
        setAttachmentRelationUsageId in interface AddAttachmentRelationCmd
        Parameters:
        anAttachmentRelationUsageId - The attachment relation usage
      • setAttachmentTargetId

        public void setAttachmentTargetId(java.lang.Long anAttachmentTargetId)
        Sets the attachment target ID used in the attachment relation.
        Specified by:
        setAttachmentTargetId in interface AddAttachmentRelationCmd
        Parameters:
        anAttachmentTargetId - The attachment target ID
      • setObjectId

        public void setObjectId(java.lang.String astrObjectId)
        Sets the primary key, in the form of a string, of the business object that owns this attachment relation.
        Specified by:
        setObjectId in interface AddAttachmentRelationCmd
        Parameters:
        astrObjectId -