com.ibm.commerce.messaging.beans

Class OrderStatusDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.messaging.beans.OrderStatusInputDataBean, com.ibm.commerce.messaging.beans.OrderStatusSmartDataBean, java.io.Serializable


    public class OrderStatusDataBean
    extends OrderFulfillmentStatusAccessBean
    implements com.ibm.commerce.messaging.beans.OrderStatusInputDataBean, com.ibm.commerce.messaging.beans.OrderStatusSmartDataBean
    OrderStatusDataBean provides access to ORDSTAT table. It extends OrderFulfillmentStatusAccessBean and implements OrderStatusInputDataBean and OrderStatusSmartDataBean interfaces.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • OrderStatusDataBean

        public OrderStatusDataBean()
        OrderStatusDataBean constructor comment.
      • OrderStatusDataBean

        public OrderStatusDataBean(TypedProperty arg0)
        OrderStatusDataBean constructor. The argument is the TypedProperty object holding data of the new entry.
        Parameters:
        arg0 - the com.ibm.commerce.datatype.TypedProperty object
        See Also:
        OrderFulfillmentStatusAccessBean
      • OrderStatusDataBean

        public OrderStatusDataBean(com.ibm.commerce.orderstatus.objects.OrderFulfillmentStatus o)
        OrderStatusDataBean constructor.
        Parameters:
        o - the javax.ejb.EJBObject object used to call the constructor
      • OrderStatusDataBean

        public OrderStatusDataBean(OrderFulfillmentStatusAccessBean aabOrderStatus)
        Constructs an OrderStatusDataBean from an OrderFulfillmentStatusAccessBean.
        Parameters:
        aabOrderStatus - the OrderFulfillmentStatusAccessBean object
        Throws:
        java.lang.Exception
    • Method Detail

      • getCommandContext

        public CommandContext getCommandContext()
        Returns the current command context. Under the current implementation, it always returns null.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        null under the current implementation
      • getDataBeanOrderId

        public java.lang.Long getDataBeanOrderId()
        Returns the order ID used to initialize the data bean.
        Returns:
        the order ID
      • getDataBeanKeyOrderStatusId

        public java.lang.Long getDataBeanKeyOrderStatusId()
        Returns the order status ID used to initialize this data bean.
        Returns:
        the order status ID
      • getOrderStatusID

        public java.lang.Long getOrderStatusID()
        Deprecated. This method is replaced by getDataBeanKeyOrderStatusId().
        Returns the order status ID used to initialize this data bean.
        Specified by:
        getOrderStatusID in interface com.ibm.commerce.messaging.beans.OrderStatusSmartDataBean
        Returns:
        the order status ID
      • getRequestProperties

        public TypedProperty getRequestProperties()
        Returns request properties in a com.ibm.commerce.datatype.TypedProperty object.
        Specified by:
        getRequestProperties in interface InputDataBean
        Returns:
        null under the current implementation.
      • populate

        public void populate()
        Loads the data from database, looking up the data by order status ID. This ID can be specified by method setOrderStatusID. If this ID is null and order ID is not null, it will attempt to load the data by using the order ID.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
      • setCommandContext

        public void setCommandContext(CommandContext newCommandContext)
        Sets command context for the databean.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        newCommandContext - the com.ibm.commerce.command.CommandContext object used in the databean
      • setDataBeanOrderId

        public void setDataBeanOrderId(java.lang.Long anOrderID)
        Sets the order ID to lookup the current order status in ORDSTAT table.
        Parameters:
        anOrderID - the order ID
      • setDataBeanKeyOrderStatusId

        public void setDataBeanKeyOrderStatusId(java.lang.Long anOrderStatusID)
        Sets the order status ID used to initialize the data bean.
        Parameters:
        anOrderStatusID - the order status ID
      • setOrderStatusID

        public void setOrderStatusID(java.lang.Long anOrderStatusID)
        Deprecated. This method is replaced by setDataBeanKeyOrderStatusId(Long).
        Sets the order status ID used to initialize the data bean.
        Specified by:
        setOrderStatusID in interface com.ibm.commerce.messaging.beans.OrderStatusInputDataBean
        Parameters:
        anOrderStatusID - the order status ID
      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperty)
        Sets request properties for the databean.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        aRequestProperty - the com.ibm.commerce.datatype.TypedProperty object used