com.ibm.commerce.contract.objects
Class TradingAgreementAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.contract.objects.TradingAgreementAccessBean
All Implemented Interfaces:
java.io.Serializable, TradingAgreementAccessBeanData
Direct Known Subclasses:
TradingAgreementCopy

public class TradingAgreementAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements TradingAgreementAccessBeanData

This bean provides access to the TRADING table.

The following is a description of this table:

Each row in this table represents a trading agreement.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
TradingAgreementAccessBean()
          Default constructor.
TradingAgreementAccessBean(javax.ejb.EJBObject Object)
          Creates an access bean for the specified EJB
TradingAgreementAccessBean(java.lang.Integer tradingType)
          Constructs a TradingAgreementAccessBean object with the specified trading type.
TradingAgreementAccessBean(java.lang.Integer tradingType, java.sql.Timestamp startTime, java.sql.Timestamp endTime)
          Constructs a TradingAgreementAccessBean object with the specified trading type.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAll()
          Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements which are not marked for deleting.
 java.util.Enumeration findAllActive()
          Returns an Enumeration of the TradingAgreementAccessBeans representing all the active trading agreements.
 java.util.Enumeration findAllByType(java.lang.Integer tradingType)
          Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements with the specified trading type.
 java.util.Enumeration findDefaultAuctionTradingAgreement()
          Retrives all trading agreements whose type are 'Auction'.
 java.util.Enumeration findEntitledTradingAgreementByTypeForBuyerUnderStore(java.lang.Integer tradingType, java.lang.Long buyerId, java.lang.Integer storeId)
          Returns an Enumeration of the TradingAgreementAccessBeans representing the trading agreements with the specified trading type, buyer's member ID, and the store ID.
 java.util.Enumeration findEntitledTradingAgreementForBuyerUnderStore(java.lang.Long buyerId, java.lang.Integer storeId)
          Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements with the specified buyer's member ID, and the store ID.
 TradingAgreementAccessBean findValidTAById(java.lang.Long aDValidTAById)
          Retrieves the TradingAgreementAccessBean representing the trading agreement with the specified tradingId.
 java.lang.String getAccountId()
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 java.lang.Long getAccountIdInEJBType()
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 AttachmentAccessBean[] getAttachment()
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getCreditAllowedFlag()
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCreditAllowedFlagInEJBType()
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 TradingDescriptionAccessBean getDescription(java.lang.Integer langId)
          Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID.
 TradingDescriptionAccessBean getDescription(java.lang.Integer langId, java.lang.Integer storeId)
          Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID.
 java.lang.String getEndTime()
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getEndTimeInEJBType()
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getMarkForDelete()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 BusinessPolicyAccessBean[] getPolicies()
          The method return an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.
 BusinessPolicyAccessBean[] getPolicies(java.lang.Long memberId)
          The method return all the business policies that the specified member ID has in the trading agreement.
 BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String policyType)
          The method return all the business policies has the specified type in the trading agreement.
 BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String policyType, java.lang.Long memberId)
          The method returns all the business policies has the specified type and the specified member Id as the buyer participant in the trading agreement.
 java.lang.String getReferenceCount()
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getReferenceCountInEJBType()
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 java.lang.String getStartTime()
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getStartTimeInEJBType()
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getState()
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStateInEJBType()
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 TermConditionAccessBean[] getTCsByTCSubType(java.lang.String tcSubType)
          This method returns all the terms and conditions that has the specified sub-type.
 TermConditionAccessBean[] getTCsByTCSubType(java.lang.String tcSubType, java.lang.Long memberId)
          This method returns an array of the TermConditionAccessBean objects which has the specified sub-type, and the specified member id is the buyer participant of the terms and conditions.
 TermConditionAccessBean[] getTCsByTCType(java.lang.String aTCsByTCType)
          This method returns an array of the TermConditionAccessBean objects which has the specified type.
 TermConditionAccessBean[] getTCsByTCType(java.lang.String tcType, java.lang.Long memberId)
          This method returns an array of the TermConditionAccessBean objects which has the specified type, and the specified member id is the buyer participant of the terms and conditions.
 java.lang.String getTradingId()
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 ParticipantAccessBean[] getTradingLevelParticipants()
          This method returns all the trading agreement level participants.
 java.lang.String getTradingType()
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTradingTypeInEJBType()
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 boolean hasTCLevelParticipant()
          The method check if the trading agreement has the terms and conditions level participant(s).
 boolean isValid()
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void markForDelete()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAccountId(java.lang.Long aAccountId)
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 void setAccountId(java.lang.String aAccountId)
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 void setCreditAllowedFlag(java.lang.Integer aCreditAllowedFlag)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 void setCreditAllowedFlag(java.lang.String aCreditAllowedFlag)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 void setEndTime(java.lang.String aEndTime)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setEndTime(java.sql.Timestamp aEndTime)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setInitKey_tradingId(java.lang.String aInitKey_tradingId)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMarkForDelete(java.lang.String aMarkForDelete)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setReferenceCount(java.lang.Integer aReferenceCount)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 void setReferenceCount(java.lang.String aReferenceCount)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 void setStartTime(java.lang.String aStartTime)
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setStartTime(java.sql.Timestamp aStartTime)
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setState(java.lang.Integer aState)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 void setState(java.lang.String aState)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 void setTradingId(java.lang.Long aTradingId)
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String aTradingId)
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingType(java.lang.Integer aTradingType)
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setTradingType(java.lang.String aTradingType)
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER 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

TradingAgreementAccessBean

public TradingAgreementAccessBean()

Default constructor. Maps to findByPrimaryKey.


TradingAgreementAccessBean

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

TradingAgreementAccessBean

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

Constructs a TradingAgreementAccessBean object with the specified trading type. The start time and the ending time of the trading agreement are set to NULL.

Parameters:
tradingType - The type of the trading agreement.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

TradingAgreementAccessBean

public TradingAgreementAccessBean(java.lang.Integer tradingType,
                                  java.sql.Timestamp startTime,
                                  java.sql.Timestamp endTime)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Constructs a TradingAgreementAccessBean object with the specified trading type. The start time of the trading agreement is set to the specified startTime, and the ending time is set to the specified endTime.

Parameters:
tradingType - The type of the trading agreement.
startTime - The starting time of the trading agreement.
endTime - The ending time of the trading agreement.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException 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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements which are not marked for deleting.

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

select * from trading T1 where T1.markfordelete = 0

Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findAllActive

public java.util.Enumeration findAllActive()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Returns an Enumeration of the TradingAgreementAccessBeans representing all the active trading agreements.

Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findAllByType

public java.util.Enumeration findAllByType(java.lang.Integer tradingType)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements with the specified trading type.

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

select * from trading T1 where T1.markfordelete = 0 and trdtype_id = ?

Parameters:
tradingType - The type of the trading agreement.
Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findDefaultAuctionTradingAgreement

public java.util.Enumeration findDefaultAuctionTradingAgreement()
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Retrives all trading agreements whose type are 'Auction'.

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

select * from trading T1 where T1.markfordelete = 0 and trdtype_id = 6

Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findEntitledTradingAgreementByTypeForBuyerUnderStore

public java.util.Enumeration findEntitledTradingAgreementByTypeForBuyerUnderStore(java.lang.Integer tradingType,
                                                                                  java.lang.Long buyerId,
                                                                                  java.lang.Integer storeId)
                                                                           throws java.rmi.RemoteException,
                                                                                  javax.ejb.FinderException,
                                                                                  javax.naming.NamingException

Returns an Enumeration of the TradingAgreementAccessBeans representing the trading agreements with the specified trading type, buyer's member ID, and the store ID.

Parameters:
tradingType - The type of the trading agreement.
buyerId - The member ID of the buyer.
storeId - The ID of the store.
Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findEntitledTradingAgreementForBuyerUnderStore

public java.util.Enumeration findEntitledTradingAgreementForBuyerUnderStore(java.lang.Long buyerId,
                                                                            java.lang.Integer storeId)
                                                                     throws java.rmi.RemoteException,
                                                                            javax.ejb.FinderException,
                                                                            javax.naming.NamingException

Returns an Enumeration of the TradingAgreementAccessBeans representing all the trading agreements with the specified buyer's member ID, and the store ID.

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

select * from trading T1 where T1.

Parameters:
buyerId - The member ID of the buyer participant.
storeId - The ID of the store.
Returns:
An Enumeration of all the TradingAgreementAccessBeans 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

findValidTAById

public TradingAgreementAccessBean findValidTAById(java.lang.Long aDValidTAById)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

Retrieves the TradingAgreementAccessBean representing the trading agreement with the specified tradingId.

Parameters:
tradingId - java.lang.Long
Returns:
The TradingAgreementAccessBean representing the row that matches 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

getAccountId

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

This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Account associated with this trading agreement. (No foreign key to the account table to prevent deadlock for the Database Cleanup utility.)

Specified by:
getAccountId in interface TradingAgreementAccessBeanData
Returns:
The ID of the account associated with this 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

getAccountIdInEJBType

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

This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Account associated with this trading agreement. (No foreign key to the account table to prevent deadlock for the Database Cleanup utility.)

Returns:
The ID of the account associated with this 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

getAttachment

public AttachmentAccessBean[] getAttachment()
                                     throws javax.naming.NamingException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            java.rmi.RemoteException

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

The following is a description of this column:

Trading agreement ID (primary key). A Trading Agreement object can be shared by more than one trading mechanism such as RFQ and Contract.

Returns:
com.ibm.commerce.contract.objects.AttachmentAccessBean[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getCreditAllowedFlag

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

This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This column indicates whether or not credit is allowed:
0 = No.
1 = Yes.

Specified by:
getCreditAllowedFlag in interface TradingAgreementAccessBeanData
Returns:
The credit allowed flag. 0 = No. 1 = Yes.
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

getCreditAllowedFlagInEJBType

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

This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This column indicates whether or not credit is allowed:
0 = No.
1 = Yes.

Returns:
The Credit allowed flag.
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

getDescription

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

Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID.

Parameters:
langId - The language ID.
Returns:
The TradingDescriptionAccessBean representing the description found by the given language ID.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getDescription

public TradingDescriptionAccessBean getDescription(java.lang.Integer langId,
                                                   java.lang.Integer storeId)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID. If the description for the specified language is not available for the specified store, An alternate language description will be returned.

Parameters:
langId - The language ID.
storeId - The ID of the store.
Returns:
The TradingDescriptionAccessBean representing the description found by the given language ID, and the store ID.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getEndTime

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

This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

End time for the Trading Agreement. If null, no end time.

Specified by:
getEndTime in interface TradingAgreementAccessBeanData
Returns:
The end time for the Trading Agreement. If null, no end time.
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

getEndTimeInEJBType

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

This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

End time for the Trading Agreement. If null, no end time.

Returns:
The end time for the Trading Agreement. If null, no end time.
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

getMarkForDelete

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

This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:
0 = No.
1 = Yes, this TradingAgreement has been marked for deletion.

Specified by:
getMarkForDelete in interface TradingAgreementAccessBeanData
Returns:
The MarkForDelete flag of the trading agreement. 1 = Yes, 0 = No.
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

getMarkForDeleteInEJBType

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

This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:
0 = No.
1 = Yes, this TradingAgreement has been marked for deletion.

Returns:
The MarkForDelete flag of the trading agreement. 1 = Yes, 0 = No.
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

getPolicies

public BusinessPolicyAccessBean[] getPolicies()
                                       throws javax.naming.NamingException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException

The method return an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.

Returns:
an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getPolicies

public BusinessPolicyAccessBean[] getPolicies(java.lang.Long memberId)
                                       throws javax.naming.NamingException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException

The method return all the business policies that the specified member ID has in the trading agreement.

Parameters:
memberId - The member ID.
Returns:
an array of BusinessPolicyAccessBean objects representing the business policy associated with specified member ID.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String policyType)
                                             throws javax.naming.NamingException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException

The method return all the business policies has the specified type in the trading agreement.

Parameters:
policyType - The type of the business policies.
Returns:
an array of the BusinessPolicyAccessBean objects representing all the policies have the specified policy type.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String policyType,
                                                    java.lang.Long memberId)
                                             throws javax.naming.NamingException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException

The method returns all the business policies has the specified type and the specified member Id as the buyer participant in the trading agreement.

Parameters:
policyType - The type of the business policies.
memberId - The member ID.
Returns:
an array of the BusinessPolicyAccessBean objects representing all the policies have the specified policy type, and the specified member Id as the buyer participant.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getReferenceCount

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

This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Specified by:
getReferenceCount in interface TradingAgreementAccessBeanData
Returns:
The number of trading mechanisms associated with this TradingAgreement.
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

getReferenceCountInEJBType

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

This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Returns:
The number of trading mechanisms associated with this TradingAgreement.
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

getStartTime

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

This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Start time for the Trading Agreement. If null, start immediately.

Specified by:
getStartTime in interface TradingAgreementAccessBeanData
Returns:
Start time for the Trading Agreement. If null, start immediately.
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

getStartTimeInEJBType

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

This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Start time for the Trading Agreement. If null, start immediately.

Returns:
Start time for the Trading Agreement. If null, start immediately.
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

getState

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

This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

0=inactive, 1= active. During negotiation, this flag must be set to inactive. When an one time order from RFQ is completed, this flag should be marked inactive.

Specified by:
getState in interface TradingAgreementAccessBeanData
Returns:
The state of the trading agreement. 0=inactive, 1= active.
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

getStateInEJBType

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

This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

0=inactive, 1= active. During negotiation, this flag must be set to inactive. When an one time order from RFQ is completed, this flag should be marked inactive.

Returns:
The state of the trading agreement. 0=inactive, 1= active.
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

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String tcSubType)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

This method returns all the terms and conditions that has the specified sub-type.

Parameters:
tcSubType - The sub-type of the terms and conditions.
Returns:
An array of the TermConditionAccessBean objects representing all the terms and conditions that has the specified sub-type.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String tcSubType,
                                                   java.lang.Long memberId)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

This method returns an array of the TermConditionAccessBean objects which has the specified sub-type, and the specified member id is the buyer participant of the terms and conditions.

Parameters:
tcSubType - The type of the terms and conditions.
memberId - The member ID.
Returns:
an array of the TermConditionAccessBean objects which has the specified sub-type, and the specified member id as buyer participant.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String aTCsByTCType)
                                         throws javax.naming.NamingException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException

This method returns an array of the TermConditionAccessBean objects which has the specified type.

Parameters:
aTCsByTCType - The type of the terms and conditions.
Returns:
an array of the TermConditionAccessBean objects which has the specified type.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String tcType,
                                                java.lang.Long memberId)
                                         throws javax.naming.NamingException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException

This method returns an array of the TermConditionAccessBean objects which has the specified type, and the specified member id is the buyer participant of the terms and conditions.

Parameters:
tcType - The type of the terms and conditions.
memberId - The member ID.
Returns:
an array of the TermConditionAccessBean objects which has the specified type.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException 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 TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading agreement ID (primary key). A Trading Agreement object can be shared by more than one trading mechanism such as RFQ and Contract.

Specified by:
getTradingId in interface TradingAgreementAccessBeanData
Returns:
The trading agreement 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

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 TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Trading agreement ID (primary key). A Trading Agreement object can be shared by more than one trading mechanism such as RFQ and Contract.

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

getTradingLevelParticipants

public ParticipantAccessBean[] getTradingLevelParticipants()
                                                    throws javax.naming.NamingException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException,
                                                           java.rmi.RemoteException

This method returns all the trading agreement level participants.

Returns:
An array of ParticipantAccessBean objects representing all the trading agreement participants.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getTradingType

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

This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the trading type table.

Specified by:
getTradingType in interface TradingAgreementAccessBeanData
Returns:
The type 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

getTradingTypeInEJBType

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

This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the trading type table.

Returns:
The type 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

hasTCLevelParticipant

public boolean hasTCLevelParticipant()
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     java.rmi.RemoteException

The method check if the trading agreement has the terms and conditions level participant(s).

Returns:
true - the trading agreement has the terms and conditions level participant(s), false - the trading agreement does not has the terms and conditions level participant(s).
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

isValid

public boolean isValid()
                throws javax.naming.NamingException,
                       javax.ejb.CreateException,
                       javax.ejb.FinderException,
                       java.rmi.RemoteException

This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Start time for the Trading Agreement. If null, start immediately.

Returns:
If the trading agreement was effective, return true. Otherwise, returns false.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

markForDelete

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

This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:
0 = No.
1 = Yes, this TradingAgreement has been marked for deletion.

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

setAccountId

public void setAccountId(java.lang.Long aAccountId)

This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Account associated with this trading agreement. (No foreign key to the account table to prevent deadlock for the Database Cleanup utility.)

Parameters:
aAccountId - The ID of the account associated with this trading agreement.
Returns:
void

setAccountId

public void setAccountId(java.lang.String aAccountId)

This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Account associated with this trading agreement. (No foreign key to the account table to prevent deadlock for the Database Cleanup utility.)

Specified by:
setAccountId in interface TradingAgreementAccessBeanData
Parameters:
aAccountId - The ID of account associated with this trading agreement.
Returns:
void

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.Integer aCreditAllowedFlag)

This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This column indicates whether or not credit is allowed:
0 = No.
1 = Yes.

Parameters:
aCreditAllowedFlag - The credit allowed flag. 0 = No. 1 = Yes.
Returns:
void

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.String aCreditAllowedFlag)

This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This column indicates whether or not credit is allowed:
0 = No.
1 = Yes.

Specified by:
setCreditAllowedFlag in interface TradingAgreementAccessBeanData
Parameters:
aCreditAllowedFlag - The credit allowed flag. 0 = No. 1 = Yes.
Returns:
void

setEndTime

public void setEndTime(java.lang.String aEndTime)

This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

End time for the Trading Agreement. If null, no end time.

Specified by:
setEndTime in interface TradingAgreementAccessBeanData
Parameters:
aEndTime - End time for the Trading Agreement. If null, no end time.
Returns:
void

setEndTime

public void setEndTime(java.sql.Timestamp aEndTime)

This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

End time for the Trading Agreement. If null, no end time.

Parameters:
aEndTime - End time for the Trading Agreement. If null, no end time.
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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:
0 = No.
1 = Yes, this TradingAgreement has been marked for deletion.

Parameters:
aMarkForDelete - The MarkForDelete flag of the trading agreement. 1 = Yes, 0 = No.
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.String aMarkForDelete)

This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:
0 = No.
1 = Yes, this TradingAgreement has been marked for deletion.

Specified by:
setMarkForDelete in interface TradingAgreementAccessBeanData
Parameters:
aMarkForDelete - The MarkForDelete flag of the trading agreement. 1 = Yes, 0 = No.
Returns:
void

setReferenceCount

public void setReferenceCount(java.lang.Integer aReferenceCount)

This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Parameters:
aReferenceCount - The number of trading mechanisms associated with this TradingAgreement.
Returns:
void

setReferenceCount

public void setReferenceCount(java.lang.String aReferenceCount)

This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Specified by:
setReferenceCount in interface TradingAgreementAccessBeanData
Parameters:
aReferenceCount - The number of trading mechanisms associated with this TradingAgreement.
Returns:
void

setStartTime

public void setStartTime(java.lang.String aStartTime)

This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Start time for the Trading Agreement. If null, start immediately.

Specified by:
setStartTime in interface TradingAgreementAccessBeanData
Parameters:
aStartTime - Start time for the Trading Agreement. If null, start immediately.
Returns:
void

setStartTime

public void setStartTime(java.sql.Timestamp aStartTime)

This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Start time for the Trading Agreement. If null, start immediately.

Parameters:
aStartTime - Start time for the Trading Agreement. If null, start immediately.
Returns:
void

setState

public void setState(java.lang.Integer aState)

This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

0=inactive, 1= active. During negotiation, this flag must be set to inactive. When an one time order from RFQ is completed, this flag should be marked inactive.

Parameters:
aState - The state of the trading agreement. 0=inactive, 1= active.
Returns:
void

setState

public void setState(java.lang.String aState)

This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

0=inactive, 1= active. During negotiation, this flag must be set to inactive. When an one time order from RFQ is completed, this flag should be marked inactive.

Specified by:
setState in interface TradingAgreementAccessBeanData
Parameters:
aState - The state of the trading agreement. 0=inactive, 1= active.
Returns:
void

setTradingId

public void setTradingId(java.lang.Long aTradingId)

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

The following is a description of this column:

Trading agreement ID (primary key). A Trading Agreement object can be shared by more than one trading mechanism such as RFQ and Contract.

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

setTradingId

public void setTradingId(java.lang.String aTradingId)

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

The following is a description of this column:

Trading agreement ID (primary key). A Trading Agreement object can be shared by more than one trading mechanism such as RFQ and Contract.

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

setTradingType

public void setTradingType(java.lang.Integer aTradingType)

This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the trading type table.

Parameters:
aTradingType - The type of the trading agreement.
Returns:
void

setTradingType

public void setTradingType(java.lang.String aTradingType)

This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Foreign key to the trading type table.

Specified by:
setTradingType in interface TradingAgreementAccessBeanData
Parameters:
aTradingType - The type of the trading agreement.
Returns:
void