org.dbforms.event
Class DatabaseEventFactory

java.lang.Object
  extended by org.dbforms.event.EventFactory
      extended by org.dbforms.event.DatabaseEventFactory
Direct Known Subclasses:
DatabaseEventFactoryImpl

public abstract class DatabaseEventFactory
extends EventFactory

DatabaseEventFactory class. Create DatabaseEvent objects.

Author:
Luca Fossato

Field Summary
 
Fields inherited from class org.dbforms.event.EventFactory
eventInfoMap
 
Constructor Summary
DatabaseEventFactory()
           
 
Method Summary
abstract  DatabaseEvent createInsertEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
          Create and return a new InsertEvent as secondary event.
abstract  DatabaseEvent createUpdateEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
          Create and return a new UpdateEvent as secondary event.
 
Methods inherited from class org.dbforms.event.EventFactory
addEventInfo, createEvent, getEvent, getEventIdFromDestinationTable, getEventIdFromDestinationTable, getEventInfo, initializeEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseEventFactory

public DatabaseEventFactory()
Method Detail

createInsertEvent

public abstract DatabaseEvent createInsertEvent(int tableId,
                                                String keyId,
                                                HttpServletRequest request,
                                                DbFormsConfig config)
Create and return a new InsertEvent as secondary event.

Parameters:
tableId - the table identifier
keyId - DOCUMENT ME!
request - the HttpServletRequest object
config - the DbForms config object
Returns:
The updateEvent object

createUpdateEvent

public abstract DatabaseEvent createUpdateEvent(int tableId,
                                                String keyId,
                                                HttpServletRequest request,
                                                DbFormsConfig config)
Create and return a new UpdateEvent as secondary event.

Parameters:
tableId - the table identifier
keyId - the key identifier
request - the HttpServletRequest object
config - the DbForms config object
Returns:
The updateEvent object


Copyright © 2002-2005 DbForms. All Rights Reserved.