com.ibm.commerce.contract.beans

Class TradingAgreementDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, TradingAgreementInputDataBean, TradingAgreementSmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable


    public class TradingAgreementDataBean
    extends TradingAgreementDataBeanBase
    implements TradingAgreementInputDataBean, TradingAgreementSmartDataBean
    This data bean represents a trading agreement object. It refers to an instance of a trading mechanism and records the properties of that instance of a trading mechanism. The trading mechanisms govern the interactions between buyers and sellers.

    Prerequisite parameters:
  • WCSTradingId: the trading agreement id


  • It is used when getting the trading agreement data such as contract, business account, and RFQ from the database.
    This data bean maps to the TRADING database table.
See Also:
Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice field.
      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Gets the command context set within this bean.
      java.lang.String getDataBeanKeyTradingId()
      Gets the trading agreement ID.
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Gets the request property set within this bean.
      void populate()
      Loads data into the data bean when the DataBeanManager.activate() runs.
      void setCommandContext(com.ibm.commerce.command.CommandContext aCommandContext)
      Sets the command context within this bean.
      void setDataBeanKeyTradingId(java.lang.String aTradingId)
      Sets the trading agreement ID.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperty)
      Sets the request property within this bean.
      • Methods inherited from class com.ibm.commerce.contract.objects.TradingAgreementAccessBean

        findAll, findAllActive, findAllByReferenceId, findAllByType, findAllEntitledTradingAgreementByTypeForBuyerUnderStore, findAllEntitledTradingAgreementForBuyerUnderStore, findDefaultAuctionTradingAgreement, findEntitledTradingAgreementByTypeForBuyerUnderStore, findEntitledTradingAgreementByTypeForBuyerUnderStore, findEntitledTradingAgreementByTypeForTSRUnderStore, findEntitledTradingAgreementForBuyerUnderStore, findEntitledTradingAgreementForBuyerUnderStore, findValidTAById, getAccountId, getAccountIdInEntityType, getAttachment, getCreditAllowedFlag, getCreditAllowedFlagInEntityType, getDescription, getDescription, getDescriptionNoCache, getEndTime, getEndTimeInEntityType, getEntity, getMarkForDelete, getMarkForDeleteInEntityType, getPolicies, getPolicies, getPoliciesByType, getPoliciesByType, getReferenceCount, getReferenceCountInEntityType, getReferenceId, getReferenceIdInEntityType, getStartTime, getStartTimeInEntityType, getState, getStateInEntityType, getTCsByTCSubType, getTCsByTCSubType, getTCsByTCType, getTCsByTCType, getTradingId, getTradingIdInEntityType, getTradingLevelParticipants, getTradingType, getTradingTypeInEntityType, hasTCLevelParticipant, instantiateEntity, isValid, markForDelete, setAccountId, setAccountId, setCreditAllowedFlag, setCreditAllowedFlag, setEndTime, setEndTime, setInitKey_tradingId, setInitKey_tradingId, setMarkForDelete, setMarkForDelete, setReferenceCount, setReferenceCount, setReferenceId, setReferenceId, setStartTime, setStartTime, setState, setState, setTradingId, setTradingId, setTradingType, setTradingType
      • Methods inherited from class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean

        createAccessBean, createAccessBean, createAccessBeanCollection, createAccessBeanCollection, createEntityCollection, detach, remove, setUseDataCache, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TradingAgreementDataBean

        public TradingAgreementDataBean()
    • Method Detail

      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Gets the command context set within this bean.
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        com.ibm.commerce.command.CommandContext
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request property set within this bean.
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        The request property set within this bean.
      • populate

        public void populate()
        Loads data into the data bean when the DataBeanManager.activate() runs.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception - The java.lang.Exception exception.
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext aCommandContext)
        Sets the command context within this bean.
        Specified by:
        setCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Parameters:
        aCommandContext - The command context set within this bean.
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperty)
        Sets the request property within this bean.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        aRequestProperty - The request property set within this bean.