com.ibm.commerce.contract.objects
Class TradingAgreementAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.contract.objects.TradingAgreementAccessBean
All Implemented Interfaces:
TradingAgreementAccessBeanData

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

Each row in this table represents a TradingAgreement. This access bean corresponds to the database table 'TRADING'.

See Also:
Serialized Form

Constructor Summary
TradingAgreementAccessBean()
Zero argument constructor used to initialize the access bean.
TradingAgreementAccessBean(java.lang.Integer argType, java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime)
Constructs a TradingAgreementAccessBean object with the specified trading type.
TradingAgreementAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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 findAllByReferenceId(java.lang.Long arg0)
findAllByReferenceId
java.util.Enumeration findAllByType(java.lang.Integer argTradingTypeId)
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 argTradingTypeId, java.lang.Long argMemberId, java.lang.Integer argStoreId)
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 argMemberId, java.lang.Integer argStoreId)
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 argTradingId)
Retrieves the TradingAgreement 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.
java.lang.Long getAccountIdInEJBType()
This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT.
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 DEFAULT 0.
java.lang.Integer getCreditAllowedFlagInEJBType()
This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL DEFAULT 0.
TradingDescriptionAccessBean getDescription(java.lang.Integer argLanguageId)
Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID.
TradingDescriptionAccessBean getDescription(java.lang.Integer language_id, 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.
java.sql.Timestamp getEndTimeInEJBType()
This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP.
java.lang.String getMarkForDelete()
This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
BusinessPolicyAccessBean[] getPolicies()
The method return an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.
BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId)
The method return all the business policies that the specified member ID has in the trading agreement.
BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType)
The method return all the business policies has the specified type in the trading agreement.
BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType, java.lang.Long argMemberId)
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 DEFAULT 0.
java.lang.Integer getReferenceCountInEJBType()
This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getReferenceId()
This method accesses a non-CMP field
java.lang.String getStartTime()
This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP.
java.sql.Timestamp getStartTimeInEJBType()
This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP.
java.lang.String getState()
This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getStateInEJBType()
This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType)
This method returns all the terms and conditions that has the specified sub-type.
TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId)
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 argTCType)
This method returns an array of the TermConditionAccessBean objects which has the specified type.
TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId)
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
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 newValue)
This method accesses a non-CMP field
void setAccountId(java.lang.String newValue)
This method accesses a non-CMP field
void setCreditAllowedFlag(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCreditAllowedFlag(java.lang.String newValue)
This method accesses a non-CMP field
void setEndTime(java.lang.String newValue)
This method accesses a non-CMP field
void setEndTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setInitKey_tradingId(java.lang.String newValue)
Set the primary key for this object
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setReferenceCount(java.lang.Integer newValue)
This method accesses a non-CMP field
void setReferenceCount(java.lang.String newValue)
This method accesses a non-CMP field
void setReferenceId(java.lang.Long newValue)
This method accesses a non-CMP field
void setReferenceId(java.lang.String newValue)
This method accesses a non-CMP field
void setStartTime(java.lang.String newValue)
This method accesses a non-CMP field
void setStartTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setState(java.lang.Integer newValue)
This method accesses a non-CMP field
void setState(java.lang.String newValue)
This method accesses a non-CMP field
void setTradingId(java.lang.Long newValue)
This method accesses a non-CMP field
void setTradingId(java.lang.String newValue)
This method accesses a non-CMP field
void setTradingType(java.lang.Integer newValue)
This method accesses a non-CMP field
void setTradingType(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

TradingAgreementAccessBean

public TradingAgreementAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.contract.objects.TradingAgreement com.ibm.commerce.contract.objimpl.TradingAgreementHomeBase.findByPrimaryKey(com.ibm.commerce.contract.objects.TradingAgreementKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_tradingId( java.lang.Long )

TradingAgreementAccessBean

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

TradingAgreementAccessBean

public TradingAgreementAccessBean(java.lang.Integer argType,
                                  java.sql.Timestamp argStartTime,
                                  java.sql.Timestamp argEndTime)
                           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 argStartTime, and the ending time is set to the specified argEndTime.

Parameters:
argType - The type of the trading agreement.
argStartTime - The starting time of the trading agreement.
argEndTime - 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

findValidTAById

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

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

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

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

findAllByType

public java.util.Enumeration findAllByType(java.lang.Integer argTradingTypeId)
                                    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:
argTradingTypeId - 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

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

findEntitledTradingAgreementByTypeForBuyerUnderStore

public java.util.Enumeration findEntitledTradingAgreementByTypeForBuyerUnderStore(java.lang.Integer argTradingTypeId,
                                                                                  java.lang.Long argMemberId,
                                                                                  java.lang.Integer argStoreId)
                                                                           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:
argTradingTypeId - The type of the trading agreement.
argMemberId - The member ID of the buyer.
argStoreId - 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

findEntitledTradingAgreementForBuyerUnderStore

public java.util.Enumeration findEntitledTradingAgreementForBuyerUnderStore(java.lang.Long argMemberId,
                                                                            java.lang.Integer argStoreId)
                                                                     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:
argMemberId - The member ID of the buyer participant.
argStoreId - 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

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

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 DEFAULT 0.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement.

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

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 DEFAULT 0.

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement.

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

setReferenceCount

public void setReferenceCount(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setReferenceCount in interface TradingAgreementAccessBeanData

setReferenceCount

public void setReferenceCount(java.lang.Integer newValue)
This method accesses a non-CMP field

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 TRDTYPE table.

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

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 TRDTYPE table.

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

setTradingType

public void setTradingType(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setTradingType in interface TradingAgreementAccessBeanData

setTradingType

public void setTradingType(java.lang.Integer newValue)
This method accesses a non-CMP field

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.

The following is a description of this column:

Start time for the TradingAgreement. If null, the TradingAgreement starts immediately.

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

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.

The following is a description of this column:

Start time for the TradingAgreement. If null, the TradingAgreement starts immediately.

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

setStartTime

public void setStartTime(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStartTime in interface TradingAgreementAccessBeanData

setStartTime

public void setStartTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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 DEFAULT 0.

The following is a description of this column:

The status of the TradingAgreement as follows:&l

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

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 DEFAULT 0.

The following is a description of this column:

The status of the TradingAgreement as follows:&l

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

setState

public void setState(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setState in interface TradingAgreementAccessBeanData

setState

public void setState(java.lang.Integer newValue)
This method accesses a non-CMP field

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:

The TradingAgreement ID. This is a primary key. A TradingAgreement object can be shared by more than one trading mechanism, such as between an RFQ and a contract.

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

The following is a description of this column:

The TradingAgreement ID. This is a primary key. A TradingAgreement object can be shared by more than one trading mechanism, such as between an RFQ and a contract.

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

setTradingId

public void setTradingId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setTradingId in interface TradingAgreementAccessBeanData

setTradingId

public void setTradingId(java.lang.Long newValue)
This method accesses a non-CMP field

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.

The following is a description of this column:

Account associated with this trading agreement. There is no foreign key to the account table to prevent deadlock for the Database Cleanup utility.

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

getReferenceId

public java.lang.String getReferenceId()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getReferenceId in interface TradingAgreementAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

The following is a description of this column:

Account associated with this trading agreement. There is no foreign key to the account table to prevent deadlock for the Database Cleanup utility.

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

setAccountId

public void setAccountId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setAccountId in interface TradingAgreementAccessBeanData

setAccountId

public void setAccountId(java.lang.Long newValue)
This method accesses a non-CMP field

setReferenceId

public void setReferenceId(java.lang.Long newValue)
This method accesses a non-CMP field

setReferenceId

public void setReferenceId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setReferenceId in interface TradingAgreementAccessBeanData

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 DEFAULT 0.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:&l

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

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 DEFAULT 0.

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:&l

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

setMarkForDelete

public void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMarkForDelete in interface TradingAgreementAccessBeanData

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field

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.

The following is a description of this column:

End time for the TradingAgreement. If null, the TradingAgreement has no end time.

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

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.

The following is a description of this column:

End time for the TradingAgreement. If null, the TradingAgreement has no end time.

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

setEndTime

public void setEndTime(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setEndTime in interface TradingAgreementAccessBeanData

setEndTime

public void setEndTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field

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 DEFAULT 0.

The following is a description of this column:

This column indicates whether or not credit are allowed:&l

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

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 DEFAULT 0.

The following is a description of this column:

This column indicates whether or not credit are allowed:&l

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

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCreditAllowedFlag in interface TradingAgreementAccessBeanData

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.Integer newValue)
This method accesses a non-CMP field

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

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

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 argMemberId)
                                       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:
argMemberId - 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 argType)
                                             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:
argType - 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 argType,
                                                    java.lang.Long argMemberId)
                                             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:
argType - The type of the business policies.
argMemberId - 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

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

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType)
                                            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:
argTCSubType - 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 argTCSubType,
                                                   java.lang.Long argMemberId)
                                            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:
argTCSubType - The type of the terms and conditions.
argMemberId - 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 argTCType)
                                         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:
argTCType - 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 argTCType,
                                                java.lang.Long argMemberId)
                                         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:
argTCType - The type of the terms and conditions.
argMemberId - 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

getDescription

public TradingDescriptionAccessBean getDescription(java.lang.Integer argLanguageId)
                                            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:
argLanguageId - 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 language_id,
                                                   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:
language_id - 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

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

findAllByReferenceId

public java.util.Enumeration findAllByReferenceId(java.lang.Long arg0)
                                           throws javax.naming.NamingException,
                                                  javax.ejb.FinderException,
                                                  java.rmi.RemoteException
findAllByReferenceId
Parameters:
arg0 - java.lang.Long
Returns:
java.util.Enumeration
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

Feedback