com.ibm.commerce.contract.objects
Class RightToBuyTCByAmountAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.contract.objects.RightToBuyTCByAmountAccessBean
All Implemented Interfaces:
RightToBuyTCByAmountAccessBeanData, java.io.Serializable

public class RightToBuyTCByAmountAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements RightToBuyTCByAmountAccessBeanData

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

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
RightToBuyTCByAmountAccessBean()
          Default constructor.
RightToBuyTCByAmountAccessBean(javax.ejb.EJBObject anObject)
          Creates an access bean for the specified EJB
RightToBuyTCByAmountAccessBean(java.lang.Long tradingId, org.w3c.dom.Element tcElement)
          Constructs an RightToBuyTCByAmountAccessBean object with the specified trading agreement ID, and the right to buy term condition element.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.lang.Long createNewVersion(java.lang.Long aNewVersion)
          This method creates a new version of the terms and conditions.
 java.lang.String getChangeableFlag()
          This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getChangeableFlagInEJBType()
          This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.
 TermConditionDescriptionAccessBean getDescription(java.lang.Integer langId)
          Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID.
 TermConditionDescriptionAccessBean getDescription(java.lang.Integer langId, java.lang.Integer storeId)
          Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID.
 java.lang.String getMandatoryFlag()
          This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMandatoryFlagInEJBType()
          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 businessPolicyType)
          The method returns an array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.
 java.lang.String getReferenceNumber()
          This method gets the reference number of the terms and conditions.
 java.lang.Long getReferenceNumberInEJBType()
          This method gets the reference number of the terms and conditions.
 java.lang.String getTcSequence()
          This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTcSequenceInEJBType()
          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.lang.String getTimeCreated()
          This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeUpdated()
          This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTradingId()
          This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getTradingIdInEJBType()
          This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getValue()
          This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.math.BigDecimal getValueInEJBType()
          This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getXMLString()
          This method gets the XML String associated with the terms and conditions.
 void markForDelete()
          This method marks the trading agreement for deletion.
 void parseXMLElement(org.w3c.dom.Element aXMLElement)
          This method parses the given XML element.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setChangeableFlag(java.lang.Integer aChangeableFlag)
          This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
 void setChangeableFlag(java.lang.String aChangeableFlag)
          This method provides access to the TERMCOND.CHANGEABLE column of DB2 type INTEGER NOT NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the TERMCOND.STRINGFIELD1 column of DB2 type VARCHAR(3200) NULL.
 void setInitKey_referenceNumber(java.lang.String aInitKey_referenceNumber)
          Set the primary key for this object
 void setMandatoryFlag(java.lang.Integer aMandatoryFlag)
          This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
 void setMandatoryFlag(java.lang.String aMandatoryFlag)
          This method provides access to the TERMCOND.MANDATORY column of DB2 type INTEGER NOT NULL.
 void setReferenceNumber(java.lang.Long tcId)
          This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 void setReferenceNumber(java.lang.String tcId)
          This method provides access to the TERMCOND.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
 void setTcSequence(java.lang.Integer aTcSequence)
          This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
 void setTcSequence(java.lang.String aTcSequence)
          This method provides access to the TERMCOND.SEQUENCE column of DB2 type INTEGER NOT NULL.
 void setTimeCreated(java.lang.String aTimeCreated)
          This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.lang.String aTimeUpdated)
          This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTradingId(java.lang.Long tradingId)
          This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setTradingId(java.lang.String tradingId)
          This method provides access to the TERMCOND.TRADING_ID column of DB2 type BIGINT NOT NULL.
 void setValue(java.math.BigDecimal aValue)
          This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.
 void setValue(java.lang.String aValue)
          This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightToBuyTCByAmountAccessBean

public RightToBuyTCByAmountAccessBean()

Default constructor. Maps to findByPrimaryKey.


RightToBuyTCByAmountAccessBean

public RightToBuyTCByAmountAccessBean(javax.ejb.EJBObject anObject)
                               throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
anObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

RightToBuyTCByAmountAccessBean

public RightToBuyTCByAmountAccessBean(java.lang.Long tradingId,
                                      org.w3c.dom.Element tcElement)
                               throws javax.naming.NamingException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      java.rmi.RemoteException,
                                      javax.ejb.RemoveException

Constructs an RightToBuyTCByAmountAccessBean object with the specified trading agreement ID, and the right to buy term condition element.

Parameters:
tradingId - The ID of the trading agreement the terms and conditions will be associated with.
tcElement - The XML Elment object representing the terms and conditions.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.RemoveException - The javax.ejb.RemoveException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

createNewVersion

public java.lang.Long createNewVersion(java.lang.Long aNewVersion)
                                throws org.xml.sax.SAXException,
                                       java.io.IOException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.ejb.RemoveException,
                                       javax.naming.NamingException,
                                       java.rmi.RemoteException

This method creates a new version of the terms and conditions.

Parameters:
aNewVersion - The ID of the terms and conditions.
Returns:
The ID of the terms and conditions.
Throws:
org.xml.sax.SAXException - The org.xml.sax.SAXException exception
java.io.IOException - The java.io.IOException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.ejb.RemoveException - The javax.ejb.RemoveException exception
javax.naming.NamingException - The javax.naming.NamingException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getChangeableFlag

public java.lang.String getChangeableFlag()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

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

Specified by:
getChangeableFlag in interface RightToBuyTCByAmountAccessBeanData
Returns:
The flag indicating whether the trading agreement participant can change the term.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getChangeableFlagInEJBType

public java.lang.Integer getChangeableFlagInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

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 term.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCurrency

public java.lang.String getCurrency()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

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.

Specified by:
getCurrency in interface RightToBuyTCByAmountAccessBeanData
Returns:
The currency associated with the amount.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
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 langId)
                                                  throws javax.naming.NamingException,
                                                         javax.ejb.CreateException,
                                                         javax.ejb.FinderException,
                                                         java.rmi.RemoteException

Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID.

Parameters:
langId - The ID of the specified language.
Returns:
The description of the terms and conditions.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getDescription

public TermConditionDescriptionAccessBean getDescription(java.lang.Integer langId,
                                                         java.lang.Integer storeId)
                                                  throws javax.naming.NamingException,
                                                         javax.ejb.CreateException,
                                                         javax.ejb.FinderException,
                                                         java.rmi.RemoteException

Retrieves the TermConditionDescriptionAccessBean representing the term condition description with the specified language ID. If the description for the specified language is not available for the specified store, An alternate language description will be returned.

Parameters:
langId - The ID of the specified language.
storeId - The ID of the specified store.
Returns:
The TermConditionDescriptionAccessBean representing the row that matches the search criteria.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getMandatoryFlag

public java.lang.String getMandatoryFlag()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

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

Specified by:
getMandatoryFlag in interface RightToBuyTCByAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMandatoryFlagInEJBType

public java.lang.Integer getMandatoryFlagInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

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:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getParticipants

public ParticipantAccessBean[] getParticipants()
                                        throws javax.naming.NamingException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               java.rmi.RemoteException

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.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getPolicies

public BusinessPolicyAccessBean[] getPolicies()
                                       throws javax.naming.NamingException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException

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.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String businessPolicyType)
                                             throws javax.naming.NamingException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException

The method returns an array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.

Parameters:
businessPolicyType - The type of business policy.
Returns:
An array of BusinessPolicyAccessBean representing the specified type of business policies that the term condition has.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getReferenceNumber

public java.lang.String getReferenceNumber()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method gets the reference number of the terms and conditions.

Specified by:
getReferenceNumber in interface RightToBuyTCByAmountAccessBeanData
Returns:
The reference number of the terms and conditions.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getReferenceNumberInEJBType

public java.lang.Long getReferenceNumberInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method gets the reference number of the terms and conditions.

Returns:
The reference number of the terms and conditions.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTcSequence

public java.lang.String getTcSequence()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

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.

Specified by:
getTcSequence in interface RightToBuyTCByAmountAccessBeanData
Returns:
The number indicating the sequence of the term within a trading agreement.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTcSequenceInEJBType

public java.lang.Integer getTcSequenceInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

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.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTcSubType

public java.lang.String getTcSubType()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

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.

Specified by:
getTcSubType in interface RightToBuyTCByAmountAccessBeanData
Returns:
The sub-type of the terms and conditions.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreated

public java.lang.String getTimeCreated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
getTimeCreated in interface RightToBuyTCByAmountAccessBeanData
Returns:
The time the terms and conditions was created.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreatedInEJBType

public java.sql.Timestamp getTimeCreatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Returns:
The time the terms and conditions was created.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdated

public java.lang.String getTimeUpdated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
getTimeUpdated in interface RightToBuyTCByAmountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdatedInEJBType

public java.sql.Timestamp getTimeUpdatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTradingId

public java.lang.String getTradingId()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

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.

Specified by:
getTradingId in interface RightToBuyTCByAmountAccessBeanData
Returns:
The ID of the trading agreement this term belongs to.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTradingIdInEJBType

public java.lang.Long getTradingIdInEJBType()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

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 this term belongs to.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getValue

public java.lang.String getValue()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

A DECIMAL field used to store terms and conditions data.

Specified by:
getValue in interface RightToBuyTCByAmountAccessBeanData
Returns:
The value of the maximum amount the customer has the right to buy.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getValueInEJBType

public java.math.BigDecimal getValueInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

A DECIMAL field used to store terms and conditions data.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
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()
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     java.rmi.RemoteException

This method gets the XML String associated with the terms and conditions.

Returns:
The String object representing the terms and conditions in XML Element format.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

markForDelete

public void markForDelete()
                   throws javax.naming.NamingException,
                          javax.ejb.CreateException,
                          javax.ejb.FinderException,
                          java.rmi.RemoteException

This method marks the trading agreement for deletion.

Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

parseXMLElement

public void parseXMLElement(org.w3c.dom.Element aXMLElement)
                     throws javax.naming.NamingException,
                            javax.ejb.CreateException,
                            javax.ejb.FinderException,
                            java.rmi.RemoteException,
                            javax.ejb.RemoveException

This method parses the given XML element.

Parameters:
aXMLElement - The XML element associated with the terms and conditions.
Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.RemoveException - The javax.ejb.RemoveException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setChangeableFlag

public void setChangeableFlag(java.lang.Integer aChangeableFlag)

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:
aChangeableFlag - The flag indicating whether the trading agreement participant can change the term.
Returns:
void

setChangeableFlag

public void setChangeableFlag(java.lang.String aChangeableFlag)

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

Specified by:
setChangeableFlag in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aChangeableFlag - java.lang.String
Returns:
void

setCurrency

public void setCurrency(java.lang.String aCurrency)

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.

Specified by:
setCurrency in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aCurrency - The currency associated with the amount.
Returns:
void

setInitKey_referenceNumber

public void setInitKey_referenceNumber(java.lang.String aInitKey_referenceNumber)

Set the primary key for this object

Parameters:
aInitKey_referenceNumber - The ID of the terms and conditions.
Returns:
void

setMandatoryFlag

public void setMandatoryFlag(java.lang.Integer aMandatoryFlag)

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:
aMandatoryFlag - java.lang.Integer
Returns:
void

setMandatoryFlag

public void setMandatoryFlag(java.lang.String aMandatoryFlag)

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

Specified by:
setMandatoryFlag in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aMandatoryFlag - java.lang.String
Returns:
void

setReferenceNumber

public void setReferenceNumber(java.lang.Long tcId)

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:
tcId - The ID of the terms and conditions.
Returns:
void

setReferenceNumber

public void setReferenceNumber(java.lang.String tcId)

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.

Specified by:
setReferenceNumber in interface RightToBuyTCByAmountAccessBeanData
Parameters:
tcId - The ID of the terms and conditions.
Returns:
void

setTcSequence

public void setTcSequence(java.lang.Integer aTcSequence)

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:
aTcSequence - The number indicating the sequence of the term within a trading agreement.
Returns:
void

setTcSequence

public void setTcSequence(java.lang.String aTcSequence)

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.

Specified by:
setTcSequence in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aTcSequence - The number indicating the sequence of the term within a trading agreement.
Returns:
void

setTimeCreated

public void setTimeCreated(java.lang.String aTimeCreated)

This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Specified by:
setTimeCreated in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aTimeCreated - The time when the terms and conditions are created.
Returns:
void

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

This method provides access to the TERMCOND.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time created.

Parameters:
aTimeCreated - The time when the terms and conditions are created.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.lang.String aTimeUpdated)

This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Specified by:
setTimeUpdated in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aTimeUpdated - The last updated time of the terms and conditions.
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

This method provides access to the TERMCOND.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time updated.

Parameters:
aTimeUpdated - The last updated time of the terms and conditions.
Returns:
void

setTradingId

public void setTradingId(java.lang.Long tradingId)

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:
tradingId - The ID of the trading agreement this term belongs to.
Returns:
void

setTradingId

public void setTradingId(java.lang.String tradingId)

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.

Specified by:
setTradingId in interface RightToBuyTCByAmountAccessBeanData
Parameters:
tradingId - The ID of the trading agreement this term belongs to.
Returns:
void

setValue

public void setValue(java.math.BigDecimal aValue)

This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

A DECIMAL field used to store terms and conditions data.

Parameters:
aValue - The value of the maximum amount the customer has the right to buy.
Returns:
void

setValue

public void setValue(java.lang.String aValue)

This method provides access to the TERMCOND.DECIMALFIELD1 column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

A DECIMAL field used to store terms and conditions data.

Specified by:
setValue in interface RightToBuyTCByAmountAccessBeanData
Parameters:
aValue -  
Returns:
void