com.ibm.commerce.contract.objects

Class ContractAccessBean

  • java.lang.Object
    • com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
      • com.ibm.commerce.contract.objects.ContractAccessBean
  • All Implemented Interfaces:
    Protectable, java.io.Serializable
    Direct Known Subclasses:
    com.ibm.commerce.contract.beansrc.ContractDataBeanBase, ContractFlowEntityBean


    public class ContractAccessBean
    extends com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
    implements Protectable
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • ContractAccessBean

        public ContractAccessBean()
      • ContractAccessBean

        public ContractAccessBean(com.ibm.commerce.contract.objects.Contract entity)
      • ContractAccessBean

        public ContractAccessBean(java.lang.String name,
                                  java.lang.Integer majorVersion,
                                  java.lang.Integer minorVersion,
                                  java.lang.Long ownerReferenceNumber,
                                  java.sql.Timestamp argStartTime,
                                  java.sql.Timestamp argEndTime)
      • ContractAccessBean

        public ContractAccessBean(java.lang.Long argTradingId,
                                  java.lang.Integer origin,
                                  java.lang.String name,
                                  java.lang.Long ownerReferenceNumber)
    • Method Detail

      • setInitKey_referenceNumber

        public void setInitKey_referenceNumber(java.lang.String referenceNumber)
      • setInitKey_referenceNumber

        public void setInitKey_referenceNumber(java.lang.Long referenceNumber)
      • findByNameOwnerOriginAndVersion

        public ContractAccessBean findByNameOwnerOriginAndVersion(java.lang.String argName,
                                                                  java.lang.Long argOwnerId,
                                                                  java.lang.Integer argOrigin,
                                                                  java.lang.Integer argMajorVersion,
                                                                  java.lang.Integer argMinorVersion)
      • findByNameOwnerOriginAndVersionNoCache

        public ContractAccessBean findByNameOwnerOriginAndVersionNoCache(java.lang.String argName,
                                                                         java.lang.Long argOwnerId,
                                                                         java.lang.Integer argOrigin,
                                                                         java.lang.Integer argMajorVersion,
                                                                         java.lang.Integer argMinorVersion)
      • findByNameOwnerAndOrigin

        public java.util.Enumeration findByNameOwnerAndOrigin(java.lang.String argName,
                                                              java.lang.Long argOwnerId,
                                                              java.lang.Integer argOrigin)
      • findByNameOwnerAndOriginNoCache

        public java.util.Enumeration findByNameOwnerAndOriginNoCache(java.lang.String argName,
                                                                     java.lang.Long argOwnerId,
                                                                     java.lang.Integer argOrigin)
      • findByOwnerId

        public java.util.Enumeration findByOwnerId(java.lang.Long argOwnerId)
      • findAll

        public java.util.Enumeration findAll()
      • findByParticipantId

        public java.util.Enumeration findByParticipantId(java.lang.Long argParticipantId)
      • findClosableContractByNameOwnerAndOrigin

        public java.util.Enumeration findClosableContractByNameOwnerAndOrigin(java.lang.String argName,
                                                                              java.lang.Long argOwnerId,
                                                                              java.lang.Integer argOrigin,
                                                                              java.lang.Long argExclusiveContractId)
      • findByState

        public java.util.Enumeration findByState(java.lang.Integer argState)
      • findByNameOwnerOriginAndState

        public java.util.Enumeration findByNameOwnerOriginAndState(java.lang.String argName,
                                                                   java.lang.Long argOwnerId,
                                                                   java.lang.Integer argOrigin,
                                                                   java.lang.Integer argState)
      • findByNameOwnerOriginAndStateNoCache

        public java.util.Enumeration findByNameOwnerOriginAndStateNoCache(java.lang.String argName,
                                                                          java.lang.Long argOwnerId,
                                                                          java.lang.Integer argOrigin,
                                                                          java.lang.Integer argState)
      • findContractWithLargestMinorByNameOwnerOriginAndMajorVersion

        public ContractAccessBean findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String argName,
                                                                                               java.lang.Long argOwnerId,
                                                                                               java.lang.Integer argOrigin,
                                                                                               java.lang.Integer argMajorVersion)
      • findActiveContractByNameOwnerAndOrigin

        public ContractAccessBean findActiveContractByNameOwnerAndOrigin(java.lang.String argName,
                                                                         java.lang.Long argOwnerId,
                                                                         java.lang.Integer argOrigin)
      • findActiveContractByNameOwnerAndOriginNoCache

        public ContractAccessBean findActiveContractByNameOwnerAndOriginNoCache(java.lang.String argName,
                                                                                java.lang.Long argOwnerId,
                                                                                java.lang.Integer argOrigin)
      • findActiveContractByFamilyId

        public ContractAccessBean findActiveContractByFamilyId(java.lang.Long argFamilyId)
      • findActiveContractByFamilyIdNoCache

        public ContractAccessBean findActiveContractByFamilyIdNoCache(java.lang.Long argFamilyId)
      • setComments

        public void setComments(java.lang.String comments)
      • getComments

        public java.lang.String getComments()
      • setUsage

        public void setUsage(java.lang.Integer usage)
      • getUsageInEntityType

        public java.lang.Integer getUsageInEntityType()
      • setUsage

        public void setUsage(java.lang.String usage)
      • getUsage

        public java.lang.String getUsage()
      • setOrigin

        public void setOrigin(java.lang.Integer origin)
      • getOriginInEntityType

        public java.lang.Integer getOriginInEntityType()
      • setOrigin

        public void setOrigin(java.lang.String origin)
      • getOrigin

        public java.lang.String getOrigin()
      • setTimeDeployed

        public void setTimeDeployed(java.sql.Timestamp timeDeployed)
      • getTimeDeployedInEntityType

        public java.sql.Timestamp getTimeDeployedInEntityType()
      • setTimeDeployed

        public void setTimeDeployed(java.lang.String timeDeployed)
      • getTimeDeployed

        public java.lang.String getTimeDeployed()
      • setMarkForDelete

        public void setMarkForDelete(java.lang.Integer markForDelete)
      • getMarkForDeleteInEntityType

        public java.lang.Integer getMarkForDeleteInEntityType()
      • setMarkForDelete

        public void setMarkForDelete(java.lang.String markForDelete)
      • getMarkForDelete

        public java.lang.String getMarkForDelete()
      • setMajorVersion

        public void setMajorVersion(java.lang.Integer majorVersion)
      • getMajorVersionInEntityType

        public java.lang.Integer getMajorVersionInEntityType()
      • setMajorVersion

        public void setMajorVersion(java.lang.String majorVersion)
      • getMajorVersion

        public java.lang.String getMajorVersion()
      • setFamilyId

        public void setFamilyId(java.lang.Long familyId)
      • getFamilyIdInEntityType

        public java.lang.Long getFamilyIdInEntityType()
      • setFamilyId

        public void setFamilyId(java.lang.String familyId)
      • getFamilyId

        public java.lang.String getFamilyId()
      • setTimeActivated

        public void setTimeActivated(java.sql.Timestamp timeActivated)
      • getTimeActivatedInEntityType

        public java.sql.Timestamp getTimeActivatedInEntityType()
      • setTimeActivated

        public void setTimeActivated(java.lang.String timeActivated)
      • getTimeActivated

        public java.lang.String getTimeActivated()
      • setTimeApproved

        public void setTimeApproved(java.sql.Timestamp timeApproved)
      • getTimeApprovedInEntityType

        public java.sql.Timestamp getTimeApprovedInEntityType()
      • setTimeApproved

        public void setTimeApproved(java.lang.String timeApproved)
      • getTimeApproved

        public java.lang.String getTimeApproved()
      • setReferenceNumber

        public void setReferenceNumber(java.lang.Long referenceNumber)
      • getReferenceNumberInEntityType

        public java.lang.Long getReferenceNumberInEntityType()
      • setReferenceNumber

        public void setReferenceNumber(java.lang.String referenceNumber)
      • getReferenceNumber

        public java.lang.String getReferenceNumber()
      • setTimeUpdated

        public void setTimeUpdated(java.sql.Timestamp timeUpdated)
      • getTimeUpdatedInEntityType

        public java.sql.Timestamp getTimeUpdatedInEntityType()
      • setTimeUpdated

        public void setTimeUpdated(java.lang.String timeUpdated)
      • getTimeUpdated

        public java.lang.String getTimeUpdated()
      • setName

        public void setName(java.lang.String name)
      • getName

        public java.lang.String getName()
      • setOwnerReferenceNumber

        public void setOwnerReferenceNumber(java.lang.Long ownerReferenceNumber)
      • getOwnerReferenceNumberInEntityType

        public java.lang.Long getOwnerReferenceNumberInEntityType()
      • setOwnerReferenceNumber

        public void setOwnerReferenceNumber(java.lang.String ownerReferenceNumber)
      • getOwnerReferenceNumber

        public java.lang.String getOwnerReferenceNumber()
      • setTimeCreated

        public void setTimeCreated(java.sql.Timestamp timeCreated)
      • getTimeCreatedInEntityType

        public java.sql.Timestamp getTimeCreatedInEntityType()
      • setTimeCreated

        public void setTimeCreated(java.lang.String timeCreated)
      • getTimeCreated

        public java.lang.String getTimeCreated()
      • setState

        public void setState(java.lang.Integer state)
      • getStateInEntityType

        public java.lang.Integer getStateInEntityType()
      • setState

        public void setState(java.lang.String state)
      • getState

        public java.lang.String getState()
      • setMinorVersion

        public void setMinorVersion(java.lang.Integer minorVersion)
      • getMinorVersionInEntityType

        public java.lang.Integer getMinorVersionInEntityType()
      • setMinorVersion

        public void setMinorVersion(java.lang.String minorVersion)
      • getMinorVersion

        public java.lang.String getMinorVersion()
      • addToStore

        public void addToStore(java.lang.Integer storeId)
      • createNewVersion

        public java.lang.Long createNewVersion()
      • getAccountId

        public java.lang.Long getAccountId()
      • getReferredTradingAgreementId

        public java.lang.Long getReferredTradingAgreementId()
      • getStoreXMLDefinition

        public java.lang.String getStoreXMLDefinition()
      • getStoreXMLString

        public java.lang.String getStoreXMLString()
      • setAccountId

        public void setAccountId(java.lang.Long newAccountId)
      • setReferredTradingAgreementId

        public void setReferredTradingAgreementId(java.lang.Long newReferenceId)
      • setStoreXMLDefinition

        public void setStoreXMLDefinition(org.w3c.dom.Element newStoreXML)
      • setStoreXMLDefinition

        public void setStoreXMLDefinition(java.lang.String newStoreXML)
      • getContractsReferringToContractId

        public java.util.Enumeration getContractsReferringToContractId()
      • getXMLByTradingIdAndType

        public TermConditionAccessBean[] getXMLByTradingIdAndType(java.lang.Long tradingId,
                                                                  java.lang.Integer type)
                                                           throws java.sql.SQLException,
                                                                  javax.naming.NamingException
        Throws:
        java.sql.SQLException
        javax.naming.NamingException
      • getTCsByTCSubTypeWithoutTCParticipant

        public TermConditionAccessBean[] getTCsByTCSubTypeWithoutTCParticipant(java.lang.String argTCSubType)
      • getTCsByTCTypeWithoutTCParticipant

        public TermConditionAccessBean[] getTCsByTCTypeWithoutTCParticipant(java.lang.String argTCType)
      • fulfills

        public boolean fulfills(java.lang.Long member,
                                java.lang.String relationship)
                         throws java.lang.Exception
        Description copied from interface: Protectable
        Determines if a given member fulfills a given relationship with the resource.
        Specified by:
        fulfills in interface Protectable
        Parameters:
        member - The member ID of the member.
        relationship - The relationship the member has with respect to the resource.
        Returns:
        true if the member fulfills the relationship with the resource
        Throws:
        java.lang.Exception
      • getOwner

        public java.lang.Long getOwner()
                                throws java.lang.Exception
        Description copied from interface: Protectable
        Returns the member ID of the owner.
        Specified by:
        getOwner in interface Protectable
        Returns:
        The member ID of the owner
        Throws:
        java.lang.Exception
      • instantiateEntity

        public void instantiateEntity()
        Specified by:
        instantiateEntity in class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
      • getEntity

        public com.ibm.commerce.contract.objects.Contract getEntity()
        Overrides:
        getEntity in class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean