com.ibm.commerce.contract.objects
Class AttachmentAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.contract.objects.AttachmentAccessBean
All Implemented Interfaces:
AttachmentAccessBeanData, java.io.Serializable

public class AttachmentAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AttachmentAccessBeanData

This bean provides access to the ATTACHMENT table.

The following is a description of this table:

This table contains information about Attachments. An Attachment is a supporting document for a trading document. For example, it can be a specification of a product, or a price list spreadsheet.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
AttachmentAccessBean()
          Default constructor.
AttachmentAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
AttachmentAccessBean(java.lang.String attachmentURL, java.lang.Long ownerId, java.lang.String usage)
          Constructs an AttachmentAccessBean object with the specified attachment URL, owner ID, and usage.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 AttachmentAccessBean findByAttachmentURL(java.lang.String aDByAttachmentURL)
          Retrieves the AttachmentAccessBean representing the attachment with the specified attachment URL.
 java.util.Enumeration findByTrading(java.lang.Long aDByTrading)
          Returns an Enumeration of the AttachmentAccessBeans representing all the attachments that the contract has.
 java.lang.String getAttachmentId()
          This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAttachmentIdInEJBType()
          This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getAttachmentURL()
          This method provides access to the ATTACHMENT.ATTACHMENTURL column of DB2 type VARCHAR(254) NOT NULL.
 java.lang.String getMimeType()
          This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMimeTypeEncoding()
          This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128) NULL.
 java.lang.String getOwnerId()
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOwnerIdInEJBType()
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTimeCreated()
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeUpdated()
          This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getUsage()
          This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAttachmentId(java.lang.Long aAttachmentId)
          This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 void setAttachmentId(java.lang.String aAttachmentId)
          This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 void setAttachmentURL(java.lang.String aAttachmentURL)
          This method provides access to the ATTACHMENT.ATTACHMENTURL column of DB2 type VARCHAR(254) NOT NULL.
 void setInitKey_attachmentId(java.lang.String aInitKey_attachmentId)
          Set the primary key for this object
 void setMimeType(java.lang.String aMimeType)
          This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254) NULL.
 void setMimeTypeEncoding(java.lang.String aMimeTypeEncoding)
          This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128) NULL.
 void setOwnerId(java.lang.Long aOwnerId)
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setOwnerId(java.lang.String aOwnerId)
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setTimeCreated(java.lang.String aTimeCreated)
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.lang.String aTimeUpdated)
          This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setUsage(java.lang.String aUsage)
          This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64) NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentAccessBean

public AttachmentAccessBean()

Default constructor. Maps to findByPrimaryKey.


AttachmentAccessBean

public AttachmentAccessBean(javax.ejb.EJBObject object)
                     throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

AttachmentAccessBean

public AttachmentAccessBean(java.lang.String attachmentURL,
                            java.lang.Long ownerId,
                            java.lang.String usage)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            javax.ejb.FinderException,
                            java.rmi.RemoteException

Constructs an AttachmentAccessBean object with the specified attachment URL, owner ID, and usage.

Parameters:
attachmentURL - The URL of the attachement
ownerId - The ID of the attachment owner.
usage - The usage of th attachment.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByAttachmentURL

public AttachmentAccessBean findByAttachmentURL(java.lang.String aDByAttachmentURL)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

Retrieves the AttachmentAccessBean representing the attachment with the specified attachment URL.

The SQL query used to fetch the required row from the ATTACHMENT table is:

select * from attachment T1 where T1.attachmenturl = ?

Parameters:
attachmentURL - java.lang.String
Returns:
The AttachmentAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByTrading

public java.util.Enumeration findByTrading(java.lang.Long aDByTrading)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Returns an Enumeration of the AttachmentAccessBeans representing all the attachments that the contract has.

The SQL query used to fetch all the required rows from the ATTACHMENT table is:

select * from attachment T1 where T1.attachment_id in (select attachment_id from trdattach where trading_id = ?) and attachusg_id = 'Contract'

Parameters:
tradingId - The ID of the trading agreement.
Returns:
An Enumeration of the AttachmentAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAttachmentId

public java.lang.String getAttachmentId()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID (primary key).

Specified by:
getAttachmentId in interface AttachmentAccessBeanData
Returns:
The ID of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAttachmentIdInEJBType

public java.lang.Long getAttachmentIdInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID (primary key).

Returns:
The last updated time for the attachment
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAttachmentURL

public java.lang.String getAttachmentURL()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the ATTACHMENT.ATTACHMENTURL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The URL of the Attachment.

Specified by:
getAttachmentURL in interface AttachmentAccessBeanData
Returns:
The URL of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMimeType

public java.lang.String getMimeType()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The Attachment mimeType.

Specified by:
getMimeType in interface AttachmentAccessBeanData
Returns:
The mime type of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMimeTypeEncoding

public java.lang.String getMimeTypeEncoding()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128) NULL.

The following is a description of this column:

The Attachment encoding.

Specified by:
getMimeTypeEncoding in interface AttachmentAccessBeanData
Returns:
The encoding of the attachment's mime type.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwnerId

public java.lang.String getOwnerId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Attachment.

Specified by:
getOwnerId in interface AttachmentAccessBeanData
Returns:
The owner ID of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwnerIdInEJBType

public java.lang.Long getOwnerIdInEJBType()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Attachment.

Returns:
The owner ID of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreated

public java.lang.String getTimeCreated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The Attachment creation time.

Specified by:
getTimeCreated in interface AttachmentAccessBeanData
Returns:
The Attachment creation time.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreatedInEJBType

public java.sql.Timestamp getTimeCreatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The Attachment creation time.

Returns:
The Attachment creation time.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdated

public java.lang.String getTimeUpdated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time the Attachment was updated.

Specified by:
getTimeUpdated in interface AttachmentAccessBeanData
Returns:
The last time the Attachment was updated.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdatedInEJBType

public java.sql.Timestamp getTimeUpdatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time the Attachment was updated.

Returns:
The last time the Attachment was updated.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getUsage

public java.lang.String getUsage()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64) NULL.

The following is a description of this column:

Foreign key to the attachment usage (ATTACHUSG) table.

Specified by:
getUsage in interface AttachmentAccessBeanData
Returns:
The usage of the attachment.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setAttachmentId

public void setAttachmentId(java.lang.Long aAttachmentId)

This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID (primary key).

Parameters:
aAttachmentId - The ID of the attachment.
Returns:
void

setAttachmentId

public void setAttachmentId(java.lang.String aAttachmentId)

This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID (primary key).

Specified by:
setAttachmentId in interface AttachmentAccessBeanData
Parameters:
aAttachmentId - The ID of the attachment.
Returns:
void

setAttachmentURL

public void setAttachmentURL(java.lang.String aAttachmentURL)

This method provides access to the ATTACHMENT.ATTACHMENTURL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The URL of the Attachment.

Specified by:
setAttachmentURL in interface AttachmentAccessBeanData
Parameters:
aAttachmentURL - The URL of the attachment.
Returns:
void

setInitKey_attachmentId

public void setInitKey_attachmentId(java.lang.String aInitKey_attachmentId)

Set the primary key for this object

Parameters:
aInitKey_attachmentId - java.lang.String
Returns:
void

setMimeType

public void setMimeType(java.lang.String aMimeType)

This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The Attachment mimeType.

Specified by:
setMimeType in interface AttachmentAccessBeanData
Parameters:
aMimeType - The mime type of the attachment.
Returns:
void

setMimeTypeEncoding

public void setMimeTypeEncoding(java.lang.String aMimeTypeEncoding)

This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128) NULL.

The following is a description of this column:

The Attachment encoding.

Specified by:
setMimeTypeEncoding in interface AttachmentAccessBeanData
Parameters:
aMimeTypeEncoding - The mime type encoding of the attachment.
Returns:
void

setOwnerId

public void setOwnerId(java.lang.Long aOwnerId)

This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Attachment.

Parameters:
aOwnerId - The owner ID of the attachment.
Returns:
void

setOwnerId

public void setOwnerId(java.lang.String aOwnerId)

This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Attachment.

Specified by:
setOwnerId in interface AttachmentAccessBeanData
Parameters:
aOwnerId - The owner ID of the attachment.
Returns:
void

setTimeCreated

public void setTimeCreated(java.lang.String aTimeCreated)

This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The Attachment creation time.

Specified by:
setTimeCreated in interface AttachmentAccessBeanData
Parameters:
aTimeCreated - The created time of the attachment.
Returns:
void

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The Attachment creation time.

Parameters:
aTimeCreated - The created time of the attachment.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.lang.String aTimeUpdated)

This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time the Attachment was updated.

Specified by:
setTimeUpdated in interface AttachmentAccessBeanData
Parameters:
aTimeUpdated - The last updated time of the attachment.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time the Attachment was updated.

Parameters:
aTimeUpdated - The last time the Attachment was updated.
Returns:
void

setUsage

public void setUsage(java.lang.String aUsage)

This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64) NULL.

The following is a description of this column:

Foreign key to the attachment usage (ATTACHUSG) table.

Specified by:
setUsage in interface AttachmentAccessBeanData
Parameters:
aUsage - The usage of the attachment.
Returns:
void