java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.contract.objects.AttachmentAccessBean
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.
Constructor Summary | |
---|---|
AttachmentAccessBean() constructor | |
AttachmentAccessBean(javax.ejb.EJBObject o) constructor | |
AttachmentAccessBean(java.lang.String arg0, java.lang.Long arg1,
java.lang.String arg2) constructor |
Method Summary | |
---|---|
void |
commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected
java.lang.String |
defaultJNDIName() |
AttachmentAccessBean |
findByAttachmentURL(java.lang.String arg0) Retrieves the Attachment representing the attachment with the specified attachment URL. |
java.util.Enumeration |
findByTrading(java.lang.Long arg0) Returns an Enumeration of the AttachmentAccessBeans representing all the attachments that the contract has. |
java.util.Enumeration |
findByTradingId(java.lang.Long argTradingId) findByTradingId method comment |
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.Integer |
getCreateMethod() getCreateMethod |
java.lang.String |
getDescription() getDescription |
java.lang.String |
getFilename() getFilename |
java.lang.Long |
getFilesize() getFilesize |
java.lang.String |
getImage1() getImage1 |
java.lang.String |
getImage2() getImage2 |
java.lang.Integer |
getMarkforDelete() getMarkforDelete |
java.lang.String |
getMimeType() This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254). |
java.lang.String |
getMimeTypeEncoding() This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128). |
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 |
getReserved() getReserved |
java.lang.String |
getTimeCreated() This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP. |
java.sql.Timestamp |
getTimeCreatedInEJBType() This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP. |
java.lang.String |
getTimeUpdated() This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP. |
java.sql.Timestamp |
getTimeUpdatedInEJBType() This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP. |
java.lang.String |
getUsage() This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64). |
protected
void |
instantiateEJB() |
protected
boolean |
instantiateEJBByPrimaryKey() |
void |
refreshCopyHelper() Load data from the EJBObject. |
void |
setAttachmentId(java.lang.Long newValue) This method provides access to the ATTACHMENT.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL. |
void |
setAttachmentId(java.lang.String 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 newValue) This method accesses a non-CMP field |
void |
setDescription(java.lang.String newValue) This method accesses a non-CMP field |
void |
setFilename(java.lang.String newValue) This method accesses a non-CMP field |
void |
setFilesize(java.lang.Long newValue) This method accesses a non-CMP field |
void |
setImage1(java.lang.String newValue) This method accesses a non-CMP field |
void |
setImage2(java.lang.String newValue) This method accesses a non-CMP field |
void |
setInitKey_attachmentId(java.lang.String newValue) Set the primary key for this object |
void |
setMarkforDelete(java.lang.Integer newValue) This method accesses a non-CMP field |
void |
setMimeType(java.lang.String newValue) This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254). |
void |
setMimeTypeEncoding(java.lang.String newValue) This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128). |
void |
setOwnerId(java.lang.Long newValue) This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL. |
void |
setOwnerId(java.lang.String newValue) This method provides access to the ATTACHMENT.MEMBER_ID column of DB2 type BIGINT NOT NULL. |
void |
setReserved(java.lang.String newValue) This method accesses a non-CMP field |
void |
setTimeCreated(java.lang.String newValue) This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP. |
void |
setTimeCreated(java.sql.Timestamp newValue) This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP. |
void |
setTimeUpdated(java.lang.String newValue) This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP. |
void |
setTimeUpdated(java.sql.Timestamp newValue) This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP. |
void |
setUsage(java.lang.String newValue) This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public AttachmentAccessBean()
public AttachmentAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
o
- javax.ejb.EJBObjectjava.rmi.RemoteException
public AttachmentAccessBean(java.lang.String arg0, java.lang.Long arg1, java.lang.String arg2) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
arg0
- java.lang.Stringarg1
- java.lang.Longarg2
- java.lang.Stringjavax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail |
---|
public AttachmentAccessBean findByAttachmentURL(java.lang.String arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the Attachment 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 = ?
java.rmi.RemoteException
- The java.rmi.RemoteException
exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException
exceptionjavax.naming.NamingException
- The
javax.naming.NamingException exceptionpublic java.util.Enumeration findByTrading(java.lang.Long arg0) 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'
java.rmi.RemoteException
- The java.rmi.RemoteException
exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException
exceptionjavax.naming.NamingException
- The
javax.naming.NamingException exceptionpublic void setInitKey_attachmentId(java.lang.String newValue)
Set the primary key for this object
newValue
- java.lang.Stringprotected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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).
The following is a description of this column:
The Attachment encoding.
getMimeTypeEncoding
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setMimeTypeEncoding(java.lang.String newValue)
This method provides access to the ATTACHMENT.MIMETYPEENCODING column of DB2 type VARCHAR(128).
The following is a description of this column:
The Attachment encoding.
setMimeTypeEncoding
in interface
AttachmentAccessBeanData
newValue
- java.lang.Stringpublic 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).
getAttachmentId
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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).
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setAttachmentId(java.lang.String 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).
setAttachmentId
in interface
AttachmentAccessBeanData
newValue
- Stringpublic 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).
newValue
- java.lang.Longpublic 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.
getOwnerId
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setOwnerId(java.lang.String 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.
setOwnerId
in interface
AttachmentAccessBeanData
newValue
- Stringpublic 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.
newValue
- java.lang.Longpublic 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).
The following is a description of this column:
The Attachment mimeType.
getMimeType
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setMimeType(java.lang.String newValue)
This method provides access to the ATTACHMENT.MIMETYPE column of DB2 type VARCHAR(254).
The following is a description of this column:
The Attachment mimeType.
setMimeType
in interface
AttachmentAccessBeanData
newValue
- java.lang.Stringpublic 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.
The following is a description of this column:
The last time the Attachment was updated.
getTimeUpdated
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
The following is a description of this column:
The last time the Attachment was updated.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setTimeUpdated(java.lang.String newValue)
This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP.
The following is a description of this column:
The last time the Attachment was updated.
setTimeUpdated
in interface
AttachmentAccessBeanData
newValue
- Stringpublic void setTimeUpdated(java.sql.Timestamp newValue)
This method provides access to the ATTACHMENT.TIMEUPDATED column of DB2 type TIMESTAMP.
The following is a description of this column:
The last time the Attachment was updated.
newValue
- java.sql.Timestamppublic 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).
The following is a description of this column:
Foreign key to the attachment usage (ATTACHUSG) table.
getUsage
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setUsage(java.lang.String newValue)
This method provides access to the ATTACHMENT.ATTACHUSG_ID column of DB2 type CHAR(64).
The following is a description of this column:
Foreign key to the attachment usage (ATTACHUSG) table.
setUsage
in interface
AttachmentAccessBeanData
newValue
- java.lang.Stringpublic 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.
The following is a description of this column:
The Attachment creation time.
getTimeCreated
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
The following is a description of this column:
The Attachment creation time.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void setTimeCreated(java.lang.String newValue)
This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP.
The following is a description of this column:
The Attachment creation time.
setTimeCreated
in interface
AttachmentAccessBeanData
newValue
- Stringpublic void setTimeCreated(java.sql.Timestamp newValue)
This method provides access to the ATTACHMENT.TIMECREATED column of DB2 type TIMESTAMP.
The following is a description of this column:
The Attachment creation time.
newValue
- java.sql.Timestamppublic 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.
getAttachmentURL
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
setAttachmentURL
in interface
AttachmentAccessBeanData
newValue
- java.lang.Stringpublic java.lang.String getFilename() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getFilename
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setFilename(java.lang.String newValue)
setFilename
in interface
AttachmentAccessBeanData
newValue
- The file name of the
attachment.public java.lang.String getReserved() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getReserved
in interface
AttachmentAccessBeanData
javax.naming.NamingException
- The
javax.naming.NamingException exception.java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setReserved(java.lang.String newValue)
setReserved
in interface
AttachmentAccessBeanData
newValue
- Indicates whether the attachment is
reserved.public java.lang.Integer getCreateMethod() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getCreateMethod
in interface
AttachmentAccessBeanData
javax.naming.NamingException
- The
javax.naming.NamingException exception.java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setCreateMethod(java.lang.Integer newValue)
setCreateMethod
in interface
AttachmentAccessBeanData
newValue
- The create method of the
attachment.public java.lang.Integer getMarkforDelete() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getMarkforDelete
in interface
AttachmentAccessBeanData
javax.naming.NamingException
- The
javax.naming.NamingException exception.java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setMarkforDelete(java.lang.Integer newValue)
setMarkforDelete
in interface
AttachmentAccessBeanData
newValue
- 0 if not marked for delete; 1 if marked for
delete.public java.lang.String getImage2() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getImage2
in interface
AttachmentAccessBeanData
javax.naming.NamingException
- The
javax.naming.NamingException exception.java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setImage2(java.lang.String newValue)
setImage2
in interface
AttachmentAccessBeanData
newValue
- The image associated with the
attachment.public java.lang.String getImage1() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getImage1
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setImage1(java.lang.String newValue)
setImage1
in interface
AttachmentAccessBeanData
newValue
- The image associated with the
attachment.public java.lang.String getDescription() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getDescription
in interface
AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setDescription(java.lang.String newValue)
setDescription
in interface
AttachmentAccessBeanData
newValue
- The description of the
attachment.public java.lang.Long getFilesize() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getFilesize
in interface
AttachmentAccessBeanData
javax.naming.NamingException
- The
javax.naming.NamingException exception.java.rmi.RemoteException
- The java.rmi.RemoteException
exception.javax.ejb.CreateException
javax.ejb.FinderException
public void setFilesize(java.lang.Long newValue)
setFilesize
in interface
AttachmentAccessBeanData
newValue
- The file size of the
attachment.public java.util.Enumeration findByTradingId(java.lang.Long argTradingId) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
argTradingId
- java.lang.Longjava.rmi.RemoteException
- The exception description.javax.ejb.FinderException
- The exception description.javax.naming.NamingException