public class TermConditionBeanBase
extends com.ibm.commerce.base.objects.ECEntityBean
This bean provides access to the TERMCOND table.
The following is a description of this table:
This table contains terms and conditions used in trading agreements (business accounts, contracts, RFQs). To see how columns are used by different terms and conditions, refer to TERMCOND column mapping in the WebSphere Commerce Accelerator information center. This bean accesses the database table TERMCOND.
Modifier and Type | Field and Description |
---|---|
java.lang.Integer | changeableFlag |
protected boolean | isDTD |
java.lang.Integer | mandatoryFlag |
java.lang.Long | referenceNumber |
java.lang.Integer | tcSequence |
java.sql.Timestamp | timeCreated |
java.sql.Timestamp | timeUpdated |
java.lang.Long | tradingId |
Constructor and Description |
---|
TermConditionBeanBase() |
Modifier and Type | Method and Description |
---|---|
int | addProductSetAdjustment(java.lang.Integer productsetId, java.lang.Double adjustment, java.lang.Integer precedence, java.lang.Integer type)
Adds a new row to the product set adjustment (PSETADJMNT) table.
|
java.lang.Long | createNewVersion(java.lang.Long argNewTradingId)
This method creates a new version of the terms and conditions.
|
int | deleteProductSetAdjustment(java.lang.Integer productsetId)
Deletes a row in the product set adjustment (PSETADJMNT) table.
|
com.ibm.commerce.contract.objects.TermConditionKey | ejbCreate(java.lang.Long argTradingId, org.w3c.dom.Element argElement)
Constructs a TermConditionAccessBean object with the specified trading agreement ID and the display customization term condition element.
|
void | ejbRemove()
ejbRemove method comment
|
void | ejbStore()
ejbStore method comment
|
java.lang.Integer[] | findProductSetIdsByTCIdAndType(java.lang.Integer type)
Returns an array of product set IDs in the PSETADJMNT table that matches the specified term condition ID and type.
|
java.lang.Integer | getChangeableFlag()
This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
|
TermConditionDescriptionAccessBean | getDescription(java.lang.Integer argLanguageId)
Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID.
|
TermConditionDescriptionAccessBean | getDescription(java.lang.Integer language_id, java.lang.Integer storeId)
The bean that holds the language specific information for this TermCondition for the language identified by language_id and the store identified by storeId.
|
java.lang.Double | getEntireCatalogAdjustment()
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
|
java.lang.Integer | getEntireCatalogSelected()
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
|
java.lang.Integer[] | getExclusionProductSets()
Retrieves all the exclusion product set IDs for this term condition element.
|
protected java.lang.Object | getFallbackDescription(java.lang.Integer languageId)
Retrieves the description of the terms and conditions.
|
java.lang.Integer[] | getInclusionProductSets()
Retrieves all the inclusion product set IDs for this term condition element.
|
java.lang.Integer | getMandatoryFlag()
This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
|
ParticipantAccessBean[] | getParticipants()
The method returns an array of ParticipantAccessBeans representing all the participants that the term condition has.
|
java.lang.Long | getPercentagePriceList()
This method provides access to the TERMCOND.BIGINTFIELD2 column of DB2 type BIGINT NULL.
|
java.lang.Long[] | getPercentagePriceListIds()
Retrieves an array of percentage price list IDs related to this term condition.
|
BusinessPolicyAccessBean[] | getPolicies()
The method returns an array of BusinessPolicyAccessBean objects representing the business policies that the term condition has.
|
BusinessPolicyAccessBean[] | getPoliciesByType(java.lang.String argPolicyType)
The method returns an array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.
|
java.lang.String | getPolicyNameForElementPolicyReference(java.lang.String argPolicyType)
Retrieves the policy name of the policy reference element.
|
java.lang.Long | getPriceListId()
This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL.
|
java.lang.Long[] | getPriceListIds()
Retrieves an array of price list IDs related to this term condition.
|
java.util.Vector | getProductSetAdjustments()
Retrieves a vector of product set adjustment vectors associated with this term condition.
|
java.lang.Integer | getProductSetId()
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
|
java.lang.Long | getReferenceNumber()
This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.String | getStoreIdentityForElementPolicyReference(java.lang.String argPolicyType)
Retrieves the store identity of the policy reference element.
|
java.lang.String | getStoreOwnerForElementPolicyReference(java.lang.String argPolicyType)
Retrieves the store owner of the policy.
|
java.lang.Integer | getTcSequence()
This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
|
java.lang.String | getTcSubType()
This method provides access to the TERMCOND.TCSUBTYPE_ID column of DB2 type CHARACTER(64) NOT NULL.
|
java.sql.Timestamp | getTimeCreated()
This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
|
java.sql.Timestamp | getTimeUpdated()
This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
|
java.lang.Long | getTradingId()
This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.String[] | getXMLDefinitions(java.lang.Integer type)
Retrieves an array of XML strings for this term condition that have the specified type.
|
java.lang.String | getXMLString()
This method returns a String object representing the term condition in XML Element format.
|
java.lang.String | getXMLString(boolean tcdata)
This method returns a String object representing the term condition in XML Element format.
|
java.lang.String | getXMLStringForElementPolicyReference(java.lang.String argPolicyType)
Retrieves the XML string for the business policy reference element.
|
java.lang.String | getXMLStringForTCData(boolean abAllTC)
Retrieves the XML string for the term condition data.
|
java.lang.String[] | getXMLStrings(java.lang.Integer type)
Retrieves an array of XML strings for this term condition that have the specified type without the XML contract header.
|
void | markForDelete()
This method marks the trading agreement for deletion.
|
java.lang.Long | parseElementPolicyReference(org.w3c.dom.Element argElePolicyReference)
Parses the specified policy reference element.
|
void | parseXMLElement(org.w3c.dom.Element argElement)
Parses the specified element.
|
java.lang.String | retrieveBeanName()
Retrieves the name of the current bean.
|
void | setChangeableFlag(java.lang.Integer newChangeableFlag)
This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
|
void | setEntireCatalogAdjustment(java.lang.Double entireCatalogAdjustment)
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
|
void | setEntireCatalogAdjustment(java.lang.String entireCatalogAdjustment)
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
|
void | setEntireCatalogSelected(java.lang.Integer entireCatalogSelected)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
|
void | setEntireCatalogSelected(java.lang.String entireCatalogSelected)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
|
void | setMandatoryFlag(java.lang.Integer newMandatoryFlag)
This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
|
void | setPriceListId(java.lang.Long newValue)
This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL.
|
void | setProductSetId(java.lang.Integer newValue)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
|
void | setReferenceNumber(java.lang.Long newReferenceNumber)
This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
|
void | setTcSequence(java.lang.Integer newTcSequence)
This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
|
void | setTimeCreated(java.sql.Timestamp newValue)
This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
|
void | setTimeUpdated(java.sql.Timestamp newValue)
This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
|
void | setTradingId(java.lang.Long newTradingId)
This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
|
void | setXMLDefinition(java.lang.Long anTradingId, java.lang.Integer anType, org.w3c.dom.Element aElement, java.lang.Integer anSequence)
Stores the XML data related to this term condition in the TCATTR table
|
void | setXMLDefinition(java.lang.Long anTradingId, java.lang.Integer anType, java.lang.String astrXMLData, java.lang.Integer anSequence)
Stores the XML data related to this term condition in the TCATTR table
|
int | updateProductSetAdjustment(java.lang.Integer productsetId, java.lang.Double adjustment, java.lang.Integer precedence, java.lang.Integer type)
Updates a row in the product set adjustment (PSETADJMNT) table.
|
public java.lang.Long referenceNumber
public java.lang.Long tradingId
public java.lang.Integer tcSequence
public java.lang.Integer mandatoryFlag
public java.lang.Integer changeableFlag
protected boolean isDTD
public java.sql.Timestamp timeCreated
public java.sql.Timestamp timeUpdated
public void ejbRemove() throws javax.ejb.RemoveException, java.rmi.RemoteException
public void ejbStore()
public java.lang.Long createNewVersion(java.lang.Long argNewTradingId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException, org.xml.sax.SAXException, java.io.IOException
public com.ibm.commerce.contract.objects.TermConditionKey ejbCreate(java.lang.Long argTradingId, org.w3c.dom.Element argElement) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
public java.lang.Integer getChangeableFlag()
This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column indicates if the trading agreement participant can change the term. (0 - no; 1 - yes).
public TermConditionDescriptionAccessBean getDescription(java.lang.Integer argLanguageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public TermConditionDescriptionAccessBean 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 TermCondition 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.
protected java.lang.Object getFallbackDescription(java.lang.Integer languageId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Integer getMandatoryFlag()
This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column is used to indicate if the trading agreement participant must respond to this term during negotiation. (0 - no; 1 - yes).
public ParticipantAccessBean[] getParticipants() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public BusinessPolicyAccessBean[] getPolicies() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argPolicyType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getPriceListId()
This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL.
The following is a description of this column:
A BIGINT field used to store terms and conditions data.
public java.lang.Integer getProductSetId()
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
The following is a description of this column:
An INTEGER field used to store terms and conditions data.
public java.lang.Long getReferenceNumber()
This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Primary key and internal reference number for this term.
public java.lang.Integer getTcSequence()
This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column contains a number indicating the sequence of the term within a trading agreement. This number must be unique within a trading agreement.
public java.lang.String getTcSubType()
This method provides access to the TERMCOND.TCSUBTYPE_ID column of DB2 type CHARACTER(64) NOT NULL.
The following is a description of this column:
A CHARACTER field used to terms and conditions subtype.
public java.sql.Timestamp getTimeCreated()
This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the terms and conditions were created.
public java.sql.Timestamp getTimeUpdated()
This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The last updated time of the terms and conditions.
public java.lang.Long getTradingId()
This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Foreign key to TRADING table. This column indicates the trading agreement this term belongs to.
public java.lang.String getXMLString() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getXMLString(boolean tcdata) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getXMLStringForElementPolicyReference(java.lang.String argPolicyType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getXMLStringForTCData(boolean abAllTC) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void markForDelete() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long parseElementPolicyReference(org.w3c.dom.Element argElePolicyReference) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
public void parseXMLElement(org.w3c.dom.Element argElement) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
public java.lang.String retrieveBeanName()
public void setChangeableFlag(java.lang.Integer newChangeableFlag)
This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column indicates if the trading agreement participant can change the term. (0 - no; 1 - yes).
public void setMandatoryFlag(java.lang.Integer newMandatoryFlag)
This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column is used to indicate if the trading agreement participant must respond to this term during negotiation. (0 - no; 1 - yes).
public void setPriceListId(java.lang.Long newValue)
This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL.
The following is a description of this column:
A BIGINT field used to store terms and conditions data.
public void setProductSetId(java.lang.Integer newValue)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
The following is a description of this column:
An INTEGER field used to store terms and conditions data.
public void setReferenceNumber(java.lang.Long newReferenceNumber)
This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Primary key and internal reference number for this term.
public void setTcSequence(java.lang.Integer newTcSequence)
This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
This column contains a number indicating the sequence of the term within a trading agreement. This number must be unique within a trading agreement.
public void setTimeCreated(java.sql.Timestamp newValue)
This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the terms and conditions were created.
public void setTimeUpdated(java.sql.Timestamp newValue)
This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The last updated time of the terms and conditions.
public void setTradingId(java.lang.Long newTradingId)
This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Foreign key to TRADING table. This column indicates the trading agreement this term belongs to.
public java.lang.String[] getXMLDefinitions(java.lang.Integer type) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.sql.SQLException
public java.lang.String[] getXMLStrings(java.lang.Integer type) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.sql.SQLException
public void setXMLDefinition(java.lang.Long anTradingId, java.lang.Integer anType, org.w3c.dom.Element aElement, java.lang.Integer anSequence) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.sql.SQLException
public void setXMLDefinition(java.lang.Long anTradingId, java.lang.Integer anType, java.lang.String astrXMLData, java.lang.Integer anSequence) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.sql.SQLException
public java.lang.Integer getEntireCatalogSelected()
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL. Returns null if the child term condition EJB does not have an overriding implementation of this method.
The following is a description of this column:
The flag indicating whether the entire catalog is selected for the price term condition.
public void setEntireCatalogSelected(java.lang.Integer entireCatalogSelected)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
The following is a description of this column:
The flag indicating whether the entire catalog is selected for the price term condition.
public void setEntireCatalogSelected(java.lang.String entireCatalogSelected)
This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
The following is a description of this column:
The flag indicating whether the entire catalog is selected for the price term condition.
public java.lang.Double getEntireCatalogAdjustment()
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL. Returns null if the child term condition EJB does not have an overriding implementation of this method.
The following is a description of this column:
The adjustment percentage for the entire catalog.
public void setEntireCatalogAdjustment(java.lang.Double entireCatalogAdjustment)
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
The following is a description of this column:
The adjustment percentage for the entire catalog.
public void setEntireCatalogAdjustment(java.lang.String entireCatalogAdjustment)
This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
The following is a description of this column:
The adjustment percentage for the entire catalog.
public java.lang.Integer[] getInclusionProductSets() throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
Retrieves all the inclusion product set IDs for this term condition element.
Returns null if the child term condition EJB does not have an overriding implementation of this method.
public java.lang.Integer[] getExclusionProductSets() throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
Retrieves all the exclusion product set IDs for this term condition element.
Returns null if the child term condition EJB does not have an overriding implementation of this method.
public int addProductSetAdjustment(java.lang.Integer productsetId, java.lang.Double adjustment, java.lang.Integer precedence, java.lang.Integer type) throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
0 - Category Inclusion
1 - Category Exclusion
2 - Product Inclusion
3 - Product Exclusion
public int updateProductSetAdjustment(java.lang.Integer productsetId, java.lang.Double adjustment, java.lang.Integer precedence, java.lang.Integer type) throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
0 - Category Inclusion
1 - Category Exclusion
2 - Product Inclusion
3 - Product Exclusion
public int deleteProductSetAdjustment(java.lang.Integer productsetId) throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
public java.lang.Integer[] findProductSetIdsByTCIdAndType(java.lang.Integer type) throws javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
0 - Category Inclusion
1 - Category Exclusion
2 - Product Inclusion
3 - Product Exclusion
public java.lang.String getPolicyNameForElementPolicyReference(java.lang.String argPolicyType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getStoreIdentityForElementPolicyReference(java.lang.String argPolicyType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getStoreOwnerForElementPolicyReference(java.lang.String argPolicyType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.util.Vector getProductSetAdjustments() throws javax.naming.NamingException, java.sql.SQLException, javax.ejb.CreateException
public java.lang.Long[] getPriceListIds() throws javax.ejb.CreateException, javax.naming.NamingException, javax.ejb.FinderException
public java.lang.Long getPercentagePriceList()
This method provides access to the TERMCOND.BIGINTFIELD2 column of DB2 type BIGINT NULL.
The following is a description of this column:
A BIGINT field used to store terms and conditions data.
public java.lang.Long[] getPercentagePriceListIds() throws javax.ejb.CreateException, javax.naming.NamingException, javax.ejb.FinderException