com.ibm.commerce.contract.objects
Class ContractAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.contract.objects.ContractAccessBean
All Implemented Interfaces:
ContractAccessBeanData
Direct Known Subclasses:
ContractFlowEntityBean

public class ContractAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ContractAccessBeanData

Each row of this table represents a Contract. A Contract is part of a Store, and represents terms and conditions that may be associated with OrderItems, such as prices, minimum quantities, and who can use the Contract.

See Also:
Serialized Form

Constructor Summary
ContractAccessBean()
          constructor
ContractAccessBean(javax.ejb.EJBObject o)
          constructor
ContractAccessBean(java.lang.Long arg0, java.lang.Integer arg1, java.lang.String arg2, java.lang.Long arg3)
          constructor
ContractAccessBean(java.lang.String arg0, java.lang.Integer arg1, java.lang.Integer arg2, java.lang.Long arg3, java.sql.Timestamp arg4, java.sql.Timestamp arg5)
          constructor
 
Method Summary
 void addToStore(java.lang.Integer arg0)
          This method adds a contract to the store
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.lang.Long createNewVersion()
          Creates a new version of the contract
protected  java.lang.String defaultJNDIName()
           
  ContractAccessBean findActiveContractByNameOwnerAndOrigin(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2)
          Retrieves the Contract representing the active contract with the specified contract name, origin, and the owner ID.
 java.util.Enumeration findAll()
          Retrieves an Enumeration of ContractAccessBeans representing all contracts are not marked for deleting.
 java.util.Enumeration findByNameOwnerAndOrigin(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2)
          Retrieves all contracts with the specified contract name, owner ID, and the contract origin.
 java.util.Enumeration findByNameOwnerOriginAndState(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2, java.lang.Integer arg3)
          findByNameOwnerOriginAndState
  ContractAccessBean findByNameOwnerOriginAndVersion(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2, java.lang.Integer arg3, java.lang.Integer arg4)
          Retrieves the Contract representing the contract with the specified contract name, owner ID, origin, major version, and the minor version.
 java.util.Enumeration findByOwnerId(java.lang.Long arg0)
          Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified owner ID.
 java.util.Enumeration findByParticipantId(java.lang.Long arg0)
          Retrieves an Enumeration of ContractAccessBeans representing all contracts that the specified ID as a contract pariticipant.
 java.util.Enumeration findByState(java.lang.Integer arg0)
          Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified state.
 java.util.Enumeration findClosableContractByNameOwnerAndOrigin(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2, java.lang.Long arg3)
          Retrieves an Enumeration of ContractAccessBeans representing all contracts that need to be closed when a new version of contract is deployed.
  ContractAccessBean findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String arg0, java.lang.Long arg1, java.lang.Integer arg2, java.lang.Integer arg3)
          Retrieves the Contract representing the contract with the largest minor version number for the specified contract name, origin, and the owner ID.
 boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
           
 java.lang.Long getAccountId()
          This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.
 java.lang.String getComments()
          This method accesses a non-CMP field
  ParticipantAccessBean[] getContractLevelParticipants()
          The method returns an array of ParticipantAccessBean representing all participants that the current contract has.
 java.util.Enumeration getContractsReferringToContractId()
           
  TradingDescriptionAccessBean getDescription(java.lang.Integer arg0)
          Retrieves the TradingDescriptionAccessBean representing the contract description with the specified language ID.
  TradingDescriptionAccessBean getDescription(java.lang.Integer arg0, java.lang.Integer arg1)
          Retrieves the TradingDescriptionAccessBean representing the contract description with the specified language ID.
 java.lang.String getMajorVersion()
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.
 java.lang.Integer getMajorVersionInEJBType()
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.
 java.lang.String getMarkForDelete()
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getMinorVersion()
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getMinorVersionInEJBType()
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getName()
          This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 java.lang.String getOrigin()
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getOriginInEJBType()
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Long getOwner()
          This method accesses a non-CMP field
 java.lang.String getOwnerReferenceNumber()
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOwnerReferenceNumberInEJBType()
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getReferenceNumber()
          This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getReferenceNumberInEJBType()
          This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getReferredTradingAgreementId()
           
 java.lang.String getState()
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getStateInEJBType()
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getStoreXMLDefinition()
           
 java.lang.String getStoreXMLString()
           
  TermConditionAccessBean[] getTCs()
          The method returns an array of TermConditionAccessBean representing all the terms and conditions that the current contract has
  TermConditionAccessBean[] getTCsByTCSubType(java.lang.String arg0)
          The method returns an array of TermConditionAccessBeans representing the terms and conditions with the given argTCSubType.
  TermConditionAccessBean[] getTCsByTCSubTypeWithoutTCParticipant(java.lang.String arg0)
          The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCSubType, but without the terms and conditions that have participant(s).
  TermConditionAccessBean[] getTCsByTCType(java.lang.String arg0)
          The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCType.
  TermConditionAccessBean[] getTCsByTCTypeWithoutTCParticipant(java.lang.String arg0)
          The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCType, but without the terms and conditions that have participant(s).
 java.lang.String getTimeActivated()
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.
 java.sql.Timestamp getTimeActivatedInEJBType()
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.
 java.lang.String getTimeApproved()
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.
 java.sql.Timestamp getTimeApprovedInEJBType()
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.
 java.lang.String getTimeCreated()
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.
 java.lang.String getTimeDeployed()
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.
 java.sql.Timestamp getTimeDeployedInEJBType()
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.
 java.lang.String getTimeUpdated()
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.
 java.lang.String getUsage()
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getUsageInEJBType()
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
  TermConditionAccessBean[] getXMLByTradingIdAndType(java.lang.Long arg0, java.lang.Integer arg1)
          This method accesses a non-CMP field
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAccountId(java.lang.Long arg0)
          This method updates the account ID associated with the contract.
 void setComments(java.lang.String newValue)
          This method accesses a non-CMP field
 void setInitKey_referenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setMajorVersion(java.lang.Integer newValue)
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.
 void setMajorVersion(java.lang.String newValue)
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMinorVersion(java.lang.Integer newValue)
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMinorVersion(java.lang.String newValue)
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setName(java.lang.String newValue)
          This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 void setOrigin(java.lang.Integer newValue)
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setOrigin(java.lang.String newValue)
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setOwnerReferenceNumber(java.lang.Long newValue)
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setOwnerReferenceNumber(java.lang.String newValue)
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setReferenceNumber(java.lang.Long newValue)
          This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 void setReferenceNumber(java.lang.String newValue)
          This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.
 void setReferredTradingAgreementId(java.lang.Long arg0)
           
 void setState(java.lang.Integer newValue)
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setState(java.lang.String newValue)
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setStoreXMLDefinition(org.w3c.dom.Element arg0)
           
 void setStoreXMLDefinition(java.lang.String arg0)
           
 void setTimeActivated(java.lang.String newValue)
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.
 void setTimeActivated(java.sql.Timestamp newValue)
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.
 void setTimeApproved(java.lang.String newValue)
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.
 void setTimeApproved(java.sql.Timestamp newValue)
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.
 void setTimeCreated(java.lang.String newValue)
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.
 void setTimeCreated(java.sql.Timestamp newValue)
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.
 void setTimeDeployed(java.lang.String newValue)
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.
 void setTimeDeployed(java.sql.Timestamp newValue)
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.
 void setTimeUpdated(java.lang.String newValue)
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.
 void setTimeUpdated(java.sql.Timestamp newValue)
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.
 void setUsage(java.lang.Integer newValue)
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setUsage(java.lang.String newValue)
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContractAccessBean

public ContractAccessBean()
constructor

ContractAccessBean

public ContractAccessBean(javax.ejb.EJBObject o)
                   throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

ContractAccessBean

public ContractAccessBean(java.lang.Long arg0,
                          java.lang.Integer arg1,
                          java.lang.String arg2,
                          java.lang.Long arg3)
                   throws javax.naming.NamingException,
                          javax.ejb.CreateException,
                          javax.ejb.FinderException,
                          java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Integer
arg2 - java.lang.String
arg3 - java.lang.Long
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException

ContractAccessBean

public ContractAccessBean(java.lang.String arg0,
                          java.lang.Integer arg1,
                          java.lang.Integer arg2,
                          java.lang.Long arg3,
                          java.sql.Timestamp arg4,
                          java.sql.Timestamp arg5)
                   throws javax.naming.NamingException,
                          javax.ejb.CreateException,
                          javax.ejb.FinderException,
                          java.rmi.RemoteException
constructor
Parameters:
arg0 - java.lang.String
arg1 - java.lang.Integer
arg2 - java.lang.Integer
arg3 - java.lang.Long
arg4 - java.sql.Timestamp
arg5 - java.sql.Timestamp
Throws:
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException
java.rmi.RemoteException
Method Detail

findActiveContractByNameOwnerAndOrigin

public ContractAccessBean findActiveContractByNameOwnerAndOrigin(java.lang.String arg0,
                                                                 java.lang.Long arg1,
                                                                 java.lang.Integer arg2)
                                                          throws java.rmi.RemoteException,
                                                                 javax.ejb.FinderException,
                                                                 javax.naming.NamingException

Retrieves the Contract representing the active contract with the specified contract name, origin, and the owner ID. The contract should be effective and not expired.

Returns:
The Contract representing the row of that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByNameOwnerOriginAndVersion

public ContractAccessBean findByNameOwnerOriginAndVersion(java.lang.String arg0,
                                                          java.lang.Long arg1,
                                                          java.lang.Integer arg2,
                                                          java.lang.Integer arg3,
                                                          java.lang.Integer arg4)
                                                   throws java.rmi.RemoteException,
                                                          javax.ejb.FinderException,
                                                          javax.naming.NamingException

Retrieves the Contract representing the contract with the specified contract name, owner ID, origin, major version, and the minor version.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.name = ? and member_id = ? and origin = ? and majorversion = ? and minorversion = ?

Returns:
The Contract representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findContractWithLargestMinorByNameOwnerOriginAndMajorVersion

public ContractAccessBean findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String arg0,
                                                                                       java.lang.Long arg1,
                                                                                       java.lang.Integer arg2,
                                                                                       java.lang.Integer arg3)
                                                                                throws java.rmi.RemoteException,
                                                                                       javax.ejb.FinderException,
                                                                                       javax.naming.NamingException

Retrieves the Contract representing the contract with the largest minor version number for the specified contract name, origin, and the owner ID. The contract should be effective and not expired.

Returns:
The Contract representing the row of that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves an Enumeration of ContractAccessBeans representing all contracts are not marked for deleting.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.markfordelete = 0 order by name, majorversion, minorversion

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByNameOwnerAndOrigin

public java.util.Enumeration findByNameOwnerAndOrigin(java.lang.String arg0,
                                                      java.lang.Long arg1,
                                                      java.lang.Integer arg2)
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

Retrieves all contracts with the specified contract name, owner ID, and the contract origin.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.name = ? and member_id = ? and origin = ? and markfordelete = 0 order by majorversion, minorversion

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByOwnerId

public java.util.Enumeration findByOwnerId(java.lang.Long arg0)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified owner ID.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.state = ? and markfordelete = 0 order by name, majorversion, minorversion

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByParticipantId

public java.util.Enumeration findByParticipantId(java.lang.Long arg0)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

Retrieves an Enumeration of ContractAccessBeans representing all contracts that the specified ID as a contract pariticipant.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.contract_id in (select distinct trading_id from participnt where member_id =?) and markfordelete = 0 order by name, majorversion, minorversion

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByState

public java.util.Enumeration findByState(java.lang.Integer arg0)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified state.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.state = ? and markfordelete = 0 order by name, majorversion, minorversion

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findClosableContractByNameOwnerAndOrigin

public java.util.Enumeration findClosableContractByNameOwnerAndOrigin(java.lang.String arg0,
                                                                      java.lang.Long arg1,
                                                                      java.lang.Integer arg2,
                                                                      java.lang.Long arg3)
                                                               throws java.rmi.RemoteException,
                                                                      javax.ejb.FinderException,
                                                                      javax.naming.NamingException

Retrieves an Enumeration of ContractAccessBeans representing all contracts that need to be closed when a new version of contract is deployed.

The SQL query used to fetch the required rows from the CONTRACT table is:

select * from contract T1 where T1.name = ? and member_id = ? and origin = ? and state in (2, 3, 7) and markfordelete = 0 and contract_id <> ?

Returns:
An Enumeration of all the ContractAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_referenceNumber

public void setInitKey_referenceNumber(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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

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

refreshCopyHelper

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

Load data from the EJBObject.

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

getTimeApproved

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

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was approved.

Specified by:
getTimeApproved in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTimeApprovedInEJBType

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

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was approved.

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

setTimeApproved

public void setTimeApproved(java.lang.String newValue)

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was approved.

Specified by:
setTimeApproved in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setTimeApproved

public void setTimeApproved(java.sql.Timestamp newValue)

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was approved.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getTimeActivated

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

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was activated.

Specified by:
getTimeActivated in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTimeActivatedInEJBType

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

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was activated.

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

setTimeActivated

public void setTimeActivated(java.lang.String newValue)

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was activated.

Specified by:
setTimeActivated in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setTimeActivated

public void setTimeActivated(java.sql.Timestamp newValue)

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was activated.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getState

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

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates the contract state:&l

Specified by:
getState in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getStateInEJBType

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

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates the contract state:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setState

public void setState(java.lang.String newValue)

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates the contract state:&l

Specified by:
setState in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setState

public void setState(java.lang.Integer newValue)

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates the contract state:&l

Parameters:
newValue - java.lang.Integer
Returns:
void

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 CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was most recently updated.

Specified by:
getTimeUpdated in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was most recently updated.

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

setTimeUpdated

public void setTimeUpdated(java.lang.String newValue)

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

The following is a description of this column:

The time the Contract was most recently updated.

Specified by:
setTimeUpdated in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp newValue)

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

The following is a description of this column:

The time the Contract was most recently updated.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getMajorVersion

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

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.

The following is a description of this column:

Major version number of the Contract.

Specified by:
getMajorVersion in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMajorVersionInEJBType

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

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.

The following is a description of this column:

Major version number of the Contract.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMajorVersion

public void setMajorVersion(java.lang.String newValue)

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.

The following is a description of this column:

Major version number of the Contract.

Specified by:
setMajorVersion in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setMajorVersion

public void setMajorVersion(java.lang.Integer newValue)

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 1.

The following is a description of this column:

Major version number of the Contract.

Parameters:
newValue - java.lang.Integer
Returns:
void

getMarkForDelete

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

This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this Contract has been marked for deletion:&l

Specified by:
getMarkForDelete in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMarkForDeleteInEJBType

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

This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this Contract has been marked for deletion:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMarkForDelete

public void setMarkForDelete(java.lang.String newValue)

This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this Contract has been marked for deletion:&l

Specified by:
setMarkForDelete in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if this Contract has been marked for deletion:&l

Parameters:
newValue - java.lang.Integer
Returns:
void

getOwnerReferenceNumber

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

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Specified by:
getOwnerReferenceNumber in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOwnerReferenceNumberInEJBType

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

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOwnerReferenceNumber

public void setOwnerReferenceNumber(java.lang.String newValue)

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Specified by:
setOwnerReferenceNumber in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setOwnerReferenceNumber

public void setOwnerReferenceNumber(java.lang.Long newValue)

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Parameters:
newValue - java.lang.Long
Returns:
void

getTimeDeployed

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

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was deployed.

Specified by:
getTimeDeployed in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getTimeDeployedInEJBType

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

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was deployed.

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

setTimeDeployed

public void setTimeDeployed(java.lang.String newValue)

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was deployed.

Specified by:
setTimeDeployed in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setTimeDeployed

public void setTimeDeployed(java.sql.Timestamp newValue)

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was deployed.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getUsage

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

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates how the contract will be used:&l

Specified by:
getUsage in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getUsageInEJBType

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

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates how the contract will be used:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setUsage

public void setUsage(java.lang.String newValue)

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates how the contract will be used:&l

Specified by:
setUsage in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setUsage

public void setUsage(java.lang.Integer newValue)

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates how the contract will be used:&l

Parameters:
newValue - java.lang.Integer
Returns:
void

getOrigin

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

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates why the Contract was created:&l

Specified by:
getOrigin in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOriginInEJBType

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

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates why the Contract was created:&l

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrigin

public void setOrigin(java.lang.String newValue)

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates why the Contract was created:&l

Specified by:
setOrigin in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setOrigin

public void setOrigin(java.lang.Integer newValue)

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates why the Contract was created:&l

Parameters:
newValue - java.lang.Integer
Returns:
void

getComments

public java.lang.String getComments()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getComments in interface ContractAccessBeanData
Returns:
The comments of the contract.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception.
java.rmi.RemoteException - The java.rmi.RemoteException exception.
javax.ejb.CreateException
javax.ejb.FinderException

setComments

public void setComments(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setComments in interface ContractAccessBeanData
Parameters:
newValue - The comments of the contract.

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 CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was created.

Specified by:
getTimeCreated in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 CONTRACT.TIMECREATED column of DB2 type TIMESTAMP.

The following is a description of this column:

The time the Contract was created.

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

setTimeCreated

public void setTimeCreated(java.lang.String newValue)

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

The following is a description of this column:

The time the Contract was created.

Specified by:
setTimeCreated in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setTimeCreated

public void setTimeCreated(java.sql.Timestamp newValue)

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

The following is a description of this column:

The time the Contract was created.

Parameters:
newValue - java.sql.Timestamp
Returns:
void

getName

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

This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Uniquely identifies a version of a Contract of a particular origin for a particular owner.

Specified by:
getName in interface ContractAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

public void setName(java.lang.String newValue)

This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Uniquely identifies a version of a Contract of a particular origin for a particular owner.

Specified by:
setName in interface ContractAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getReferenceNumber

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

This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for a contract. Foreign key to TRADING_ID in the TRADING database table.

Specified by:
getReferenceNumber in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getReferenceNumberInEJBType

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

This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for a contract. Foreign key to TRADING_ID in the TRADING database table.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setReferenceNumber

public void setReferenceNumber(java.lang.String newValue)

This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for a contract. Foreign key to TRADING_ID in the TRADING database table.

Specified by:
setReferenceNumber in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setReferenceNumber

public void setReferenceNumber(java.lang.Long newValue)

This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for a contract. Foreign key to TRADING_ID in the TRADING database table.

Parameters:
newValue - java.lang.Long
Returns:
void

getMinorVersion

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

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Minor version number of the Contract.

Specified by:
getMinorVersion in interface ContractAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMinorVersionInEJBType

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

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Minor version number of the Contract.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMinorVersion

public void setMinorVersion(java.lang.String newValue)

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Minor version number of the Contract.

Specified by:
setMinorVersion in interface ContractAccessBeanData
Parameters:
newValue - String
Returns:
void

setMinorVersion

public void setMinorVersion(java.lang.Integer newValue)

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Minor version number of the Contract.

Parameters:
newValue - java.lang.Integer
Returns:
void

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getContractLevelParticipants

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

The method returns an array of ParticipantAccessBean representing all participants that the current contract has.

Returns:
an array of ParticipantAccessBean objects representing rows that match 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

getTCsByTCSubTypeWithoutTCParticipant

public TermConditionAccessBean[] getTCsByTCSubTypeWithoutTCParticipant(java.lang.String arg0)
                                                                throws javax.naming.NamingException,
                                                                       javax.ejb.CreateException,
                                                                       javax.ejb.FinderException,
                                                                       java.rmi.RemoteException

The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCSubType, but without the terms and conditions that have participant(s).

Returns:
An array of n array of TermConditionAccessBean objects which have the specified argTCSubType.
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

getTCsByTCTypeWithoutTCParticipant

public TermConditionAccessBean[] getTCsByTCTypeWithoutTCParticipant(java.lang.String arg0)
                                                             throws javax.naming.NamingException,
                                                                    javax.ejb.CreateException,
                                                                    javax.ejb.FinderException,
                                                                    java.rmi.RemoteException

The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCType, but without the terms and conditions that have participant(s).

Returns:
com.ibm.commerce.contract.objects.TermConditionAccessBean[]
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

getTCs

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

The method returns an array of TermConditionAccessBean representing all the terms and conditions that the current contract has

Returns:
an array of TermConditionAccessBean objects which the contract 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

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String arg0)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

The method returns an array of TermConditionAccessBeans representing the terms and conditions with the given argTCSubType.

Returns:
An array of the TermConditionAccessBeans which have the specified sub-type.
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

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String arg0)
                                         throws javax.naming.NamingException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException

The method returns an array of TermConditionAccessBean representing the terms and conditions with the given argTCType.

Returns:
an array of TermConditionAccessBean objects which have the specified argTCType.
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 TradingDescriptionAccessBean getDescription(java.lang.Integer arg0)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

Retrieves the TradingDescriptionAccessBean representing the contract description with the specified language ID.

Returns:
The TradingDescriptionAccessBean 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

getDescription

public TradingDescriptionAccessBean getDescription(java.lang.Integer arg0,
                                                   java.lang.Integer arg1)
                                            throws javax.naming.NamingException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException

Retrieves the TradingDescriptionAccessBean representing the contract 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.

Returns:
The TradingDescriptionAccessBean 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

createNewVersion

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

Creates a new version of the contract

Returns:
contractId The ID of the contract.
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

getAccountId

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

This method provides access to the TRADING.ACCOUNT_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

The account which the contract referred to.

Returns:
The ID of an account which the contract referred to.
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

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

addToStore

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

This method adds a contract to the store

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

setAccountId

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

This method updates the account ID associated with the contract.

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

findByNameOwnerOriginAndState

public java.util.Enumeration findByNameOwnerOriginAndState(java.lang.String arg0,
                                                           java.lang.Long arg1,
                                                           java.lang.Integer arg2,
                                                           java.lang.Integer arg3)
                                                    throws javax.naming.NamingException,
                                                           javax.ejb.FinderException,
                                                           java.rmi.RemoteException
findByNameOwnerOriginAndState
Parameters:
arg0 - java.lang.String
arg1 - java.lang.Long
arg2 - java.lang.Integer
arg3 - java.lang.Integer
Returns:
java.util.Enumeration
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

getContractsReferringToContractId

public java.util.Enumeration getContractsReferringToContractId()
                                                        throws javax.naming.NamingException,
                                                               javax.ejb.FinderException,
                                                               javax.ejb.CreateException,
                                                               java.rmi.RemoteException
Returns:
void
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException

setReferredTradingAgreementId

public void setReferredTradingAgreementId(java.lang.Long arg0)
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          javax.ejb.CreateException,
                                          java.rmi.RemoteException
Returns:
void
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException

getReferredTradingAgreementId

public java.lang.Long getReferredTradingAgreementId()
                                             throws javax.naming.NamingException,
                                                    javax.ejb.FinderException,
                                                    javax.ejb.CreateException,
                                                    java.rmi.RemoteException
Returns:
java.lang.Long
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException

setStoreXMLDefinition

public void setStoreXMLDefinition(org.w3c.dom.Element arg0)
                           throws javax.naming.NamingException,
                                  javax.ejb.FinderException,
                                  javax.ejb.CreateException,
                                  java.sql.SQLException,
                                  java.rmi.RemoteException
Returns:
void
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.sql.SQLException
java.rmi.RemoteException

setStoreXMLDefinition

public void setStoreXMLDefinition(java.lang.String arg0)
                           throws javax.naming.NamingException,
                                  javax.ejb.FinderException,
                                  javax.ejb.CreateException,
                                  java.sql.SQLException,
                                  java.rmi.RemoteException
Returns:
void
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.sql.SQLException
java.rmi.RemoteException

getStoreXMLDefinition

public java.lang.String getStoreXMLDefinition()
                                       throws javax.naming.NamingException,
                                              javax.ejb.FinderException,
                                              javax.ejb.CreateException,
                                              java.sql.SQLException,
                                              java.rmi.RemoteException
Returns:
java.lang.Long
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.sql.SQLException
java.rmi.RemoteException

getStoreXMLString

public java.lang.String getStoreXMLString()
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          javax.ejb.CreateException,
                                          java.sql.SQLException,
                                          java.rmi.RemoteException
Returns:
java.lang.String
Throws:
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
java.lang.String - The exception description.
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.sql.SQLException
java.rmi.RemoteException

getXMLByTradingIdAndType

public TermConditionAccessBean[] getXMLByTradingIdAndType(java.lang.Long arg0,
                                                          java.lang.Integer arg1)
                                                   throws javax.naming.NamingException,
                                                          javax.ejb.FinderException,
                                                          javax.ejb.CreateException,
                                                          java.rmi.RemoteException,
                                                          java.sql.SQLException
This method accesses a non-CMP field
javax.naming.NamingException
javax.ejb.FinderException
javax.ejb.CreateException
java.rmi.RemoteException
java.sql.SQLException