com.ibm.commerce.contract.objects
Class TradingAttachmentRelationAccessBean

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

public class TradingAttachmentRelationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TradingAttachmentRelationAccessBeanData

This bean provides access to the TRDATTACH table.

The following is a description of this table:

The trading to attachment relationship table.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
TradingAttachmentRelationAccessBean()
          Default constructor.
TradingAttachmentRelationAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
TradingAttachmentRelationAccessBean(java.lang.Long tradingId, java.lang.Long attachmentId)
          Constructs an TradingAttachmentRelationAccessBean object with the specified trading ID, and attachment ID
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByAttachment(java.lang.Long attachmentId)
          Retrieves representing all the trading agreement and attachment relationships that the attachment has.
 java.util.Enumeration findByTrading(java.lang.Long tradingId)
          Retrieves all the trading agreement and attachment relationships that the contract has.
 java.lang.String getAttachmentId()
          This method provides access to the TRDATTACH.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAttachmentIdInEJBType()
          This method provides access to the TRDATTACH.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getTradingId()
          This method provides access to the TRDATTACH.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the TRDATTACH.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_attachmentId(java.lang.String aInitKey_attachmentId)
          Set the primary key for this object
 void setInitKey_tradingId(java.lang.String aInitKey_tradingId)
          Set the primary key for this object
 
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

TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean()

Default constructor. Maps to findByPrimaryKey.


TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean(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

TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean(java.lang.Long tradingId,
                                           java.lang.Long attachmentId)
                                    throws javax.ejb.CreateException,
                                           java.rmi.RemoteException,
                                           javax.naming.NamingException

Constructs an TradingAttachmentRelationAccessBean object with the specified trading ID, and attachment ID

Parameters:
tradingId - The ID of the trading agreement.
attachmentId - The ID of the attachment.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException 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

findByAttachment

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

Retrieves representing all the trading agreement and attachment relationships that the attachment has.

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

select * from trdattach T1 where T1.attachment_id = ?

Parameters:
attachmentId - java.lang.Long
Returns:
An Enumeration of all the TradingAttachmentRelationAccessBeans 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

findByTrading

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

Retrieves all the trading agreement and attachment relationships that the contract has.

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

select * from trdattach T1 where T1.trading_id = ?

Parameters:
tradingId - The ID of the trading agreement.
Returns:
An Enumeration of all the TradingAttachmentRelationAccessBeans 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 TRDATTACH.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID.

Specified by:
getAttachmentId in interface TradingAttachmentRelationAccessBeanData
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 TRDATTACH.ATTACHMENT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Attachment ID.

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

getTradingId

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

This method provides access to the TRDATTACH.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading agreement ID.

Specified by:
getTradingId in interface TradingAttachmentRelationAccessBeanData
Returns:
The ID of the trading agreement.
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

getTradingIdInEJBType

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

This method provides access to the TRDATTACH.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading agreement ID.

Returns:
The ID of the trading agreement.
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

setInitKey_attachmentId

public void setInitKey_attachmentId(java.lang.String aInitKey_attachmentId)

Set the primary key for this object

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

setInitKey_tradingId

public void setInitKey_tradingId(java.lang.String aInitKey_tradingId)

Set the primary key for this object

Parameters:
aInitKey_tradingId - The ID of the trading agreement.
Returns:
void