|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.contract.objects.ContractAccessBean
This bean provides access to the CONTRACT table.
The following is a description of this table:
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.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
ContractAccessBean()
Default constructor. |
|
ContractAccessBean(javax.ejb.EJBObject anObject)
Creates an access bean for the specified EJB |
|
ContractAccessBean(java.lang.Long contractId,
java.lang.Integer contractOrigin,
java.lang.String contractName,
java.lang.Long contractOwnerId)
Constructs an ContractAccessBean object with the specified contract ID, origin, name, and the owner ID. |
|
ContractAccessBean(java.lang.String contractName,
java.lang.Integer majorVersion,
java.lang.Integer minorVersion,
java.lang.Long ownerId,
java.sql.Timestamp startTime,
java.sql.Timestamp endTime)
Constructs an ContractAccessBean object with the specified contract name, major version, minor version, owner ID, starting time, and the ending time. |
Method Summary | |
void |
addToStore(java.lang.Integer contractId)
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 |
ContractAccessBean |
findActiveContractByNameOwnerAndOrigin(java.lang.String contractName,
java.lang.Long contractOwnerId,
java.lang.Integer contractOrigin)
Retrieves the ContractAccessBean 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 contractName,
java.lang.Long contractOwnerId,
java.lang.Integer contractOrigin)
Retrieves all contracts with the specified contract name, owner ID, and the contract origin. |
ContractAccessBean |
findByNameOwnerOriginAndVersion(java.lang.String contractName,
java.lang.Long contractOwnerId,
java.lang.Integer contractOrigin,
java.lang.Integer majorVersion,
java.lang.Integer minorVersion)
Retrieves the ContractAccessBean representing the contract with the specified contract name, owner ID, origin, major version, and the minor version. |
java.util.Enumeration |
findByOwnerId(java.lang.Long contractOwnerId)
Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified owner ID. |
java.util.Enumeration |
findByParticipantId(java.lang.Long participantId)
Retrieves an Enumeration of ContractAccessBeans representing all contracts that the specified ID as a contract pariticipant. |
java.util.Enumeration |
findByState(java.lang.Integer contractState)
Retrieves an Enumeration of ContractAccessBeans representing all contracts with the specified state. |
java.util.Enumeration |
findClosableContractByNameOwnerAndOrigin(java.lang.String contractName,
java.lang.Long contractOwnerId,
java.lang.Integer contractOrigin,
java.lang.Long exclusiveContractId)
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 contractName,
java.lang.Long contractOwnerId,
java.lang.Integer majorVersion,
java.lang.Integer contractOrigin)
Retrieves the ContractAccessBean representing the contract with the largest minor version number for the specified contract name, origin, and the owner ID. |
boolean |
fulfills(java.lang.Long memberId,
java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource. |
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 provides access to the CONTRACT.COMMENTS column of DB2 type LONG NULL. |
ParticipantAccessBean[] |
getContractLevelParticipants()
The method returns an array of ParticipantAccessBean representing all participants that the current contract has. |
TradingDescriptionAccessBean |
getDescription(java.lang.Integer langId)
Retrieves the TradingDescriptionAccessBean representing the contract description with the specified language ID. |
TradingDescriptionAccessBean |
getDescription(java.lang.Integer langId,
java.lang.Integer storeId)
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. |
java.lang.Integer |
getMajorVersionInEJBType()
This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL. |
java.lang.String |
getMarkForDelete()
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getMarkForDeleteInEJBType()
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL. |
java.lang.String |
getMinorVersion()
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getMinorVersionInEJBType()
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL. |
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. |
java.lang.Integer |
getOriginInEJBType()
This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL. |
java.lang.Long |
getOwner()
Returns the member id of the owner of the resource |
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.String |
getState()
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getStateInEJBType()
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL. |
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 tcSubType)
The method returns an array of TermConditionAccessBeans representing the terms and conditions with the given tcSubType. |
TermConditionAccessBean[] |
getTCsByTCSubTypeWithoutTCParticipant(java.lang.String tcSubType)
The method returns an array of TermConditionAccessBean representing the terms and conditions with the given tcSubType, but without the terms and conditions that have participant(s). |
TermConditionAccessBean[] |
getTCsByTCType(java.lang.String tcType)
The method returns an array of TermConditionAccessBean representing the terms and conditions with the given tcType. |
TermConditionAccessBean[] |
getTCsByTCTypeWithoutTCParticipant(java.lang.String tcType)
The method returns an array of TermConditionAccessBean representing the terms and conditions with the given tcType, 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 NULL. |
java.sql.Timestamp |
getTimeActivatedInEJBType()
This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getTimeApproved()
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL. |
java.sql.Timestamp |
getTimeApprovedInEJBType()
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getTimeCreated()
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL. |
java.sql.Timestamp |
getTimeCreatedInEJBType()
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getTimeDeployed()
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL. |
java.sql.Timestamp |
getTimeDeployedInEJBType()
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getTimeUpdated()
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL. |
java.sql.Timestamp |
getTimeUpdatedInEJBType()
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL. |
java.lang.String |
getUsage()
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getUsageInEJBType()
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setAccountId(java.lang.Long aAccountId)
This method updates the account ID associated with the contract. |
void |
setComments(java.lang.String aComments)
This method provides access to the CONTRACT.COMMENTS column of DB2 type LONG NULL. |
void |
setInitKey_referenceNumber(java.lang.String aInitKey_referenceNumber)
Set the primary key for this object |
void |
setMajorVersion(java.lang.Integer aMajorVersion)
This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL. |
void |
setMajorVersion(java.lang.String aMajorVersion)
This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL. |
void |
setMarkForDelete(java.lang.Integer aMarkForDelete)
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL. |
void |
setMarkForDelete(java.lang.String aMarkForDelete)
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL. |
void |
setMinorVersion(java.lang.Integer aMinorVersion)
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL. |
void |
setMinorVersion(java.lang.String aMinorVersion)
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL. |
void |
setName(java.lang.String aName)
This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL. |
void |
setOrigin(java.lang.Integer aOrigin)
This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL. |
void |
setOrigin(java.lang.String aOrigin)
This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL. |
void |
setOwnerReferenceNumber(java.lang.Long aOwnerReferenceNumber)
This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL. |
void |
setOwnerReferenceNumber(java.lang.String aOwnerReferenceNumber)
This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL. |
void |
setReferenceNumber(java.lang.Long aReferenceNumber)
This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL. |
void |
setReferenceNumber(java.lang.String aReferenceNumber)
This method provides access to the CONTRACT.CONTRACT_ID column of DB2 type BIGINT NOT NULL. |
void |
setState(java.lang.Integer aState)
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL. |
void |
setState(java.lang.String aState)
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL. |
void |
setTimeActivated(java.lang.String aTimeActivated)
This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL. |
void |
setTimeActivated(java.sql.Timestamp aTimeActivated)
This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL. |
void |
setTimeApproved(java.lang.String aTimeApproved)
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL. |
void |
setTimeApproved(java.sql.Timestamp aTimeApproved)
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL. |
void |
setTimeCreated(java.lang.String aTimeCreated)
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL. |
void |
setTimeCreated(java.sql.Timestamp aTimeCreated)
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL. |
void |
setTimeDeployed(java.lang.String aTimeDeployed)
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL. |
void |
setTimeDeployed(java.sql.Timestamp aTimeDeployed)
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL. |
void |
setTimeUpdated(java.lang.String aTimeUpdated)
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL. |
void |
setTimeUpdated(java.sql.Timestamp aTimeUpdated)
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL. |
void |
setUsage(java.lang.Integer aUsage)
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL. |
void |
setUsage(java.lang.String aUsage)
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT 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 |
public ContractAccessBean()
Default constructor. Maps to findByPrimaryKey.
public ContractAccessBean(javax.ejb.EJBObject anObject) throws java.rmi.RemoteException
Creates an access bean for the specified EJB
anObject
- The EJB Object used for the access bean construction.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic ContractAccessBean(java.lang.Long contractId, java.lang.Integer contractOrigin, java.lang.String contractName, java.lang.Long contractOwnerId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Constructs an ContractAccessBean object with the specified contract ID, origin, name, and the owner ID.
contractId
- The ID of the contract.contractOrigin
- The origin of the contract.contractName
- The name of the contract.contractOwnerId
- The ID of the contract owner.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic ContractAccessBean(java.lang.String contractName, java.lang.Integer majorVersion, java.lang.Integer minorVersion, java.lang.Long ownerId, java.sql.Timestamp startTime, java.sql.Timestamp endTime) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Constructs an ContractAccessBean object with the specified contract name, major version, minor version, owner ID, starting time, and the ending time.
contractName
- java.lang.StringmajorVersion
- java.lang.IntegerminorVersion
- java.lang.IntegerownerId
- java.lang.LongstartTime
- java.sql.TimestampendTime
- java.sql.Timestampjavax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionMethod Detail |
public void addToStore(java.lang.Integer contractId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
This method adds a contract to the store
contractId
- The ID of the contract.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Long createNewVersion() throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Creates a new version of the contract
javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic ContractAccessBean findActiveContractByNameOwnerAndOrigin(java.lang.String contractName, java.lang.Long contractOwnerId, java.lang.Integer contractOrigin) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the ContractAccessBean representing the active contract with the specified contract name, origin, and the owner ID. The contract should be effective and not expired.
contractName
- The name of the contract.contractOwnerId
- The ID of the contract owner.contractOrigin
- The origin of the contract.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByNameOwnerAndOrigin(java.lang.String contractName, java.lang.Long contractOwnerId, java.lang.Integer contractOrigin) 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
contractName
- The name of the contract.contractOwnerId
- The ID of the contract owner.contractOrigin
- The origin of the contract.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic ContractAccessBean findByNameOwnerOriginAndVersion(java.lang.String contractName, java.lang.Long contractOwnerId, java.lang.Integer contractOrigin, java.lang.Integer majorVersion, java.lang.Integer minorVersion) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the ContractAccessBean 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 = ?
contractName
- java.lang.StringcontractOwnerId
- java.lang.LongcotnractOrigin
- java.lang.IntegermajorVersion
- java.lang.IntegerminorVersion
- java.lang.Integerjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByOwnerId(java.lang.Long contractOwnerId) 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
contractOwnerId
- The ID of the contract owner.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByParticipantId(java.lang.Long participantId) 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
participantId
- java.lang.Longjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findByState(java.lang.Integer contractState) 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
contractState
- The state of the contract.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.util.Enumeration findClosableContractByNameOwnerAndOrigin(java.lang.String contractName, java.lang.Long contractOwnerId, java.lang.Integer contractOrigin, java.lang.Long exclusiveContractId) 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 <> ?
contractName
- The name of the contract.contractOwnerId
- The ID of the contract owner.contractOrigin
- The origin of the contract.exclusiveContractId
- The ID of the exclusive contract.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic ContractAccessBean findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String contractName, java.lang.Long contractOwnerId, java.lang.Integer majorVersion, java.lang.Integer contractOrigin) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the ContractAccessBean 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.
contractName
- The name of the contract.contractOwnerId
- The ID of the contract owner.majorVersion
- The major version of the contract.contractOrigin
- The origin of the contract.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic boolean fulfills(java.lang.Long memberId, java.lang.String relationship) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
Determines if a given member fulfills a given relationship with the resource.
memberId
- The ID of the member.relationship
- The relationship the member has with respect to the resource.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjava.lang.Exception
- The java.lang.Exception exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic java.lang.String getComments() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the CONTRACT.COMMENTS column of DB2 type LONG NULL.
The following is a description of this column:
A comment associated with the Contract.
getComments
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TradingDescriptionAccessBean getDescription(java.lang.Integer langId) 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.
langId
- The ID of the language.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TradingDescriptionAccessBean getDescription(java.lang.Integer langId, java.lang.Integer storeId) 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.
langId
- The ID of the language.storeId
- The ID of the store.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic 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.
The following is a description of this column:
Major version number of the Contract.
getMajorVersion
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Major version number of the Contract.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.
getMarkForDelete
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Minor version number of the Contract.
getMinorVersion
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Minor version number of the Contract.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getName
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.
getOrigin
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Returns the member id of the owner of the resource
java.lang.Exception
- The java.lang.Exception exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getOwnerReferenceNumber
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getReferenceNumber
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.
getState
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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
javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TermConditionAccessBean[] getTCsByTCSubType(java.lang.String tcSubType) 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 tcSubType.
tcSubType
- The sub-type of the terms and conditions.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TermConditionAccessBean[] getTCsByTCSubTypeWithoutTCParticipant(java.lang.String tcSubType) 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 tcSubType, but without the terms and conditions that have participant(s).
tcSubType
- The sub-type of the terms and conditionsjavax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TermConditionAccessBean[] getTCsByTCType(java.lang.String tcType) 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 tcType.
tcType
- The type of terms and conditions.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic TermConditionAccessBean[] getTCsByTCTypeWithoutTCParticipant(java.lang.String tcType) 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 tcType, but without the terms and conditions that have participant(s).
tcType
- java.lang.Stringjavax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was activated.
getTimeActivated
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was activated.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was approved.
getTimeApproved
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was approved.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was created.
getTimeCreated
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was created.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was deployed.
getTimeDeployed
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was deployed.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was most recently updated.
getTimeUpdated
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 NULL.
The following is a description of this column:
The time the Contract was most recently updated.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.
getUsage
in interface ContractAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
The following is a description of this column:
Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void setAccountId(java.lang.Long aAccountId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
This method updates the account ID associated with the contract.
aAccountId
- The ID of the account which the contract referred.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic void setComments(java.lang.String aComments)
This method provides access to the CONTRACT.COMMENTS column of DB2 type LONG NULL.
The following is a description of this column:
A comment associated with the Contract.
setComments
in interface ContractAccessBeanData
aComments
- The comments of the contract.public void setInitKey_referenceNumber(java.lang.String aInitKey_referenceNumber)
Set the primary key for this object
aInitKey_referenceNumber
- java.lang.Stringpublic void setMajorVersion(java.lang.Integer aMajorVersion)
This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Major version number of the Contract.
aMajorVersion
- The major version of the contract.public void setMajorVersion(java.lang.String aMajorVersion)
This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Major version number of the Contract.
setMajorVersion
in interface ContractAccessBeanData
aMajorVersion
- The major version of the contract.public void setMarkForDelete(java.lang.Integer aMarkForDelete)
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.
aMarkForDelete
- The MarkForDelete flag of the contract.public void setMarkForDelete(java.lang.String aMarkForDelete)
This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.
setMarkForDelete
in interface ContractAccessBeanData
aMarkForDelete
- java.lang.Stringpublic void setMinorVersion(java.lang.Integer aMinorVersion)
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Minor version number of the Contract.
aMinorVersion
- java.lang.Integerpublic void setMinorVersion(java.lang.String aMinorVersion)
This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Minor version number of the Contract.
setMinorVersion
in interface ContractAccessBeanData
aMinorVersion
- The minor version of the contract.public void setName(java.lang.String aName)
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.
setName
in interface ContractAccessBeanData
aName
- The name of the contract.public void setOrigin(java.lang.Integer aOrigin)
This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.
aOrigin
- java.lang.Integerpublic void setOrigin(java.lang.String aOrigin)
This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.
setOrigin
in interface ContractAccessBeanData
The
- origin of the contract.public void setOwnerReferenceNumber(java.lang.Long aOwnerReferenceNumber)
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.
aOwnerReferenceNumber
- The ID of the contract owner.public void setOwnerReferenceNumber(java.lang.String aOwnerReferenceNumber)
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.
setOwnerReferenceNumber
in interface ContractAccessBeanData
aOwnerReferenceNumber
- The ID of the contract owner.public void setReferenceNumber(java.lang.Long aReferenceNumber)
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.
aReferenceNumber
- The ID of the contract.public void setReferenceNumber(java.lang.String aReferenceNumber)
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.
setReferenceNumber
in interface ContractAccessBeanData
aReferenceNumber
- The ID of the contract.public void setState(java.lang.Integer aState)
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.
aState
- java.lang.Integerpublic void setState(java.lang.String aState)
This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.
setState
in interface ContractAccessBeanData
aState
- java.lang.Stringpublic void setTimeActivated(java.lang.String aTimeActivated)
This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was activated.
setTimeActivated
in interface ContractAccessBeanData
aTimeActivated
- The time when the contract is activated.public void setTimeActivated(java.sql.Timestamp aTimeActivated)
This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was activated.
aTimeActivated
- java.sql.Timestamppublic void setTimeApproved(java.lang.String aTimeApproved)
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was approved.
setTimeApproved
in interface ContractAccessBeanData
aTimeApproved
- The time when the contract is approved.public void setTimeApproved(java.sql.Timestamp aTimeApproved)
This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was approved.
aTimeApproved
- The time when the contract was approved.public void setTimeCreated(java.lang.String aTimeCreated)
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was created.
setTimeCreated
in interface ContractAccessBeanData
aTimeCreated
- The time when the contract was created.public void setTimeCreated(java.sql.Timestamp aTimeCreated)
This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was created.
aTimeCreated
- The time when the contract is created.public void setTimeDeployed(java.lang.String aTimeDeployed)
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was deployed.
setTimeDeployed
in interface ContractAccessBeanData
aTimeDeployed
- The time when the contract is deployed.public void setTimeDeployed(java.sql.Timestamp aTimeDeployed)
This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was deployed.
aTimeDeployed
- The time when the contract was deployed.public void setTimeUpdated(java.lang.String aTimeUpdated)
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was most recently updated.
setTimeUpdated
in interface ContractAccessBeanData
aTimeUpdated
- java.lang.Stringpublic void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
The following is a description of this column:
The time the Contract was most recently updated.
aTimeUpdated
- The last updated time of the contract.public void setUsage(java.lang.Integer aUsage)
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.
aUsage
- The usage of the contract.public void setUsage(java.lang.String aUsage)
This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.
setUsage
in interface ContractAccessBeanData
aUsage
- The usage of the contract.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |