com.ibm.commerce.contract.objimpl
Class TradingAgreementBeanBase

java.lang.Object
  |
  +--com.ibm.commerce.base.objects.ECEntityBean
        |
        +--com.ibm.commerce.contract.objimpl.TradingAgreementBeanBase
Direct Known Subclasses:
TradingAgreementBean

public class TradingAgreementBeanBase
extends com.ibm.commerce.base.objects.ECEntityBean

This bean provides access to the TRADING table.

The following is a description of this table:

Each row in this table represents a trading agreement.

See Also:
Serialized Form

Field Summary
 java.lang.Long accountId
           
 java.lang.Integer creditAllowedFlag
           
 java.sql.Timestamp endTime
           
 java.lang.Integer markForDelete
           
 java.lang.Integer referenceCount
           
 java.lang.Long referenceId
           
 java.sql.Timestamp startTime
           
 java.lang.Integer state
           
 java.lang.Long tradingId
           
 java.lang.Integer tradingType
           
 
Constructor Summary
TradingAgreementBeanBase()
           
 
Method Summary
 com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType)
          Constructs a TradingAgreementAccessBean object with the specified trading type.
 com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType, java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime)
          Constructs a TradingAgreementAccessBean object with the specified trading type.
 java.lang.Long getAccountId()
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
  AttachmentAccessBean[] getAttachment()
          Retrieves the Attachments associated with this trading agreement.
 java.lang.Integer getCreditAllowedFlag()
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
  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)
          The bean that holds the language specific information for this Trading Agreement for the language identified by language_id and the store identified by storeId.
 java.sql.Timestamp getEndTime()
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
protected  java.lang.Object getFallbackDescription(java.lang.Integer languageId)
          Retrieves the Object representing the trading agreement description with the specified language ID.
 java.lang.Integer getMarkForDelete()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
  BusinessPolicyAccessBean[] getPolicies()
          The method return an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.
  BusinessPolicyAccessBean[] getPolicies(java.lang.Long 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.Integer getReferenceCount()
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 java.lang.Long getReferenceId()
          This method provides access to the TRADING.REFTRADING_ID column of DB2 type BIGINT NULL.
 java.sql.Timestamp getStartTime()
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 java.lang.Integer getState()
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
  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.Long getTradingId()
          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.Integer getTradingType()
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 boolean hasTCLevelParticipant()
          This method check if the trading agreement has the terms and conditions level participant(s).
 boolean isValid()
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void markForDelete()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setAccountId(java.lang.Long newValue)
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 void setCreditAllowedFlag(java.lang.Integer newValue)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 void setEndTime(java.sql.Timestamp newValue)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setReferenceCount(java.lang.Integer newValue)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 void setReferenceId(java.lang.Long newValue)
          This method provides access to the TRADING.REFTRADING_ID column of DB2 type BIGINT NULL.
 void setStartTime(java.sql.Timestamp newValue)
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setState(java.lang.Integer newValue)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 void setTradingId(java.lang.Long 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tradingId

public java.lang.Long tradingId

tradingType

public java.lang.Integer tradingType

accountId

public java.lang.Long accountId

state

public java.lang.Integer state

markForDelete

public java.lang.Integer markForDelete

referenceCount

public java.lang.Integer referenceCount

startTime

public java.sql.Timestamp startTime

endTime

public java.sql.Timestamp endTime

creditAllowedFlag

public java.lang.Integer creditAllowedFlag

referenceId

public java.lang.Long referenceId
Constructor Detail

TradingAgreementBeanBase

public TradingAgreementBeanBase()
Method Detail

ejbCreate

public com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType)
                                                                throws javax.ejb.CreateException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException
Constructs a TradingAgreementAccessBean object with the specified trading type. The start time and the ending time of the trading agreement are set to NULL.
Parameters:
argType - The type of the trading agreement.
Returns:
The TradingAgreement key.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

ejbCreate

public com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType,
                                                                       java.sql.Timestamp argStartTime,
                                                                       java.sql.Timestamp argEndTime)
                                                                throws javax.ejb.CreateException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException
Constructs a TradingAgreementAccessBean object with the specified trading type. The start time of the trading agreement is set to the specified startTime, and the ending time is set to the specified endTime.
Parameters:
argType - The type of the trading agreement.
argStartTime - The starting time of the trading agreement.
argEndTime - The ending time of the trading agreement.
Returns:
The TradingAgreement key.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getAccountId

public java.lang.Long getAccountId()

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

The following is a description of this column:

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

Returns:
The ID of the account associated with this trading agreement.

getReferenceId

public java.lang.Long getReferenceId()

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

The following is a description of this column:

The reference trading agreement identifier.

Returns:
The reference trading agreement identifier.

getAttachment

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

Retrieves the Attachments associated with this trading agreement.

Returns:
An array of AttachmentAccessBean objects.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getCreditAllowedFlag

public java.lang.Integer getCreditAllowedFlag()

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

The following is a description of this column:

This column indicates whether or not credit is allowed:

0 = No.

1 = Yes.

Returns:
The credit allowed flag. 0 = No. 1 = Yes.

getDescription

public TradingDescriptionAccessBean getDescription(java.lang.Integer argLanguageId)
                                            throws javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getDescription

public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id,
                                                   java.lang.Integer storeId)
                                            throws javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
The bean that holds the language specific information for this Trading Agreement for the language identified by language_id and the store identified by storeId. This method will return an alternate language description if the specified description is not found.
Parameters:
language_id - The language ID.
storeId - The ID of the store.
Returns:
The TradingDescriptionAccessBean representing the description found by the given language ID.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getEndTime

public java.sql.Timestamp getEndTime()

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

The following is a description of this column:

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

Returns:
The end time for the Trading Agreement. If null, no end time.

getFallbackDescription

protected java.lang.Object getFallbackDescription(java.lang.Integer languageId)
                                           throws javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException
Retrieves the Object representing the trading agreement description with the specified language ID.
Parameters:
languageId - The language ID.
Returns:
The Object representing the description found by the given language ID.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getMarkForDelete

public java.lang.Integer getMarkForDelete()

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

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:

0 = No.

1 = Yes, this TradingAgreement has been marked for deletion.

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

getPolicies

public BusinessPolicyAccessBean[] getPolicies()
                                       throws javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getPolicies

public BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId)
                                       throws javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
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 all the business policies the trading agreement has.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType)
                                             throws javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException
The method return all the business policies has the specified type in the trading agreement.
Parameters:
argType - The type of the business policy.
Returns:
An array of the BusinessPolicyAccessBean objects representing all the policies have the specified policy type.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType,
                                                    java.lang.Long argMemberId)
                                             throws javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException
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 business policy.
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getReferenceCount

public java.lang.Integer getReferenceCount()

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

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Returns:
The number of trading mechanisms associated with this TradingAgreement.

getStartTime

public java.sql.Timestamp getStartTime()

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

The following is a description of this column:

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

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

getState

public java.lang.Integer getState()

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

The following is a description of this column:

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

Returns:
The state of the trading agreement. 0=inactive, 1= active.

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType)
                                            throws javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType,
                                                   java.lang.Long argMemberId)
                                            throws javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType)
                                         throws javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType,
                                                java.lang.Long argMemberId)
                                         throws javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException
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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getTradingId

public java.lang.Long getTradingId()

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

The following is a description of this column:

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

Returns:
The ID of the trading agreement.

getTradingLevelParticipants

public ParticipantAccessBean[] getTradingLevelParticipants()
                                                    throws javax.ejb.CreateException,
                                                           javax.ejb.FinderException,
                                                           javax.naming.NamingException
This method returns all the trading agreement level participants.
Returns:
An array of ParticipantAccessBean objects representing all the trading agreement participants.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getTradingType

public java.lang.Integer getTradingType()

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

The following is a description of this column:

Foreign key to the trading type table.

Returns:
The type of trading agreement.

hasTCLevelParticipant

public boolean hasTCLevelParticipant()
                              throws javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This 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.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

isValid

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

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

The following is a description of this column:

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

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

markForDelete

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

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

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:

0 = No.

1 = Yes, this TradingAgreement has been marked for deletion.

Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

setAccountId

public void setAccountId(java.lang.Long newValue)

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

The following is a description of this column:

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

Parameters:
newValue - The ID of the account associated with this trading agreement.

setReferenceId

public void setReferenceId(java.lang.Long newValue)

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

The following is a description of this column:

The reference trading agreement identifier.

Parameters:
newValue - The reference trading agreement identifier.

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.Integer newValue)

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

The following is a description of this column:

This column indicates whether or not credit is allowed:

0 = No.

1 = Yes.

Parameters:
newValue - The credit allowed flag. 0 = No. 1 = Yes.

setEndTime

public void setEndTime(java.sql.Timestamp newValue)

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

The following is a description of this column:

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

Parameters:
newValue - The end time for the Trading Agreement. If null, no end time.

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

The following is a description of this column:

Indicates if this TradingAgreement has been marked for deletion:

0 = No.

1 = Yes, this TradingAgreement has been marked for deletion.

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

setReferenceCount

public void setReferenceCount(java.lang.Integer newValue)

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

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

Parameters:
newValue - The number of trading mechanisms associated with this TradingAgreement.

setStartTime

public void setStartTime(java.sql.Timestamp newValue)

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

The following is a description of this column:

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

Parameters:
newValue - Start time for the Trading Agreement. If null, start immediately.

setState

public void setState(java.lang.Integer newValue)

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

The following is a description of this column:

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

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

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:

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

Parameters:
newValue - The ID of the trading agreement.

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 trading type table.

Parameters:
newValue - The type of trading agreement.