com.ibm.commerce.contract.beans

Class AttachmentDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, AttachmentInputDataBean, AttachmentSmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable


    public class AttachmentDataBean
    extends AttachmentDataBeanBase
    implements AttachmentInputDataBean, AttachmentSmartDataBean
    This data bean represents an attachment object. An attachment refers to any information that is attached to a contract.

    Prerequisite parameters:
  • WCSAttachmentId: the attachment id


  • It is used when getting the attachment data from the database.
    This data bean maps to the ATTACHMENT database table.
See Also:
Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice field.
      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttachmentDataBean()
      Constructs AttachmentDataBean, initializes fields to null.
      AttachmentDataBean(com.ibm.commerce.contract.objects.AttachmentAccessBean anAccessBean)
      Constructs AttachmentDataBean, initializes from anAccessBean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Gets the command context set within this data bean.
      java.lang.String getDataBeanKeyAttachmentId()
      Gets the attachment ID.
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Gets the request property set within this data bean.
      void populate()
      This method is used to populate the AttachmentDataBean.
      void setCommandContext(com.ibm.commerce.command.CommandContext aCommandContext)
      Sets the command context within this data bean.
      void setDataBeanKeyAttachmentId(java.lang.String aAttachmentId)
      Sets the attachment ID.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperty)
      Sets the request property within this data bean.
      • Methods inherited from class com.ibm.commerce.contract.objects.AttachmentAccessBean

        findByAttachmentURL, findByTrading, findByTradingId, getAttachmentId, getAttachmentIdInEntityType, getAttachmentURL, getCreateMethod, getDescription, getEntity, getFilename, getFilesize, getImage1, getImage2, getMarkforDelete, getMimeType, getMimeTypeEncoding, getOwnerId, getOwnerIdInEntityType, getReserved, getTimeCreated, getTimeCreatedInEntityType, getTimeUpdated, getTimeUpdatedInEntityType, getUsage, instantiateEntity, setAttachmentId, setAttachmentId, setAttachmentURL, setCreateMethod, setDescription, setFilename, setFilesize, setImage1, setImage2, setInitKey_attachmentId, setInitKey_attachmentId, setMarkforDelete, setMimeType, setMimeTypeEncoding, setOwnerId, setOwnerId, setReserved, setTimeCreated, setTimeCreated, setTimeUpdated, setTimeUpdated, setUsage
      • Methods inherited from class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean

        createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • AttachmentDataBean

        public AttachmentDataBean()
        Constructs AttachmentDataBean, initializes fields to null.
      • AttachmentDataBean

        public AttachmentDataBean(com.ibm.commerce.contract.objects.AttachmentAccessBean anAccessBean)
        Constructs AttachmentDataBean, initializes from anAccessBean.
        Parameters:
        anAccessBean - An Attachment access bean.
    • Method Detail

      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Gets the command context set within this data bean.
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        The command context set within this data bean.
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request property set within this data bean.
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        The request property set within this data bean.
      • populate

        public void populate()
        This method is used to populate the AttachmentDataBean. Loads data into the data bean when the DataBeanManager.activate() runs.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception - The java.lang.Exception exception.
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext aCommandContext)
        Sets the command context within this data bean.
        Specified by:
        setCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Parameters:
        aCommandContext - The command context set within this data bean.
      • setDataBeanKeyAttachmentId

        public void setDataBeanKeyAttachmentId(java.lang.String aAttachmentId)
        Sets the attachment ID.
        Specified by:
        setDataBeanKeyAttachmentId in interface AttachmentInputDataBean
        Parameters:
        aAttachmentId - The attachment ID.
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperty)
        Sets the request property within this data bean.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        aRequestProperty - The request property set within this data bean.