java.lang.Object | +--com.ibm.commerce.base.objects.ECEntityBean | +--com.ibm.commerce.contract.objimpl.TermConditionBeanBase | +--com.ibm.commerce.contract.objects.TermConditionBean | +--com.ibm.commerce.contract.objimpl.OrderTCOrderItemPAttributeBeanBase
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 online help.
Field Summary | |
---|---|
java.lang.Long |
catEntryId |
Fields inherited from class com.ibm.commerce.contract.objimpl. TermConditionBeanBase |
changeableFlag,
isDTD,
mandatoryFlag,
referenceNumber,
tcSequence,
timeCreated,
timeUpdated,
tradingId |
Constructor Summary | |
---|---|
OrderTCOrderItemPAttributeBeanBase() |
Method Summary | |
---|---|
java.lang.Long |
createNewVersion(java.lang.Long argNewTradingId) This method creates a new version of the terms and conditions. |
com.ibm.commerce.contract.objects.TermConditionKey |
ejbCreate(java.lang.Long argTradingId,
org.w3c.dom.Element argElement) Constructs an OrderTCOrderItemPAttributeAccessBean object with the specified trading agreement ID, and the order item term condition element. |
com.ibm.commerce.contract.objects.TermConditionKey |
ejbCreate(java.lang.Long argTradingId, java.lang.Long argCatEntryId,
java.lang.Integer argMandatoryFlag,
java.lang.Integer argChangeableFlag) Constructs an OrderTCOrderItemPAttributeAccessBean object with the specified trading agreement ID, and the order item term condition element. |
void |
ejbPostCreate(java.lang.Long argTradingId,
org.w3c.dom.Element argElement) Parses the XML element to construct the terms and conditions. |
void |
ejbPostCreate(java.lang.Long argTradingId,
java.lang.Long argCatEntryId, java.lang.Integer argMandatoryFlag,
java.lang.Integer argChangeableFlag) Empty method for ejbPostCreate |
java.lang.Long |
getCatEntryId() This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL. |
PAttrValueAccessBean[] |
getPAttrValues() This method returns all personalization attribute values. |
java.lang.String |
getXMLString() This method retrieves the XML String associated with the terms and conditions. |
java.lang.String |
getXMLString(boolean tcdata) This method retrieves the XML String associated with the terms and conditions. |
void |
parseXMLElement(org.w3c.dom.Element argElement) This method parses the given XML element. |
void |
setCatEntryId(java.lang.Long newValue) This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL. |
Methods inherited from class com.ibm.commerce.contract.objects. TermConditionBean |
_copyFromEJB,
_copyToEJB,
_getLinks,
_initLinks,
_removeLinks,
ejbActivate,
ejbLoad,
ejbPassivate,
ejbRemove,
ejbStore |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Long catEntryId
Constructor Detail |
---|
public OrderTCOrderItemPAttributeBeanBase()
Method Detail |
---|
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
createNewVersion
in class
TermConditionBeanBase
argNewTradingId
- The trading ID of the new contract
version.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.RemoveException
- The javax.ejb.RemoveException
exception.org.xml.sax.SAXException
- The org.xml.sax.SAXException
exception.java.io.IOException
- The java.io.IOException
exception.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
ejbCreate
in class
TermConditionBean
argTradingId
- The ID of the trading agreement the terms and
conditions will be associated with.argElement
- The XML Elment object represeting 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.javax.ejb.RemoveException
- The javax.ejb.RemoveException
exception.TermConditionBeanBase.ejbCreate(Long,
Element)
public com.ibm.commerce.contract.objects.TermConditionKey ejbCreate(java.lang.Long argTradingId, java.lang.Long argCatEntryId, java.lang.Integer argMandatoryFlag, java.lang.Integer argChangeableFlag) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
Constructs an OrderTCOrderItemPAttributeAccessBean object with the specified trading agreement ID, and the order item term condition element.
This method is called by RFQ and does not create a row in the PATTRVALUE table.
argTradingId
- The ID of the trading agreement the terms and
conditions will be associated with.argCatEntryId
- The ID of the catalog entry.argMandatoryFlag
- The flag indicating whether the term
condition is mandatory.argChangeableFlag
- The flag indicating whether the term
condition is changeable.javax.ejb.CreateException
- The javax.ejb.CreateException
exception.javax.ejb.FinderException
- The javax.ejb.FinderException
exception.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.RemoveException
- The javax.ejb.RemoveException
exception.public void ejbPostCreate(java.lang.Long argTradingId, org.w3c.dom.Element argElement) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
ejbPostCreate
in class
TermConditionBean
argTradingId
- The ID of the trading agreement the terms and
conditions will be associated with.argElement
- The XML Elment object representing 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.javax.ejb.RemoveException
- The javax.ejb.RemoveException
exception.public void ejbPostCreate(java.lang.Long argTradingId, java.lang.Long argCatEntryId, java.lang.Integer argMandatoryFlag, java.lang.Integer argChangeableFlag) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
argTradingId
- The ID of the trading agreement the terms and
conditions will be associated with.argCatEntryId
- The ID of the catalog entry.argMandatoryFlag
- The flag indicating whether the term
condition is mandatory.argChangeableFlag
- The flag indicating whether the term
condition is changeable.javax.ejb.CreateException
- The exception description.javax.ejb.FinderException
- The exception description.javax.naming.NamingException
- The exception description.javax.ejb.RemoveException
- The exception
description.public java.lang.Long getCatEntryId()
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 PAttrValueAccessBean[] getPAttrValues() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
javax.ejb.CreateException
- The exception description.javax.ejb.FinderException
- The exception description.javax.naming.NamingException
- The exception
description.public java.lang.String getXMLString() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method retrieves the XML String associated with the terms and conditions.
No terms and conditions data will be included in this XML String.
getXMLString
in class
TermConditionBeanBase
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.String getXMLString(boolean tcdata) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
getXMLString
in class
TermConditionBeanBase
tcdata
- The flag indicating whether terms and conditions data
should be included.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 parseXMLElement(org.w3c.dom.Element argElement) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, javax.ejb.RemoveException
parseXMLElement
in class
TermConditionBeanBase
argElement
- The XML element associated with 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.javax.ejb.RemoveException
- The javax.ejb.RemoveException
exception.public void setCatEntryId(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.
newValue
- The ID of the catalog entry.