com.ibm.commerce.order.event

Class OrderHistoryECEventListenerImpl

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.event.impl.AbstractECEventListener
        • com.ibm.commerce.order.event.OrderHistoryECEventListenerImpl
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, ComponentConfiguration, java.util.EventListener
    Direct Known Subclasses:
    OrderCostCalculationECEventListenerImpl


    public class OrderHistoryECEventListenerImpl
    extends com.ibm.commerce.event.impl.AbstractECEventListener
    EC Event Listener that listens for CBE events and only process events that are either order creation or order submission. The user who created the event, and other history information related to the order will be persisted into the order history table. The order is contained in the common base event.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String SQL_ORDUSERS_INSERT
      The SQL statement to insert into the ORDUSERS table.
      static java.lang.String SQL_ORDUSERS_SELECT
      The SQL statement to select from the ORDUSERS table.
      static java.lang.String SQL_ORDUSERS_UPDATE
      The SQL statement to update into the ORDUSERS table.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Class getECEventContainer()
      Returns the class OrderSubmissionEventContainer as the event container.
      java.util.Set getEvents()
      Returns a set only containing the extension name for the order submission event.
      void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
      Processes only order submission common base events and stores the event information into the order history tables.
      • Methods inherited from class com.ibm.commerce.event.impl.AbstractECEventListener

        destroy, enable, getEventContainers, isTransactionRequired, processActivityEvent, registerEventContainer
      • Methods inherited from class com.ibm.commerce.event.EventComponentConfiguration

        init
      • Methods inherited from class java.lang.Object

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

      • COPYRIGHT

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

        public static final java.lang.String SQL_ORDUSERS_INSERT
        The SQL statement to insert into the ORDUSERS table. This is a prepared statement which the order id, creator id and submitter id must be specified in that order.
        See Also:
        Constant Field Values
      • SQL_ORDUSERS_SELECT

        public static final java.lang.String SQL_ORDUSERS_SELECT
        The SQL statement to select from the ORDUSERS table. This is a prepared statement which the order id must be specified in that order.
        See Also:
        Constant Field Values
      • SQL_ORDUSERS_UPDATE

        public static final java.lang.String SQL_ORDUSERS_UPDATE
        The SQL statement to update into the ORDUSERS table. This is a prepared statement which the order id, and submitter id must be specified in that order.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderHistoryECEventListenerImpl

        public OrderHistoryECEventListenerImpl()
        Creates an instance of the order history event listener.
    • Method Detail

      • processEvent

        public final void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
        Processes only order submission common base events and stores the event information into the order history tables.
        Specified by:
        processEvent in class com.ibm.commerce.event.impl.AbstractECEventListener
        Parameters:
        commonBaseEvent - The common base event to process.
        See Also:
        AbstractECEventListener.processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
      • getECEventContainer

        public java.lang.Class getECEventContainer()
        Returns the class OrderSubmissionEventContainer as the event container.
        Specified by:
        getECEventContainer in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        The OrderSubmissionEventContainer class.
        See Also:
        AbstractECEventListener.getECEventContainer()
      • getEvents

        public java.util.Set getEvents()
        Returns a set only containing the extension name for the order submission event.
        Specified by:
        getEvents in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        A set with only the OrderSubmission event extension name.
        See Also:
        AbstractECEventListener.getEvents()