com.ibm.commerce.contract.objimpl
Class TermConditionBeanBase

java.lang.Object
  |
  +--com.ibm.commerce.base.objects.ECEntityBean
        |
        +--com.ibm.commerce.contract.objimpl.TermConditionBeanBase
Direct Known Subclasses:
TermConditionBean

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 online help.

See Also:
Serialized Form

Field Summary
 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 Summary
TermConditionBeanBase()
           
 
Method Summary
 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.
 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.
  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 flag)
          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.
 void 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 tradingId, java.lang.Integer type, org.w3c.dom.Element e, java.lang.Integer sequence)
          Stores the XML data related to this term condition in the TCATTR table
 void setXMLDefinition(java.lang.Long tradingId, java.lang.Integer type, java.lang.String newValue, java.lang.Integer sequence)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referenceNumber

public java.lang.Long referenceNumber

tradingId

public java.lang.Long tradingId

tcSequence

public java.lang.Integer tcSequence

mandatoryFlag

public java.lang.Integer mandatoryFlag

changeableFlag

public java.lang.Integer changeableFlag

isDTD

protected boolean isDTD

timeCreated

public java.sql.Timestamp timeCreated

timeUpdated

public java.sql.Timestamp timeUpdated
Constructor Detail

TermConditionBeanBase

public TermConditionBeanBase()
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.
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 TermConditionAccessBean object with the specified trading agreement ID and the display customization term condition element.
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.

getChangeableFlag

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).

Returns:
The flag indicating whether the trading agreement participant can change the terms and conditions.

getDescription

public TermConditionDescriptionAccessBean getDescription(java.lang.Integer argLanguageId)
                                                  throws javax.ejb.CreateException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException
Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID.
Parameters:
argLanguageId - The ID of the specified language.
Returns:
The description of 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.

getDescription

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.

Parameters:
language_id - The ID of the specified language.
storeId - The ID of the specified store.
Returns:
The description of 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.

getFallbackDescription

protected java.lang.Object getFallbackDescription(java.lang.Integer languageId)
                                           throws javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException
Retrieves the description of the terms and conditions.
Parameters:
languageId - The ID of the specified language.
Returns:
The description of 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.

getMandatoryFlag

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).

Returns:
The flag indicating whether the trading agreement participant must respond to this term during negotiation.

getParticipants

public ParticipantAccessBean[] getParticipants()
                                        throws javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException
The method returns an array of ParticipantAccessBeans representing all the participants that the term condition has.
Returns:
An array of ParticipantAccessBean objects representing all the participants that belongs to 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.

getPolicies

public BusinessPolicyAccessBean[] getPolicies()
                                       throws javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
The method returns an array of BusinessPolicyAccessBean objects representing the business policies that the term condition has.
Returns:
An array of BusinessPolicyAccessBeans representing the business policies belonging to 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.

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argPolicyType)
                                             throws javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException
The method returns an array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.
Parameters:
argPolicyType - The type of business policy.
Returns:
An array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.
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.

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.

Returns:
The ID of the price list of the terms and conditions.

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.

Returns:
The ID of the product set this term referred to.

getReferenceNumber

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.

Returns:
The ID of the terms and conditions.

getTcSequence

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.

Returns:
The number indicating the sequence of the term within a trading agreement.

getTcSubType

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.

Returns:
The sub-type of the terms and conditions.

getTimeCreated

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.

Returns:
The time the terms and conditions were created.

getTimeUpdated

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.

Returns:
The last updated time of the terms and conditions.

getTradingId

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.

Returns:
The ID of the trading agreement.

getXMLString

public java.lang.String getXMLString()
                              throws javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method returns a String object representing the term condition in XML Element format.
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 returns a String object representing the term condition in XML Element format.
Parameters:
tcdata - The flag indicating whether term condition data should be included in the XML string.
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.

getXMLStringForElementPolicyReference

public java.lang.String getXMLStringForElementPolicyReference(java.lang.String argPolicyType)
                                                       throws javax.ejb.CreateException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException
Retrieves the XML string for the business policy reference element.
Parameters:
argPolicyType - The business policy type.
Returns:
The XML string for the policy.
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.

getXMLStringForTCData

public java.lang.String getXMLStringForTCData(boolean flag)
                                       throws javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
Retrieves the XML string for the term condition data.
Parameters:
flag - The flag indicating whether all term condition data should be included. If FALSE, only the mandatory and changeable flags will be included.
Returns:
The XML string for the term condition data.
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
This method marks the trading agreement for deletion.
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.

parseElementPolicyReference

public void parseElementPolicyReference(org.w3c.dom.Element argElePolicyReference)
                                 throws javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException,
                                        javax.ejb.RemoveException
Parses the specified policy reference element.
Parameters:
argElePolicyReference - The policy reference element.
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.

parseXMLElement

public void parseXMLElement(org.w3c.dom.Element argElement)
                     throws javax.ejb.CreateException,
                            javax.ejb.FinderException,
                            javax.naming.NamingException,
                            javax.ejb.RemoveException
Parses the specified element.
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.

retrieveBeanName

public java.lang.String retrieveBeanName()
Retrieves the name of the current bean.
Returns:
The name of the bean.

setChangeableFlag

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).

Parameters:
newChangeableFlag - The flag indicating whether the trading agreement participant can change the terms and conditions.

setMandatoryFlag

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).

Parameters:
newMandatoryFlag - The flag indicating whether the trading agreement participant must respond to this term during negotiation.

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.

Parameters:
newValue - The ID of the price list of the terms and conditions.

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.

Parameters:
newValue - The ID of the product set this term referred to.

setReferenceNumber

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.

Parameters:
newReferenceNumber - The ID of the terms and conditions.

setTcSequence

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.

Parameters:
newTcSequence - The number indicating the sequence of the term within a trading agreement.

setTimeCreated

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.

Parameters:
newValue - The time the terms and conditions were created.

setTimeUpdated

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.

Parameters:
newValue - The last updated time of the terms and conditions.

setTradingId

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.

Parameters:
newTradingId - The ID of the trading agreement.

getXMLDefinitions

public java.lang.String[] getXMLDefinitions(java.lang.Integer type)
                                     throws javax.naming.NamingException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            java.sql.SQLException
Retrieves an array of XML strings for this term condition that have the specified type.
Parameters:
type - The type of contract.
Returns:
An array of XML strings.
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.
java.sql.SQLException - The java.sql.SQLException exception.

getXMLStrings

public java.lang.String[] getXMLStrings(java.lang.Integer type)
                                 throws javax.naming.NamingException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        java.sql.SQLException
Retrieves an array of XML strings for this term condition that have the specified type without the XML contract header.
Parameters:
type - The type of contract.
Returns:
An array of XML strings.
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.
java.sql.SQLException - The java.sql.SQLException exception.

setXMLDefinition

public void setXMLDefinition(java.lang.Long tradingId,
                             java.lang.Integer type,
                             org.w3c.dom.Element e,
                             java.lang.Integer sequence)
                      throws javax.naming.NamingException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             java.sql.SQLException
Stores the XML data related to this term condition in the TCATTR table
Parameters:
tradingId - The ID of the trading agreement.
type - The type of contract.
e - The XML data
sequence - The sequence of the XML data.
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.
java.sql.SQLException - The java.sql.SQLException exception.

setXMLDefinition

public void setXMLDefinition(java.lang.Long tradingId,
                             java.lang.Integer type,
                             java.lang.String newValue,
                             java.lang.Integer sequence)
                      throws javax.naming.NamingException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             java.sql.SQLException
Stores the XML data related to this term condition in the TCATTR table
Parameters:
tradingId - The ID of the trading agreement.
type - The type of contract.
sequence - The sequence of the XML data.
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.
java.sql.SQLException - The java.sql.SQLException exception.

getEntireCatalogSelected

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.

Returns:
The flag indicating whether the entire catalog is selected.

setEntireCatalogSelected

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.

Parameters:
entireCatalogSelected - The flag indicating whether the entire catalog is selected in type INTEGER.

setEntireCatalogSelected

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.

Parameters:
entireCatalogSelected - The flag indicating whether the entire catalog is selected in type STRING.

getEntireCatalogAdjustment

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.

Returns:
The adjustment percentage.

setEntireCatalogAdjustment

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.

Parameters:
entireCatalogAdjustment - The adjustment percentage in type DOUBLE.

setEntireCatalogAdjustment

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.

Parameters:
entireCatalogAdjustment - The adjustment percentage in type STRING.

getInclusionProductSets

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.

Returns:
An array of product set IDs.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

getExclusionProductSets

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.

Returns:
An array of product set IDs.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

addProductSetAdjustment

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
Adds a new row to the product set adjustment (PSETADJMNT) table.
Parameters:
productsetId - The ID of the product set.
adjustment - The adjustment percentage.
precedence - The order in which to apply the adjustment.
type - Inclusion or Exclusion

0 - Category Inclusion

1 - Category Exclusion

2 - Product Inclusion

3 - Product Exclusion

Returns:
The number of rows updated.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

updateProductSetAdjustment

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
Updates a row in the product set adjustment (PSETADJMNT) table.
Parameters:
productsetId - The ID of the product set.
adjustment - The adjustment percentage.
precedence - The order in which to apply the adjustment.
type - Inclusion or Exclusion

0 - Category Inclusion

1 - Category Exclusion

2 - Product Inclusion

3 - Product Exclusion

Returns:
The number of rows updated.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

deleteProductSetAdjustment

public int deleteProductSetAdjustment(java.lang.Integer productsetId)
                               throws javax.naming.NamingException,
                                      javax.ejb.CreateException,
                                      java.sql.SQLException
Deletes a row in the product set adjustment (PSETADJMNT) table.
Parameters:
productsetId - The ID of the product set.
Returns:
The number of rows updated.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

findProductSetIdsByTCIdAndType

public java.lang.Integer[] findProductSetIdsByTCIdAndType(java.lang.Integer type)
                                                   throws javax.naming.NamingException,
                                                          javax.ejb.CreateException,
                                                          java.sql.SQLException
Returns an array of product set IDs in the PSETADJMNT table that matches the specified term condition ID and type.
Parameters:
type - Inclusion or Exclusion

0 - Category Inclusion

1 - Category Exclusion

2 - Product Inclusion

3 - Product Exclusion

Returns:
An array of product set IDs.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

getPolicyNameForElementPolicyReference

public java.lang.String getPolicyNameForElementPolicyReference(java.lang.String argPolicyType)
                                                        throws javax.ejb.CreateException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException
Retrieves the policy name of the policy reference element.
Parameters:
argPolicyType - The business policy type.
Returns:
The name of the policy.
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.

getStoreIdentityForElementPolicyReference

public java.lang.String getStoreIdentityForElementPolicyReference(java.lang.String argPolicyType)
                                                           throws javax.ejb.CreateException,
                                                                  javax.ejb.FinderException,
                                                                  javax.naming.NamingException
Retrieves the store identity of the policy reference element.
Parameters:
argPolicyType - The business policy type.
Returns:
The store identity of the policy.
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.

getStoreOwnerForElementPolicyReference

public java.lang.String getStoreOwnerForElementPolicyReference(java.lang.String argPolicyType)
                                                        throws javax.ejb.CreateException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException
Retrieves the store owner of the policy.
Parameters:
argPolicyType - The business policy type.
Returns:
The store owner of the policy.
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.

getProductSetAdjustments

public java.util.Vector getProductSetAdjustments()
                                          throws javax.naming.NamingException,
                                                 java.sql.SQLException,
                                                 javax.ejb.CreateException
Retrieves a vector of product set adjustment vectors associated with this term condition. Each product set adjustment vector has the following elements in order: 1 - The ID of the term condition. 2 - The ID of the product set. 3 - The type of the product set (inclusion or exclusion). 4 - The product set adjustment percentage. 5 - The order in which to apply the adjustment.
Returns:
A vector of product set adjustment vectors.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.
java.sql.SQLException - The java.sql.SQLException exception.

getPriceListIds

public java.lang.Long[] getPriceListIds()
                                 throws javax.ejb.CreateException,
                                        javax.naming.NamingException,
                                        javax.ejb.FinderException
Retrieves an array of price list IDs related to this term condition.
Returns:
An array of price list IDs.
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.