com.ibm.commerce.order.commands

Class OrderFlowEntityBean

  • All Implemented Interfaces:
    com.ibm.commerce.ubf.beans.BusinessFlowEntityBean, java.io.Serializable


    public class OrderFlowEntityBean
    extends OrderAccessBean
    implements com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
    OrderFlowEntityBean is used in the OrderProcess approval flow. It is a BusinessFlowEntityBean and is intended to be passed from one state to another.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • OrderFlowEntityBean

        public OrderFlowEntityBean()
    • Method Detail

      • getEntityId

        public java.lang.Long getEntityId()
        Returns the id of the entity bean. It is the same as the order id.
        Specified by:
        getEntityId in interface com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
        Returns:
        the identifier of the entity bean.
      • getStateIdentifier

        public java.lang.Integer getStateIdentifier()
        Returns the stateIdentifier of the entity bean.
        Specified by:
        getStateIdentifier in interface com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
        Returns:
        the state identifier of the entity bean.
      • save

        public void save()
        Saves the state information in the entity bean.
        Specified by:
        save in interface com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
      • setEntityId

        public void setEntityId(java.lang.Long aId)
        Sets the identifier of the entity bean and populates it, if it exists.
        Specified by:
        setEntityId in interface com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
        Parameters:
        aId - Long entity Id
      • setStateIdentifier

        public void setStateIdentifier(java.lang.Integer aStateIdentifier)
        Sets the state identifier of the entity bean. Depending on the state identifier passed in, the status of the order will be changed accordingly.
        • If state identifier = 2 (rejected), the status of the order is set to 'N'.
        • If state identifier = 5 (pending approval), the status of the order is set to 'W'.
        Specified by:
        setStateIdentifier in interface com.ibm.commerce.ubf.beans.BusinessFlowEntityBean
        Parameters:
        aStateIdentifier - Integer state identifier