com.ibm.commerce.messaging.beans

Class OrderStatusItemDataBean

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


    public class OrderStatusItemDataBean
    extends OrderFulfillmentItemStatusAccessBean
    implements com.ibm.commerce.messaging.beans.OrderStatusItemInputDataBean, com.ibm.commerce.messaging.beans.OrderStatusItemSmartDataBean
    OrderStatusItemDataBean provides access to ORDISTAT table. It extends OrderFulfillmentItemStatusAccessBean and implements OrderStatusItemInputDataBean and OrderStatusItemSmartDataBean interfaces.
    See Also:
    Serialized Form
    • Constructor Detail

      • OrderStatusItemDataBean

        public OrderStatusItemDataBean()
        OrderStatusItemDataBean constructor
      • OrderStatusItemDataBean

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

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

        public OrderStatusItemDataBean(OrderFulfillmentItemStatusAccessBean aabOrderItemStatus)
        Constructs an OrderStatusItemDataBean from an OrderFulfillmentItemStatusAccessBean.
        Parameters:
        aabOrderItemStatus - the OrderFulfillmentItemStatusAccessBean object
        Throws:
        java.lang.Exception
    • Method Detail

      • getCommandContext

        public CommandContext getCommandContext()
        Returns command context used in the databean.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        the com.ibm.commerce.command.CommandContext object
      • getDataBeanOrderId

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

        public java.lang.Long getDataBeanOrderItemId()
        Returns order item ID used to initialize this data bean.
        Returns:
        the order item ID
      • getDataBeanKeyOrderItemStatusId

        public java.lang.Long getDataBeanKeyOrderItemStatusId()
        Returns order item status ID used to initialize the data bean.
        Returns:
        the order item status ID
      • getOrderItemStatusID

        public java.lang.Long getOrderItemStatusID()
        Deprecated. This method is replaced by getDataBeanKeyOrderItemStatusId().
        Returns order item status ID used to initialize the data bean.
        Specified by:
        getOrderItemStatusID in interface com.ibm.commerce.messaging.beans.OrderStatusItemSmartDataBean
        Returns:
        the order item status ID
      • populate

        public void populate()
        Loads the data from database, looking up the data by order item status ID. ID can be specified by method setOrderStatusItemID. It will attempt to load the data using the order ID and the order item ID in the following condition: the order item status ID is null and the order ID as well as the order item ID are not null.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
      • setCommandContext

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

        public void setDataBeanOrderId(java.lang.Long anOrderID)
        Sets the order ID to lookup the order item status in ORDISTAT table. It must be used with order item ID.
        Parameters:
        anOrderID - the order ID
        See Also:
        setDataBeanOrderItemId(Long)
      • setDataBeanOrderItemId

        public void setDataBeanOrderItemId(java.lang.Long anOrderItemID)
        Sets the order item ID to lookup the order item status in ORDISTAT table. It must be used with order ID.
        Parameters:
        anOrderItemID - the order item ID
        See Also:
        setDataBeanOrderId(Long)
      • setDataBeanKeyOrderItemStatusId

        public void setDataBeanKeyOrderItemStatusId(java.lang.Long anOrderItemStatusID)
        Sets order item status ID located in the ORDISTAT table.
        Parameters:
        anOrderItemStatusID - the order item status ID
      • setOrderItemStatusID

        public void setOrderItemStatusID(java.lang.Long anOrderItemStatusID)
        Deprecated. This method is replaced by setDataBeanKeyOrderItemStatusId(Long).
        Sets order item status ID located in the ORDISTAT table.
        Specified by:
        setOrderItemStatusID in interface com.ibm.commerce.messaging.beans.OrderStatusItemInputDataBean
        Parameters:
        anOrderItemStatusID - the order item status ID
      • setRequestProperties

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