com.ibm.commerce.inventory.beans

Class OrderReleaseDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.inventory.beans.OrderReleaseInputDataBean, com.ibm.commerce.inventory.beans.OrderReleaseSmartDataBean, Delegator, Protectable, java.io.Serializable


    public class OrderReleaseDataBean
    extends com.ibm.commerce.inventory.beansrc.OrderReleaseDataBeanBase
    implements com.ibm.commerce.inventory.beans.OrderReleaseInputDataBean, com.ibm.commerce.inventory.beans.OrderReleaseSmartDataBean, Delegator, Protectable
    This data bean represents an order release object.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • OrderReleaseDataBean

        public OrderReleaseDataBean(OrderReleaseAccessBean aabOrderRelease)
        This constructor constructs an OrderReleaseDataBean from an OrderReleaseAccessBean by extracting the OrderReleaseTotal EJB reference from the OrderReleaseAccessBean.
        Parameters:
        aabOrderRelease - order release access bean.
        Throws:
        java.lang.Exception
      • OrderReleaseDataBean

        public OrderReleaseDataBean()
        The default constructor.
    • Method Detail

      • getDataBeanKeyOrderReleaseNum

        public java.lang.String getDataBeanKeyOrderReleaseNum()
        This method returns the order release number.
        Specified by:
        getDataBeanKeyOrderReleaseNum in interface com.ibm.commerce.inventory.beans.OrderReleaseSmartDataBean
        Returns:
        order release number.
      • getDataBeanKeyOrdersId

        public java.lang.String getDataBeanKeyOrdersId()
        This method returns the order Id.
        Specified by:
        getDataBeanKeyOrdersId in interface com.ibm.commerce.inventory.beans.OrderReleaseSmartDataBean
        Returns:
        order Id.
      • getDelegate

        public Protectable getDelegate()
        This method returns the Protectable object whose access control policies will indirectly control the access control for this object
        Specified by:
        getDelegate in interface Delegator
        Returns:
        the Protectable object whose access control policies will indirectly control the access control for this object
      • getOrderItemDataBeans

        public OrderItemDataBean[] getOrderItemDataBeans()
                                                  throws java.lang.Exception
        This method returns the order item access beans related to this order release.
        Returns:
        the order item access beans related to this order release.
        Throws:
        java.lang.Exception
      • getOwner

        public java.lang.Long getOwner()
                                throws java.lang.Exception
        This method returns the member id of the owner.
        Specified by:
        getOwner in interface Protectable
        Returns:
        The member id of the owner
        Throws:
        java.lang.Exception
      • getPackageIds

        public java.lang.String[] getPackageIds()
                                         throws java.lang.Exception
        This method returns the package Ids related to the order release.
        Returns:
        the package Ids related to the order release.
        Throws:
        java.lang.Exception
      • getTrackingIds

        public java.lang.String[] getTrackingIds()
                                          throws java.lang.Exception
        This method returns the tracking Ids of the order release.
        Returns:
        the tracking Ids of the order release.
        Throws:
        java.lang.Exception
      • parsePackSlipXml

        public com.ibm.commerce.inventory.beans.PackslipDetailDataBean parsePackSlipXml()
                                                                                 throws java.lang.Exception
        This method parses pack slip XML for the order lease.
        Returns:
        pack slip data bean.
        Throws:
        java.lang.Exception
      • populate

        public void populate()
        This method is used to populate the OrderReleaseDataBean.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
      • setCommandContext

        public void setCommandContext(CommandContext aCommandContext)
        This method sets the command context within this bean.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        aCommandContext - com.ibm.commerce.command.CommandContext
      • setDataBeanKeyOrderReleaseNum

        public void setDataBeanKeyOrderReleaseNum(java.lang.String aOrderReleaseNum)
        This method sets the order release number.
        Specified by:
        setDataBeanKeyOrderReleaseNum in interface com.ibm.commerce.inventory.beans.OrderReleaseInputDataBean
        Parameters:
        aOrderReleaseNum - order release number.
      • setDataBeanKeyOrdersId

        public void setDataBeanKeyOrdersId(java.lang.String aOrdersId)
        This method sets the order Id.
        Specified by:
        setDataBeanKeyOrdersId in interface com.ibm.commerce.inventory.beans.OrderReleaseInputDataBean
        Parameters:
        aOrdersId - orderId.
      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperty)
        This method sets the request property within this bean.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        aRequestProperty - request property
      • fulfills

        public boolean fulfills(java.lang.Long member,
                                java.lang.String relationship)
        This method determines if a given member fulfills a given relationship with the resource.
        Specified by:
        fulfills in interface Protectable
        Parameters:
        member - 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
      • getOrderReleaseTotals

        public OrderReleaseTotalsDataBean[] getOrderReleaseTotals()
        This method returns array of OrderReleaseTotalsDataBean related to the order release.
        Returns:
        array of OrderReleaseTotalsDataBean related to the order release.
      • getAdjustmentTotal

        public java.math.BigDecimal getAdjustmentTotal()
        This method returns the total adjustment amount related to this order release.
        Returns:
        the total adjustment amount related to this order release.
      • getProductTotal

        public java.math.BigDecimal getProductTotal()
        This method returns the total product amount related to this order release.
        Returns:
        the total product amount related to this order release.
      • getShippingChargeTotal

        public java.math.BigDecimal getShippingChargeTotal()
        This method returns the shipping charge amount related to this order release.
        Returns:
        the shipping charge amount related to this order release.
      • getShippingTaxTotal

        public java.math.BigDecimal getShippingTaxTotal()
        This method returns the total shipping tax amount related to this order release.
        Returns:
        the total shipping tax amount related to this order release.
      • getTaxTotal

        public java.math.BigDecimal getTaxTotal()
        This method returns the total tax amount related to this order release.
        Returns:
        the total tax amount related to this order release.
      • setAdjustmentTotal

        public void setAdjustmentTotal(java.math.BigDecimal amount)
        This method sets the total adjustment amount related to this order release.
        Parameters:
        amount - total adjustment amount related to this order release.
      • setProductTotal

        public void setProductTotal(java.math.BigDecimal amount)
        This method sets the total product amount related to this order release.
        Parameters:
        amount - total product amount related to this order release.
      • setShippingChargeTotal

        public void setShippingChargeTotal(java.math.BigDecimal amount)
        This method sets the shipping charge amount related to this order release.
        Parameters:
        amount - shipping charge amount related to this order release.
      • setShippingTaxTotal

        public void setShippingTaxTotal(java.math.BigDecimal amount)
        This method sets the shipping tax amount related to this order release.
        Parameters:
        amount - shopping tax amount related to this order release.
      • setTaxTotal

        public void setTaxTotal(java.math.BigDecimal amount)
        This method sets the tax total amount related to this order release.
        Parameters:
        amount - tax total amount related to this order release.