org.dbforms.event
Class EventEngine

java.lang.Object
  extended by org.dbforms.event.EventEngine

public class EventEngine
extends Object

This class is invoked by the Controller-Servlet. It parses a request to find out which Event(s) need to be instanciated. The fine-grained parsing (parsing of additional data, etc) is done by the WebEvent-Object itself (in order to hide complexity from this class and to keep the framework open for implementations of new Event-classes)

Author:
Joe Peer

Constructor Summary
EventEngine(HttpServletRequest request, DbFormsConfig config)
          Constructor.
 
Method Summary
 AbstractWebEvent generatePrimaryEvent()
          Generate the primary event object, depending on the data contained into the incoming http request object.
 Enumeration generateSecundaryEvents(Table actTable, AbstractWebEvent exclude)
          Generate secundary events (update events)
 Vector getInvolvedTables()
          Get the involvedTables attribute of the EventEngine class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventEngine

public EventEngine(HttpServletRequest request,
                   DbFormsConfig config)
Constructor.

Parameters:
request - the request object
config - the configuration object
Method Detail

getInvolvedTables

public Vector getInvolvedTables()
Get the involvedTables attribute of the EventEngine class.

Returns:
the involvedTables attribute of the EventEngine class

generatePrimaryEvent

public AbstractWebEvent generatePrimaryEvent()
Generate the primary event object, depending on the data contained into the incoming http request object.

Returns:
a new WebEvent object

generateSecundaryEvents

public Enumeration generateSecundaryEvents(Table actTable,
                                           AbstractWebEvent exclude)
Generate secundary events (update events)

Parameters:
actTable - DOCUMENT ME!
exclude - the parent web event (related to the main form)
Returns:
DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.