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. This bean accesses the database table TRADING
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TradingAgreementBeanBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
void | ejbRemove()
ejbRemove method comment
|
void | ejbStore()
ejbStore method comment
|
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 returns an array of BusinessPolicyAccessBean objects representing all the business policies the trading agreement has.
|
BusinessPolicyAccessBean[] | getPolicies(java.lang.Long argMemberId)
The method returns 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.
|
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.
|
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 checks 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.
|
public java.lang.Long tradingId
public java.lang.Integer tradingType
public java.lang.Long accountId
public java.lang.Integer state
public java.lang.Integer markForDelete
public java.lang.Integer referenceCount
public java.sql.Timestamp startTime
public java.sql.Timestamp endTime
public java.lang.Integer creditAllowedFlag
public java.lang.Long referenceId
public void ejbRemove() throws javax.ejb.RemoveException, java.rmi.RemoteException
public void ejbStore()
public com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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
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.)
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.
public AttachmentAccessBean[] getAttachment() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the Attachments associated with this trading agreement.
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.
public TradingDescriptionAccessBean getDescription(java.lang.Integer argLanguageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id, java.lang.Integer storeId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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.
protected java.lang.Object getFallbackDescription(java.lang.Integer languageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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.
public BusinessPolicyAccessBean[] getPolicies() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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
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.
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.
public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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.
public ParticipantAccessBean[] getTradingLevelParticipants() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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.
public boolean hasTCLevelParticipant() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
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.
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.
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.)
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.
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.
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.
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.
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
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.
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.
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.
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.