com.ibm.commerce.contract.objimpl
Class PriceTCPriceListWithSelectiveAdjustmentBeanBase

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.PriceTCPriceListWithSelectiveAdjustmentBeanBase
Direct Known Subclasses:
PriceTCPriceListWithSelectiveAdjustmentBean

public class PriceTCPriceListWithSelectiveAdjustmentBeanBase
extends TermConditionBean

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.

See Also:
Serialized Form

Field Summary
 java.lang.Integer adjustmentProductSetId
           
 java.lang.Long adjustmentProductSetOwnerId
           
 java.lang.Integer customProductSetFlag
           
 java.lang.Long priceListId
           
 java.lang.Integer productSetId
           
 java.lang.Double signedPercentage
           
 
Fields inherited from class com.ibm.commerce.contract.objimpl. TermConditionBeanBase
changeableFlag, isDTD, mandatoryFlag, referenceNumber, tcSequence, timeCreated, timeUpdated, tradingId
 
Constructor Summary
PriceTCPriceListWithSelectiveAdjustmentBeanBase()
           
 
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 a PriceTCPriceListWithSelectiveAdjustmentAccessBean object with the specified trading agreement ID, and the price 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 ejbRemove()
          Removes the product set data related to the price list.
 java.lang.Integer getAdjustmentProductSetId()
          This method provides access to the TERMCOND.INTEGERFIELD2 column of DB2 type INTEGER NULL.
 java.lang.String getAdjustmentProductSetName()
          This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.
 java.lang.Long getAdjustmentProductSetOwnerId()
          This method provides access to the TERMCOND.BIGINTFIELD2 column of DB2 type BIGINT NULL.
 java.lang.Integer getCustomProductSetFlag()
          This method provides access to the TERMCOND.INTEGERFIELD3 column of DB2 type INTEGER NULL.
 java.lang.Long getPriceListId()
          This method provides access to the TERMCOND.BIGINTFIELD1 column of DB2 type BIGINT NULL.
 java.lang.Integer getProductSetId()
          This method provides access to the TERMCOND.INTEGERFIELD1 column of DB2 type INTEGER NULL.
 java.lang.Double getSignedPercentage()
          This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
 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 markForDelete()
          Marks this term condition for deletion.
 void parseXMLElement(org.w3c.dom.Element argElement)
          This method parses the given XML element.
 void setAdjustmentProductSetId(java.lang.Integer newValue)
          This method provides access to the TERMCOND.INTEGERFIELD2 column of DB2 type INTEGER NULL.
 void setAdjustmentProductSetName(java.lang.String newAdjustmentProductSetName)
          This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.
 void setAdjustmentProductSetOwnerId(java.lang.Long newAdjustmentProductSetOwnerId)
          This method provides access to the TERMCOND.BIGINTFIELD2 column of DB2 type BIGINT NULL.
 void setCustomProductSetFlag(java.lang.Integer newValue)
          This method provides access to the TERMCOND.INTEGERFIELD3 column of DB2 type INTEGER 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 setSignedPercentage(java.lang.Double newValue)
          This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.
 
Methods inherited from class com.ibm.commerce.contract.objects. TermConditionBean
_copyFromEJB, _copyToEJB, _getLinks, _initLinks, _removeLinks, ejbActivate, ejbLoad, ejbPassivate, ejbStore
 
Methods inherited from class com.ibm.commerce.contract.objimpl. TermConditionBeanBase
addProductSetAdjustment, deleteProductSetAdjustment, findProductSetIdsByTCIdAndType, getChangeableFlag, getDescription, getDescription, getEntireCatalogAdjustment, getEntireCatalogSelected, getExclusionProductSets, getFallbackDescription, getInclusionProductSets, getMandatoryFlag, getParticipants, getPolicies, getPoliciesByType, getPolicyNameForElementPolicyReference, getPriceListIds, getProductSetAdjustments, getReferenceNumber, getStoreIdentityForElementPolicyReference, getStoreOwnerForElementPolicyReference, getTcSequence, getTcSubType, getTimeCreated, getTimeUpdated, getTradingId, getXMLDefinitions, getXMLStringForElementPolicyReference, getXMLStringForTCData, getXMLStrings, parseElementPolicyReference, retrieveBeanName, setChangeableFlag, setEntireCatalogAdjustment, setEntireCatalogAdjustment, setEntireCatalogSelected, setEntireCatalogSelected, setMandatoryFlag, setReferenceNumber, setTcSequence, setTimeCreated, setTimeUpdated, setTradingId, setXMLDefinition, setXMLDefinition, updateProductSetAdjustment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signedPercentage

public java.lang.Double signedPercentage

adjustmentProductSetId

public java.lang.Integer adjustmentProductSetId

adjustmentProductSetOwnerId

public java.lang.Long adjustmentProductSetOwnerId

priceListId

public java.lang.Long priceListId

productSetId

public java.lang.Integer productSetId

customProductSetFlag

public java.lang.Integer customProductSetFlag
Constructor Detail

PriceTCPriceListWithSelectiveAdjustmentBeanBase

public PriceTCPriceListWithSelectiveAdjustmentBeanBase()
Method Detail

createNewVersion

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
This method creates a new version of the terms and conditions.
Overrides:
createNewVersion in class TermConditionBeanBase
Parameters:
argNewTradingId - The trading ID of the new contract version.
Returns:
The term condition ID of the new contract version.
Throws:
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.

ejbCreate

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
Constructs a PriceTCPriceListWithSelectiveAdjustmentAccessBean object with the specified trading agreement ID, and the price term condition element.
Overrides:
ejbCreate in class TermConditionBean
Parameters:
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.
Throws:
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.
See Also:
TermConditionBeanBase.ejbCreate(Long, Element)

ejbPostCreate

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
Parses the XML element to construct the terms and conditions.
Overrides:
ejbPostCreate in class TermConditionBean
Parameters:
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.
Throws:
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.

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
Removes the product set data related to the price list.
Overrides:
ejbRemove in class TermConditionBean
Throws:
javax.ejb.RemoveException - The javax.ejb.RemoveException exception.
See Also:
javax.ejb.EntityBean#ejbRemove()

getAdjustmentProductSetId

public java.lang.Integer getAdjustmentProductSetId()

This method provides access to the TERMCOND.INTEGERFIELD2 column of DB2 type INTEGER NULL.

The following is a description of this column:

An INTEGER field used to store terms and conditions data.

Returns:
The ID of the product set adjustment.

getAdjustmentProductSetName

public java.lang.String getAdjustmentProductSetName()

This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.

The following is a description of this column:

A STRING field used to store terms and conditions data.

Returns:
The name of the product set adjustment.

getAdjustmentProductSetOwnerId

public java.lang.Long getAdjustmentProductSetOwnerId()

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.

Returns:
The ID of the adjustment product set owner.

getCustomProductSetFlag

public java.lang.Integer getCustomProductSetFlag()

This method provides access to the TERMCOND.INTEGERFIELD3 column of DB2 type INTEGER NULL.

The following is a description of this column:

An INTEGER field used to store terms and conditions data.

Returns:
The flag indicating whether the product is customized.

getPriceListId

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.

Overrides:
getPriceListId in class TermConditionBeanBase
Returns:
The ID of the price list.

getProductSetId

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.

Overrides:
getProductSetId in class TermConditionBeanBase
Returns:
The ID of the product set.

getSignedPercentage

public java.lang.Double getSignedPercentage()

This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.

The following is a description of this column:

A DOUBLE field used to store terms and conditions data.

Returns:
The signed percentage adjustment.

getXMLString

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.

Overrides:
getXMLString in class TermConditionBeanBase
Returns:
The String object representing the terms and conditions in XML Element format.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

getXMLString

public java.lang.String getXMLString(boolean tcdata)
                              throws javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method retrieves the XML String associated with the terms and conditions.
Overrides:
getXMLString in class TermConditionBeanBase
Parameters:
tcdata - The flag indicating whether terms and conditions data should be included.
Returns:
The String object representing the terms and conditions in XML Element format.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

markForDelete

public void markForDelete()
                   throws javax.ejb.CreateException,
                          javax.ejb.FinderException,
                          javax.naming.NamingException
Marks this term condition for deletion.
Overrides:
markForDelete in class TermConditionBeanBase
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

parseXMLElement

public void parseXMLElement(org.w3c.dom.Element argElement)
                     throws javax.ejb.CreateException,
                            javax.ejb.FinderException,
                            javax.naming.NamingException,
                            javax.ejb.RemoveException
This method parses the given XML element.
Overrides:
parseXMLElement in class TermConditionBeanBase
Parameters:
argElement - The XML element associated with the terms and conditions.
Throws:
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.

setAdjustmentProductSetId

public void setAdjustmentProductSetId(java.lang.Integer newValue)

This method provides access to the TERMCOND.INTEGERFIELD2 column of DB2 type INTEGER NULL.

The following is a description of this column:

An INTEGER field used to store terms and conditions data.

Parameters:
newValue - The ID of the product set adjustment.

setAdjustmentProductSetName

public void setAdjustmentProductSetName(java.lang.String newAdjustmentProductSetName)

This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.

The following is a description of this column:

A STRING field used to store terms and conditions data.

Parameters:
newAdjustmentProductSetName - The name of the product set adjustment.

setAdjustmentProductSetOwnerId

public void setAdjustmentProductSetOwnerId(java.lang.Long newAdjustmentProductSetOwnerId)

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.

Parameters:
newAdjustmentProductSetOwnerId - The ID of the adjustment product set owner.

setCustomProductSetFlag

public void setCustomProductSetFlag(java.lang.Integer newValue)

This method provides access to the TERMCOND.INTEGERFIELD3 column of DB2 type INTEGER NULL.

The following is a description of this column:

An INTEGER field used to store terms and conditions data.

Parameters:
newValue - The flag indicating whether the product is customized.

setPriceListId

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.

Overrides:
setPriceListId in class TermConditionBeanBase
Parameters:
newValue - The ID of the price list.

setProductSetId

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.

Overrides:
setProductSetId in class TermConditionBeanBase
Parameters:
newValue - The ID of the product set.

setSignedPercentage

public void setSignedPercentage(java.lang.Double newValue)

This method provides access to the TERMCOND.FLOATFIELD1 column of DB2 type DOUBLE NULL.

The following is a description of this column:

A DOUBLE field used to store terms and conditions data.

Parameters:
newValue - The signed percentage adjustment.