com.ibm.commerce.contract.objimpl
Class AttachmentBeanBase

java.lang.Object
  |
  +--com.ibm.commerce.base.objects.ECEntityBean
        |
        +--com.ibm.commerce.contract.objimpl.AttachmentBeanBase
Direct Known Subclasses:
AttachmentBean

public class AttachmentBeanBase
extends com.ibm.commerce.base.objects.ECEntityBean

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

Field Summary
 java.lang.Long attachmentId
           
 java.lang.String attachmentURL
           
 java.lang.Integer createMethod
          Implemetation field for persistent attribute: createMethod
 java.lang.String description
          Implemetation field for persistent attribute: description
 java.lang.String filename
          Implemetation field for persistent attribute: filename
 java.lang.Long filesize
          Implemetation field for persistent attribute: filesize
 java.lang.String image1
          Implemetation field for persistent attribute: image1
 java.lang.String image2
          Implemetation field for persistent attribute: image2
 java.lang.Integer markforDelete
          Implemetation field for persistent attribute: markforDelete
 java.lang.String mimeType
           
 java.lang.String mimeTypeEncoding
           
 java.lang.Long ownerId
           
 java.lang.String reserved
          Implemetation field for persistent attribute: reserved
 java.sql.Timestamp timeCreated
           
 java.sql.Timestamp timeUpdated
           
 java.lang.String usage
           
 
Constructor Summary
AttachmentBeanBase()
           
 
Method Summary
 com.ibm.commerce.contract.objects.AttachmentKey ejbCreate(java.lang.String argAttachmentURL, java.lang.Long argOwnerId, java.lang.String argUsage)
          Constructs an AttachmentAccessBean object with the specified attachment URL, owner ID, and usage.
 java.lang.Long getAttachmentId()
          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.Integer getCreateMethod()
          This method provides access to the ATTACHMENT.CREATEMETHOD column of DB2 type INTEGER NULL.
 java.lang.String getDescription()
          This method provides access to the ATTACHMENT.DESCRIPTION column of DB2 type VARCHAR (254) NULL.
 java.lang.String getFilename()
          This method provides access to the ATTACHMENT.FILENAME column of DB2 type VARCHAR (254) NULL.
 java.lang.Long getFilesize()
          This method provides access to the ATTACHMENT.FILESIZE column of DB2 type BIGINT NULL.
 java.lang.String getImage1()
          This method provides access to the ATTACHMENT.IMAGE1 column of DB2 type VARCHAR (254) NULL.
 java.lang.String getImage2()
          This method provides access to the ATTACHMENT.IMAGE2 column of DB2 type VARCHAR (254) NULL.
 java.lang.Integer getMarkforDelete()
          This method provides access to the ATTACHMENT.MARKFORDELETE column of DB2 type INTEGER 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.Long getOwnerId()
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getReserved()
          This method provides access to the ATTACHMENT.RESERVED column of DB2 type VARCHAR (254) NULL.
 java.sql.Timestamp getTimeCreated()
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdated()
          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 setAttachmentId(java.lang.Long newValue)
          This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 void setAttachmentURL(java.lang.String newValue)
          This method provides access to the ATTACHMENT.ATTACHMENTURL column of DB2 type VARCHAR(254) NOT NULL.
 void setCreateMethod(java.lang.Integer newCreateMethod)
          This method provides access to the ATTACHMENT.CREATEMETHOD column of DB2 type INTEGER NULL.
 void setDescription(java.lang.String newDescription)
          This method provides access to the ATTACHMENT.DESCRIPTION column of DB2 type VARCHAR (254) NULL.
 void setFilename(java.lang.String newFilename)
          This method provides access to the ATTACHMENT.FILENAME column of DB2 type VARCHAR (254) NULL.
 void setFilesize(java.lang.Long newFilesize)
          This method provides access to the ATTACHMENT.FILESIZE column of DB2 type BIGINT NULL.
 void setImage1(java.lang.String newImage1)
          This method provides access to the ATTACHMENT.IMAGE1 column of DB2 type VARCHAR (254) NULL.
 void setImage2(java.lang.String newImage2)
          This method provides access to the ATTACHMENT.IMAGE2 column of DB2 type VARCHAR (254) NULL.
 void setMarkforDelete(java.lang.Integer newMarkforDelete)
          This method provides access to the ATTACHMENT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMimeType(java.lang.String newValue)
          This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254) NULL.
 void setMimeTypeEncoding(java.lang.String newValue)
          This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128) NULL.
 void setOwnerId(java.lang.Long newValue)
          This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setReserved(java.lang.String newReserved)
          This method provides access to the ATTACHMENT.RESERVED column of DB2 type VARCHAR (254) NULL.
 void setTimeCreated(java.sql.Timestamp newValue)
          This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp newValue)
          This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setUsage(java.lang.String newValue)
          This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64) NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attachmentId

public java.lang.Long attachmentId

attachmentURL

public java.lang.String attachmentURL

mimeType

public java.lang.String mimeType

mimeTypeEncoding

public java.lang.String mimeTypeEncoding

ownerId

public java.lang.Long ownerId

timeCreated

public java.sql.Timestamp timeCreated

timeUpdated

public java.sql.Timestamp timeUpdated

usage

public java.lang.String usage

markforDelete

public java.lang.Integer markforDelete
Implemetation field for persistent attribute: markforDelete

description

public java.lang.String description
Implemetation field for persistent attribute: description

filename

public java.lang.String filename
Implemetation field for persistent attribute: filename

filesize

public java.lang.Long filesize
Implemetation field for persistent attribute: filesize

createMethod

public java.lang.Integer createMethod
Implemetation field for persistent attribute: createMethod

image1

public java.lang.String image1
Implemetation field for persistent attribute: image1

image2

public java.lang.String image2
Implemetation field for persistent attribute: image2

reserved

public java.lang.String reserved
Implemetation field for persistent attribute: reserved
Constructor Detail

AttachmentBeanBase

public AttachmentBeanBase()
Method Detail

ejbCreate

public com.ibm.commerce.contract.objects.AttachmentKey ejbCreate(java.lang.String argAttachmentURL,
                                                                 java.lang.Long argOwnerId,
                                                                 java.lang.String argUsage)
                                                          throws javax.ejb.CreateException,
                                                                 javax.ejb.FinderException,
                                                                 javax.naming.NamingException
Constructs an AttachmentAccessBean object with the specified attachment URL, owner ID, and usage.
Parameters:
argAttachmentURL - The URL of the attachement.
argOwnerId - The ID of the attachment owner.
argUsage - The usage of th attachment.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException
javax.naming.NamingException

getAttachmentId

public java.lang.Long getAttachmentId()

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 ID of the attachment.

getAttachmentURL

public java.lang.String getAttachmentURL()

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.

Returns:
The URL of the attachment.

getMimeType

public java.lang.String getMimeType()

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.

Returns:
The mime type of the attachment.

getMimeTypeEncoding

public java.lang.String getMimeTypeEncoding()

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.

Returns:
The encoding of the attachment's mime type.

getOwnerId

public java.lang.Long getOwnerId()

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.

getTimeCreated

public java.sql.Timestamp getTimeCreated()

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.

getTimeUpdated

public java.sql.Timestamp getTimeUpdated()

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.

getUsage

public java.lang.String getUsage()

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.

Returns:
The usage of the attachment.

setAttachmentId

public void setAttachmentId(java.lang.Long newValue)

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:
newValue - The ID of the attachment.

setAttachmentURL

public void setAttachmentURL(java.lang.String newValue)

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.

Parameters:
newValue - The URL of the attachment.

setMimeType

public void setMimeType(java.lang.String newValue)

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.

Parameters:
newValue - The mime type of the attachment.

setMimeTypeEncoding

public void setMimeTypeEncoding(java.lang.String newValue)

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.

Parameters:
newValue - The encoding of the attachment's mime type.

setOwnerId

public void setOwnerId(java.lang.Long newValue)

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:
newValue - The owner ID of the attachment.

setTimeCreated

public void setTimeCreated(java.sql.Timestamp newValue)

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:
newValue - The Attachment creation time.

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp newValue)

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:
newValue - The last time the Attachment was updated.

setUsage

public void setUsage(java.lang.String newValue)

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.

Parameters:
newValue - The usage of the attachment.

getMarkforDelete

public java.lang.Integer getMarkforDelete()

This method provides access to the ATTACHMENT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates whether the contract has been marked for delete.

Returns:
0 if not marked for delete; 1 if marked for delete.

setMarkforDelete

public void setMarkforDelete(java.lang.Integer newMarkforDelete)

This method provides access to the ATTACHMENT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates whether the contract has been marked for delete.

Parameters:
newMarkforDelete - 0 if not marked for delete; 1 if marked for delete.

getDescription

public java.lang.String getDescription()

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

The following is a description of this column:

The attachment description.

Returns:
The description of the attachment.

setDescription

public void setDescription(java.lang.String newDescription)

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

The following is a description of this column:

The attachment description.

Parameters:
newDescription - The description of the attachment.

getFilename

public java.lang.String getFilename()

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

The following is a description of this column:

The attachment file name.

Returns:
The file name of the attachment.

setFilename

public void setFilename(java.lang.String newFilename)

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

The following is a description of this column:

The attachment file name.

Parameters:
newFilename - The file name of the attachment.

getFilesize

public java.lang.Long getFilesize()

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

The following is a description of this column:

The attachment file size.

Returns:
The file size of the attachment.

setFilesize

public void setFilesize(java.lang.Long newFilesize)

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

The following is a description of this column:

The attachment file size.

Parameters:
newFilesize - The file size of the attachment.

getCreateMethod

public java.lang.Integer getCreateMethod()

This method provides access to the ATTACHMENT.CREATEMETHOD column of DB2 type INTEGER NULL.

The following is a description of this column:

The attachment create method.

Returns:
The create method of the attachment.

setCreateMethod

public void setCreateMethod(java.lang.Integer newCreateMethod)

This method provides access to the ATTACHMENT.CREATEMETHOD column of DB2 type INTEGER NULL.

The following is a description of this column:

The attachment create method.

Parameters:
newCreateMethod - The create method of the attachment.

getImage1

public java.lang.String getImage1()

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

The following is a description of this column:

The image associated with the attachment.

Returns:
The image associated with the attachment.

setImage1

public void setImage1(java.lang.String newImage1)

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

The following is a description of this column:

The image associated with the attachment.

Parameters:
newImage1 - The image associated with the attachment..

getImage2

public java.lang.String getImage2()

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

The following is a description of this column:

The image associated with the attachment.

Returns:
The image associated with the attachment.

setImage2

public void setImage2(java.lang.String newImage2)

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

The following is a description of this column:

The image associated with the attachment.


getReserved

public java.lang.String getReserved()

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

The following is a description of this column:

Indicates whether the attachment is reserved.

Returns:
Indicates whether the attachment is reserved.

setReserved

public void setReserved(java.lang.String newReserved)

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

The following is a description of this column:

Indicates whether the attachment is reserved.

Parameters:
newReserved - Indicates whether the attachment is reserved.