java.lang.Object | +--com.ibm.commerce.base.objects.ECEntityBean | +--com.ibm.commerce.contract.objimpl.TradingAgreementBeanBase
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.
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 |
---|
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
Constructor Detail |
---|
public TradingAgreementBeanBase()
Method Detail |
---|
public com.ibm.commerce.contract.objects.TradingAgreementKey ejbCreate(java.lang.Integer argType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argType
- The type of the trading agreement.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
argType
- The type of the trading agreement.argStartTime
- The starting time of the trading
agreement.argEndTime
- The ending time of the trading agreement.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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.
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
argLanguageId
- The language ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id, java.lang.Integer storeId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
language_id
- The language ID.storeId
- The ID of the store.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
languageId
- The language ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argMemberId
- The member ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argType
- The type of the business policy.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argType
- The type of business policy.argMemberId
- The member ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
argTCSubType
- The sub-type of the terms and conditions.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argTCSubType
- The type of the terms and conditions.argMemberId
- The member ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argTCType
- The type of the terms and conditions.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
argTCType
- The type of the terms and conditions.argMemberId
- The member ID.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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.
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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.
javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.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.)
newValue
- The ID of the account associated with this trading
agreement.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.
newValue
- 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.
newValue
- The credit allowed flag. 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.
newValue
- The 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.
newValue
- The MarkForDelete flag of the trading agreement. 1
= Yes, 0 = No.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
newValue
- The 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.
newValue
- 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.
newValue
- The state of the trading agreement. 0=inactive, 1=
active.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.
newValue
- The ID of the trading
agreement.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.
newValue
- The type of trading agreement.