com.ibm.commerce.contract.objects
Class ContractBean

java.lang.Object
  |
  +--com.ibm.commerce.base.objects.ECEntityBean
        |
        +--com.ibm.commerce.contract.objimpl.ContractBeanBase
              |
              +--com.ibm.commerce.contract.objects.ContractBean

public class ContractBean
extends ContractBeanBase

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.

See Also:
Serialized Form

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 com.ibm.commerce.contract.objimpl. ContractBeanBase
addToStore, createNewVersion, getAccountId, getComments, getContractLevelParticipants, getContractsReferringToContractId, getDescription, getDescription, getMajorVersion, getMarkForDelete, getMinorVersion, getName, getOrigin, getOwnerReferenceNumber, getReferenceNumber, getReferredTradingAgreementId, getState, getStoreXMLDefinition, getStoreXMLString, getTCs, getTCsByTCSubType, getTCsByTCSubTypeWithoutTCParticipant, getTCsByTCType, getTCsByTCTypeWithoutTCParticipant, getTimeActivated, getTimeApproved, getTimeCreated, getTimeDeployed, getTimeUpdated, getUsage, getXMLByTradingIdAndType, setAccountId, setComments, setMajorVersion, setMarkForDelete, setMinorVersion, setName, setOrigin, setOwnerReferenceNumber, setReferenceNumber, setReferredTradingAgreementId, setState, setStoreXMLDefinition, setStoreXMLDefinition, setTimeActivated, setTimeApproved, setTimeCreated, setTimeDeployed, setTimeUpdated, setUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContractBean

public ContractBean()
Method Detail

_copyFromEJB

public java.util.Hashtable _copyFromEJB()
See Also:
com.ibm.commerce.base.objects.ECEntityBean#_copyFromEJB()

_copyToEJB

public void _copyToEJB(java.util.Hashtable h)
Method _copyToEJB.
Parameters:
h -

_getLinks

protected java.util.Vector _getLinks()
Method _getLinks.
Returns:
Vector

_initLinks

protected void _initLinks()
Method _initLinks.

_removeLinks

protected void _removeLinks()
                     throws javax.ejb.RemoveException
Method _removeLinks.
Throws:
RemoveException

ejbActivate

public void ejbActivate()
See Also:
javax.ejb.EntityBean#ejbActivate()

ejbCreate

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
Description copied from class: 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.

Overrides:
ejbCreate in class ContractBeanBase
Parameters:
argTradingId - The ID of the contract.
argOrigin - The origin of the contract.
argName - The name of the contract
argOwnerId - The ID of the contract owner.
Returns:
The ContractKey of the new contract.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception.
javax.ejb.CreateException
javax.ejb.FinderException
See Also:
ContractBeanBase.ejbCreate(Long, Integer, String, Long)

ejbCreate

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
Description copied from class: 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.

Overrides:
ejbCreate in class ContractBeanBase
Parameters:
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.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception.
javax.ejb.CreateException
javax.ejb.FinderException
See Also:
ContractBeanBase.ejbCreate(String, Integer, Integer, Long, Timestamp, Timestamp)

ejbLoad

public void ejbLoad()
See Also:
com.ibm.commerce.base.objects.ECEntityBean#ejbLoad()

ejbPassivate

public void ejbPassivate()
See Also:
javax.ejb.EntityBean#ejbPassivate()

ejbPostCreate

public 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.
Parameters:
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.

ejbPostCreate

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)
The postCreate method for the Contract bean.
Parameters:
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.

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
javax.ejb.RemoveException
See Also:
javax.ejb.EntityBean#ejbRemove()

ejbStore

public void ejbStore()
See Also:
com.ibm.commerce.base.objects.ECEntityBean#ejbStore()