com.ibm.commerce.contract.objects
Class TradingAgreementBean

com.ibm.commerce.contract.objects.TradingAgreementBean

public class TradingAgreementBean

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.


Constructor Summary
TradingAgreementBean()
           
 
Method Summary
 java.lang.Long getAccountId()
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 java.lang.Integer getCreditAllowedFlag()
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 java.sql.Timestamp getEndTime()
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 java.lang.Integer getMarkForDelete()
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getReferenceCount()
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT 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.
 java.lang.Long getTradingId()
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Integer getTradingType()
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setAccountId(java.lang.Long aAccountId)
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 void setCreditAllowedFlag(java.lang.Integer aCreditAllowedFlag)
          This method provides access to the TRADING.CREDITALLOWED column of DB2 type INTEGER NOT NULL.
 void setEndTime(java.sql.Timestamp aEndTime)
          This method provides access to the TRADING.ENDTIME column of DB2 type TIMESTAMP NULL.
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the TRADING.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setReferenceCount(java.lang.Integer aReferenceCount)
          This method provides access to the TRADING.REFERENCECOUNT column of DB2 type INTEGER NOT NULL.
 void setStartTime(java.sql.Timestamp aStartTime)
          This method provides access to the TRADING.STARTTIME column of DB2 type TIMESTAMP NULL.
 void setState(java.lang.Integer aState)
          This method provides access to the TRADING.STATE column of DB2 type INTEGER NOT NULL.
 void setTradingId(java.lang.Long aTradingId)
          This method provides access to the TRADING.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingType(java.lang.Integer aTradingType)
          This method provides access to the TRADING.TRDTYPE_ID column of DB2 type INTEGER NOT NULL.
 

Constructor Detail

TradingAgreementBean

public TradingAgreementBean()
Method Detail

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:
java.lang.Long

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:
java.lang.Integer

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:
java.sql.Timestamp

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:
java.lang.Integer

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:
java.lang.Integer

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:
java.sql.Timestamp

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:
java.lang.Integer

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:
java.lang.Long

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:
java.lang.Integer

setAccountId

public void setAccountId(java.lang.Long aAccountId)

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

The following is a description of this column:

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

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

setCreditAllowedFlag

public void setCreditAllowedFlag(java.lang.Integer aCreditAllowedFlag)

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

The following is a description of this column:

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

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

setEndTime

public void setEndTime(java.sql.Timestamp aEndTime)

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

The following is a description of this column:

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

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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

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

The following is a description of this column:

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

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

setReferenceCount

public void setReferenceCount(java.lang.Integer aReferenceCount)

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

The following is a description of this column:

Number of trading mechanisms associated with this TradingAgreement

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

setStartTime

public void setStartTime(java.sql.Timestamp aStartTime)

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

The following is a description of this column:

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

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

setState

public void setState(java.lang.Integer aState)

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

The following is a description of this column:

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

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

setTradingId

public void setTradingId(java.lang.Long aTradingId)

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

The following is a description of this column:

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

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

setTradingType

public void setTradingType(java.lang.Integer aTradingType)

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

The following is a description of this column:

Foreign key to the trading type table.

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