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
Direct Known Subclasses:
TradingAgreementCopy

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

Each row in this table represents a TradingAgreement.

See Also:
Serialized Form

Constructor Summary
TradingAgreementAccessBean()
          constructor
TradingAgreementAccessBean(java.lang.Integer arg0, java.sql.Timestamp arg1, java.sql.Timestamp arg2)
          constructor
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 arg0)
          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 arg0, java.lang.Long arg1, java.lang.Integer arg2)
          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 arg0, java.lang.Integer arg1)
          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 arg0)
          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 arg0)
          Retrieves the TradingDescriptionAccessBean representing the trading agreement description with the specified language ID.
  TradingDescriptionAccessBean getDescription(java.lang.Integer arg0, java.lang.Integer arg1)
          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 arg0)
          The method return all the business policies that the specified member ID has in the trading agreement.
  BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String arg0)
          The method return all the business policies has the specified type in the trading agreement.
  BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String arg0, java.lang.Long arg1)
          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 arg0)
          This method returns all the terms and conditions that has the specified sub-type.
  TermConditionAccessBean[] getTCsByTCSubType(java.lang.String arg0, java.lang.Long arg1)
          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 arg0)
          This method returns an array of the TermConditionAccessBean objects which has the specified type.
  TermConditionAccessBean[] getTCsByTCType(java.lang.String arg0, java.lang.Long arg1)
          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 provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT.
 void setAccountId(java.lang.String newValue)
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT.
 void setCreditAllowedFlag(java.lang.Integer newValue)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setCreditAllowedFlag(java.lang.String newValue)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setEndTime(java.lang.String newValue)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP.
 void setEndTime(java.sql.Timestamp newValue)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP.
 void setInitKey_tradingId(java.lang.String newValue)
          Set the primary key for this object
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setReferenceCount(java.lang.Integer newValue)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setReferenceCount(java.lang.String newValue)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL DEFAULT 0.
 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 provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP.
 void setStartTime(java.sql.Timestamp newValue)
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP.
 void setState(java.lang.Integer newValue)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setState(java.lang.String newValue)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setTradingId(java.lang.Long newValue)
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String newValue)
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingType(java.lang.Integer newValue)
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setTradingType(java.lang.String newValue)
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradingAgreementAccessBean

public TradingAgreementAccessBean()
constructor

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 arg0,
                                  java.sql.Timestamp arg1,
                                  java.sql.Timestamp arg2)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.sql.Timestamp
arg2 - java.sql.Timestamp
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findValidTAById

public TradingAgreementAccessBean findValidTAById(java.lang.Long arg0)
                                           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 arg0)
                                    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 = ?

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 arg0,
                                                                                  java.lang.Long arg1,
                                                                                  java.lang.Integer arg2)
                                                                           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.

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 arg0,
                                                                            java.lang.Integer arg1)
                                                                     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.
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 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:
setReferenceCount in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setReferenceCount

public void setReferenceCount(java.lang.Integer newValue)

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.

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

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 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:
setTradingType in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setTradingType

public void setTradingType(java.lang.Integer newValue)

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.

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

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 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:
setStartTime in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setStartTime

public void setStartTime(java.sql.Timestamp newValue)

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.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

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 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:
setState in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setState

public void setState(java.lang.Integer newValue)

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

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

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 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:
setTradingId in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setTradingId

public void setTradingId(java.lang.Long newValue)

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.

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

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
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 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:
setAccountId in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setAccountId

public void setAccountId(java.lang.Long newValue)

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.

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

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 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:
setMarkForDelete in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

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

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 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:
setEndTime in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setEndTime

public void setEndTime(java.sql.Timestamp newValue)

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.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

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 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:
setCreditAllowedFlag in interface TradingAgreementAccessBeanData
Parameters:
newValue - String
Returns:
void

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.Integer newValue)

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

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

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

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

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 arg0,
                                                    java.lang.Long arg1)
                                             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.

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

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 arg0,
                                                   java.lang.Long arg1)
                                            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.

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

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 arg0,
                                                java.lang.Long arg1)
                                         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.

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

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 arg0,
                                                   java.lang.Integer arg1)
                                            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.

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