com.ibm.commerce.tools.contract.beans

Class PurchaseOrderTCDataBean

  • java.lang.Object
    • com.ibm.commerce.tools.contract.beans.PurchaseOrderTCDataBean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable


    public class PurchaseOrderTCDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
    This data bean represents a Purchase Order Term and Condition object. Purchase Order, One or more products, their prices, and the quantity specified, that a customer has purchased. When retrieving all the data associated with a Purchase Order Term and Condition, the data bean will be called. Sets the account and language identifiers in order to populate the bean. The data bean maps to a database table TERMCOND
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Constructor Summary

      Constructors 
      Constructor and Description
      PurchaseOrderTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
      Constructs an PurchaseOrderTCDataBean from an existing account identifier Finds the Purchase orders terms and conditions in the account
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Returns the current command's context
      com.ibm.commerce.security.Protectable getDelegate()
      Returns the access control delegate of this data bean
      java.lang.String[] getPOBNumber()
      Returns the list of blanket purchase order numbers
      java.lang.String[] getPOBReferenceNumber()
      Returns the list of blanket purchase order reference numbers
      int getPOIndividual()
      Returns whether there is an individual purchase order
      java.lang.String getPOIReferenceNumber()
      Returns the individual purchase order reference number
      java.lang.String[] getPOLCurrency()
      Returns the list of currencies of the limited purchase orders
      java.lang.String[] getPOLNumber()
      Returns the list of limited purchase order numbers
      java.lang.String[] getPOLReferenceNumber()
      Returns the list of limited purchase order reference numbers
      java.lang.String[] getPOLValue()
      Returns the list of currency values for the limited purchase orders
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Gets the request properties
      void populate()
      This method is used to retrieve the Purchase orders data in the account.
      void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
      Sets the command context
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
      Sets the request properties.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PurchaseOrderTCDataBean

        public PurchaseOrderTCDataBean(java.lang.Long newContractId,
                                       java.lang.Integer newLangId)
        Constructs an PurchaseOrderTCDataBean from an existing account identifier Finds the Purchase orders terms and conditions in the account
        Parameters:
        newContractId - Long An existing contract identifier
        newLangId - Integer The language identifier for which language to retrieve the data
    • Method Detail

      • getCommandContext

        public com.ibm.commerce.command.CommandContext getCommandContext()
        Returns the current command's context
        Specified by:
        getCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Returns:
        com.ibm.commerce.command.CommandContext
      • getDelegate

        public com.ibm.commerce.security.Protectable getDelegate()
                                                          throws java.lang.Exception
        Returns the access control delegate of this data bean
        Specified by:
        getDelegate in interface com.ibm.commerce.security.Delegator
        Returns:
        com.ibm.commerce.security.Protectable
        Throws:
        java.lang.Exception
      • getPOBNumber

        public java.lang.String[] getPOBNumber()
        Returns the list of blanket purchase order numbers
        Returns:
        java.lang.String[]
      • getPOBReferenceNumber

        public java.lang.String[] getPOBReferenceNumber()
        Returns the list of blanket purchase order reference numbers
        Returns:
        java.lang.String[]
      • getPOIndividual

        public int getPOIndividual()
        Returns whether there is an individual purchase order
        Returns:
        int
      • getPOIReferenceNumber

        public java.lang.String getPOIReferenceNumber()
        Returns the individual purchase order reference number
        Returns:
        java.lang.String
      • getPOLCurrency

        public java.lang.String[] getPOLCurrency()
        Returns the list of currencies of the limited purchase orders
        Returns:
        java.lang.String[]
      • getPOLNumber

        public java.lang.String[] getPOLNumber()
        Returns the list of limited purchase order numbers
        Returns:
        java.lang.String[]
      • getPOLReferenceNumber

        public java.lang.String[] getPOLReferenceNumber()
        Returns the list of limited purchase order reference numbers
        Returns:
        java.lang.String[]
      • getPOLValue

        public java.lang.String[] getPOLValue()
        Returns the list of currency values for the limited purchase orders
        Returns:
        java.lang.String[]
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request properties
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        null
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is used to retrieve the Purchase orders data in the account. 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
      • setCommandContext

        public void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
        Sets the command context
        Specified by:
        setCommandContext in interface com.ibm.commerce.beans.SmartDataBean
        Parameters:
        newICommandContext - com.ibm.commerce.command.CommandContext
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
        Sets the request properties.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        param - com.ibm.commerce.datatype.TypedProperty