com.ibm.commerce.contract.objects
Class TradingDescriptionAccessBean

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

public class TradingDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TradingDescriptionAccessBeanData

This bean provides access to the TRDDESC table.

The following is a description of this table:

The trading agreement description 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
TradingDescriptionAccessBean()
          Default constructor.
TradingDescriptionAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
TradingDescriptionAccessBean(java.lang.Long tradingId, java.lang.Integer langId)
          Constructs a TradingDescriptionAccessBean object with the specified trading ID, and the language ID
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByTradingAgreement(java.lang.Long tradingId)
          Retrieves all the trading description that the trading agreement has.
 java.lang.String getLanguageId()
          This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getLongDescription()
          This method provides access to the TRDDESC.LONGDESCRIPTION column of DB2 type LONG NULL.
 java.lang.String getShortDescription()
          This method provides access to the TRDDESC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getTimeCreated()
          This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeUpdated()
          This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTradingId()
          This method provides access to the TRDDESC.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the TRDDESC.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setInitKey_tradingId(java.lang.String aInitKey_tradingId)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId)
          This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId)
          This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLongDescription(java.lang.String aLongDescription)
          This method provides access to the TRDDESC.LONGDESCRIPTION column of DB2 type LONG NULL.
 void setShortDescription(java.lang.String aShortDescription)
          This method provides access to the TRDDESC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setTimeCreated(java.lang.String aTimeCreated)
          This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.lang.String aTimeUpdated)
          This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTradingId(java.lang.Long aTradingId)
          This method provides access to the TRDDESC.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String aTradingId)
          This method provides access to the TRDDESC.TRADING_ID column of DB2 type BIGINT NOT 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

TradingDescriptionAccessBean

public TradingDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


TradingDescriptionAccessBean

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

TradingDescriptionAccessBean

public TradingDescriptionAccessBean(java.lang.Long tradingId,
                                    java.lang.Integer langId)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

Constructs a TradingDescriptionAccessBean object with the specified trading ID, and the language ID

Parameters:
tradingId - The ID of the trading agreement.
langId - The language ID.
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

findByTradingAgreement

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

Retrieves all the trading description that the trading agreement has.

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

select * from trddesc T1 where T1.trading_id = ?

Parameters:
tradingId - The ID of the trading agreement.
Returns:
An Enumeration of all the TradingDescriptionAccessBeans 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

getLanguageId

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

This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface TradingDescriptionAccessBeanData
Returns:
The language ID.
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

getLanguageIdInEJBType

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

This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Returns:
The language ID.
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

getLongDescription

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

This method provides access to the TRDDESC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

Trading agreement long description.

Specified by:
getLongDescription in interface TradingDescriptionAccessBeanData
Returns:
The trading agreement long description.
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

getShortDescription

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

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

The following is a description of this column:

Trading agreement short description.

Specified by:
getShortDescription in interface TradingDescriptionAccessBeanData
Returns:
The trading agreement short description.
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

getTimeCreated

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

This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
getTimeCreated in interface TradingDescriptionAccessBeanData
Returns:
The time the trading agreement description was created.
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

getTimeCreatedInEJBType

public java.sql.Timestamp getTimeCreatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Returns:
The time the trading agreement description was created.
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

getTimeUpdated

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

This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
getTimeUpdated in interface TradingDescriptionAccessBeanData
Returns:
The time the trading agreement description was most recently updated.
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

getTimeUpdatedInEJBType

public java.sql.Timestamp getTimeUpdatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Returns:
The time the trading agreement description was most recently updated.
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 TRDDESC.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading ID.

Specified by:
getTradingId in interface TradingDescriptionAccessBeanData
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 TRDDESC.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading 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_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

Parameters:
aInitKey_languageId - The language ID.
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

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId)

This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Parameters:
aLanguageId - The language ID.
Returns:
void

setLanguageId

public void setLanguageId(java.lang.String aLanguageId)

This method provides access to the TRDDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface TradingDescriptionAccessBeanData
Parameters:
aLanguageId - The language ID.
Returns:
void

setLongDescription

public void setLongDescription(java.lang.String aLongDescription)

This method provides access to the TRDDESC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

Trading agreement long description.

Specified by:
setLongDescription in interface TradingDescriptionAccessBeanData
Parameters:
aLongDescription - The trading agreement long description.
Returns:
void

setShortDescription

public void setShortDescription(java.lang.String aShortDescription)

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

The following is a description of this column:

Trading agreement short description.

Specified by:
setShortDescription in interface TradingDescriptionAccessBeanData
Parameters:
aShortDescription - The trading agreement short description.
Returns:
void

setTimeCreated

public void setTimeCreated(java.lang.String aTimeCreated)

This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
setTimeCreated in interface TradingDescriptionAccessBeanData
Parameters:
aTimeCreated - The time the trading agreement description was created.
Returns:
void

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

This method provides access to the TRDDESC.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Parameters:
aTimeCreated - The time the trading agreement description was created.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.lang.String aTimeUpdated)

This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
setTimeUpdated in interface TradingDescriptionAccessBeanData
Parameters:
aTimeUpdated - The time the trading agreement description was most recently updated.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

This method provides access to the TRDDESC.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Parameters:
aTimeUpdated - The time the trading agreement was most recently updated.
Returns:
void

setTradingId

public void setTradingId(java.lang.Long aTradingId)

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

The following is a description of this column:

Trading ID.

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

setTradingId

public void setTradingId(java.lang.String aTradingId)

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

The following is a description of this column:

Trading ID.

Specified by:
setTradingId in interface TradingDescriptionAccessBeanData
Parameters:
aTradingId - The ID of the trading agreement.
Returns:
void