java.lang.Object | +--com.ibm.commerce.base.objects.ECEntityBean | +--com.ibm.commerce.contract.objimpl.ContractBeanBase | +--com.ibm.commerce.contract.objects.ContractBean
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.
Field Summary |
---|
Fields inherited from class com.ibm.commerce.contract.objimpl. ContractBeanBase |
majorVersion,
markForDelete,
minorVersion,
name,
origin,
ownerReferenceNumber,
referenceNumber,
state,
timeActivated,
timeApproved,
timeCreated,
timeDeployed,
timeUpdated,
usage |
Constructor Summary | |
---|---|
ContractBean() |
Method Summary | |
---|---|
java.util.Hashtable |
_copyFromEJB() |
void |
_copyToEJB(java.util.Hashtable h) Method _copyToEJB. |
protected
java.util.Vector |
_getLinks() Method _getLinks. |
protected
void |
_initLinks() Method _initLinks. |
protected
void |
_removeLinks() Method _removeLinks. |
void |
ejbActivate() |
com.ibm.commerce.contract.objects.ContractKey |
ejbCreate(java.lang.Long argTradingId, java.lang.Integer argOrigin,
java.lang.String argName, java.lang.Long argOwnerId) Constructs an ContractAccessBean object with the specified contract ID, origin, name, and the owner ID. |
com.ibm.commerce.contract.objects.ContractKey |
ejbCreate(java.lang.String argName, java.lang.Integer argMajorVersion,
java.lang.Integer argMinorVersion, java.lang.Long argOwnerId,
java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime) Constructs an ContractAccessBean object with the specified contract name, major version, |
void |
ejbLoad() |
void |
ejbPassivate() |
void |
ejbPostCreate(java.lang.Long argTradingId, java.lang.Integer argOrigin,
java.lang.String argName, java.lang.Long argOwnerId) The postCreate method for the Contract bean. |
void |
ejbPostCreate(java.lang.String argName,
java.lang.Integer argMajorVersion, java.lang.Integer argMinorVersion,
java.lang.Long argOwnerId, java.sql.Timestamp argStartTime,
java.sql.Timestamp argEndTime) The postCreate method for the Contract bean. |
void |
ejbRemove() |
void |
ejbStore() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public ContractBean()
Method Detail |
---|
public java.util.Hashtable _copyFromEJB()
com.ibm.commerce.base.objects.ECEntityBean#_copyFromEJB()
public void _copyToEJB(java.util.Hashtable h)
h
-protected java.util.Vector _getLinks()
protected void _initLinks()
protected void _removeLinks() throws javax.ejb.RemoveException
RemoveException
public void ejbActivate()
javax.ejb.EntityBean#ejbActivate()
public com.ibm.commerce.contract.objects.ContractKey ejbCreate(java.lang.Long argTradingId, java.lang.Integer argOrigin, java.lang.String argName, java.lang.Long argOwnerId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
ContractBeanBase
Constructs an ContractAccessBean object with the specified contract ID, origin, name, and the owner ID.
This create method will be invoked when creating a contract from rfq.
ejbCreate
in class
ContractBeanBase
argTradingId
- The ID of the contract.argOrigin
- The origin of the contract.argName
- The name of the contractargOwnerId
- The ID of the contract owner.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.CreateException
javax.ejb.FinderException
ContractBeanBase.ejbCreate(Long, Integer, String,
Long)
public com.ibm.commerce.contract.objects.ContractKey ejbCreate(java.lang.String argName, java.lang.Integer argMajorVersion, java.lang.Integer argMinorVersion, java.lang.Long argOwnerId, java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
ContractBeanBase
Constructs an ContractAccessBean object with the specified contract name, major version,
minor version, owner ID, starting time, and the ending time.
This create method will be invoked when creating a new contract from scratch.
ejbCreate
in class
ContractBeanBase
argName
- The name of the contract.argMajorVersion
- The major version number of the
contract.argMinorVersion
- The minor version number of the
contract.argOwnerId
- The ID of the contract owner.argStartTime
- The starting time of the contract.argEndTime
- The ending time of the contract.javax.naming.NamingException
- The
javax.naming.NamingException exception.javax.ejb.CreateException
javax.ejb.FinderException
ContractBeanBase.ejbCreate(String, Integer, Integer, Long, Timestamp,
Timestamp)
public void ejbLoad()
com.ibm.commerce.base.objects.ECEntityBean#ejbLoad()
public void ejbPassivate()
javax.ejb.EntityBean#ejbPassivate()
public void ejbPostCreate(java.lang.Long argTradingId, java.lang.Integer argOrigin, java.lang.String argName, java.lang.Long argOwnerId)
argTradingId
- The ID of the trading agreement.argOrigin
- The origin of the contract.argName
- The name of the contract.argOwnerId
- The ID of the contract owner.public void ejbPostCreate(java.lang.String argName, java.lang.Integer argMajorVersion, java.lang.Integer argMinorVersion, java.lang.Long argOwnerId, java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime)
argName
- The name of the contract.argMajorVersion
- The major version number of the
contract.argMinorVersion
- The minor version number of the
contract.argOwnerId
- The ID of the contract owner.argStartTime
- The starting time of the contract.argEndTime
- The ending time of the
contract.public void ejbRemove() throws javax.ejb.RemoveException
javax.ejb.RemoveException
javax.ejb.EntityBean#ejbRemove()
public void ejbStore()
com.ibm.commerce.base.objects.ECEntityBean#ejbStore()