|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.contract.objects.AttachmentAccessBean
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.
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 |
public AttachmentAccessBean()
Default constructor. Maps to findByPrimaryKey.
public AttachmentAccessBean(javax.ejb.EJBObject object) throws java.rmi.RemoteException
Creates an access bean for the specified EJB
object
- The EJB Object used for the access bean construction.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic 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.
attachmentURL
- The URL of the attachementownerId
- The ID of the attachment owner.usage
- The usage of th attachment.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?
attachmentURL
- java.lang.Stringjava.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 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'
tradingId
- The ID of the trading agreement.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getMimeType
in interface AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getMimeTypeEncoding
in interface AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getTimeCreated
in interface AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getTimeUpdated
in interface AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getUsage
in interface AttachmentAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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).
aAttachmentId
- The ID of the attachment.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).
setAttachmentId
in interface AttachmentAccessBeanData
aAttachmentId
- The ID of the attachment.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.
setAttachmentURL
in interface AttachmentAccessBeanData
aAttachmentURL
- The URL of the attachment.public void setInitKey_attachmentId(java.lang.String aInitKey_attachmentId)
Set the primary key for this object
aInitKey_attachmentId
- java.lang.Stringpublic 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.
setMimeType
in interface AttachmentAccessBeanData
aMimeType
- The mime type of the attachment.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.
setMimeTypeEncoding
in interface AttachmentAccessBeanData
aMimeTypeEncoding
- The mime type encoding of the attachment.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.
aOwnerId
- The owner ID of the attachment.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.
setOwnerId
in interface AttachmentAccessBeanData
aOwnerId
- The owner ID of the attachment.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.
setTimeCreated
in interface AttachmentAccessBeanData
aTimeCreated
- The created time of the attachment.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.
aTimeCreated
- The created time of the attachment.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.
setTimeUpdated
in interface AttachmentAccessBeanData
aTimeUpdated
- The last updated time of the attachment.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.
aTimeUpdated
- The last time the Attachment was updated.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.
setUsage
in interface AttachmentAccessBeanData
aUsage
- The usage of the attachment.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |