com.ibm.commerce.contract.objects
Class TradingAttachmentRelationAccessBean

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

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

This table stores information about the trading to attachment relationship for a TradingAgreement.

See Also:
Serialized Form

Constructor Summary
TradingAttachmentRelationAccessBean()
          constructor
TradingAttachmentRelationAccessBean(javax.ejb.EJBObject o)
          constructor
TradingAttachmentRelationAccessBean(java.lang.Long arg0, java.lang.Long arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByAttachment(java.lang.Long arg0)
          Retrieves representing all the trading agreement and attachment relationships that the attachment has.
 java.util.Enumeration findByTrading(java.lang.Long arg0)
          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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_attachmentId(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_tradingId(java.lang.String newValue)
          Set the primary key for this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean()
constructor

TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean(javax.ejb.EJBObject o)
                                    throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

TradingAttachmentRelationAccessBean

public TradingAttachmentRelationAccessBean(java.lang.Long arg0,
                                           java.lang.Long arg1)
                                    throws javax.ejb.CreateException,
                                           java.rmi.RemoteException,
                                           javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
Method Detail

findByAttachment

public java.util.Enumeration findByAttachment(java.lang.Long arg0)
                                       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 = ?

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

findByTrading

public java.util.Enumeration findByTrading(java.lang.Long arg0)
                                    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 = ?

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

setInitKey_attachmentId

public void setInitKey_attachmentId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_tradingId

public void setInitKey_tradingId(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:

TradingAgreement ID.

Specified by:
getTradingId in interface TradingAttachmentRelationAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:

TradingAgreement ID.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException