org.dbforms.event
Class AbstractDatabaseEventFactory

java.lang.Object
  extended by org.dbforms.event.AbstractEventFactory
      extended by org.dbforms.event.AbstractDatabaseEventFactory
Direct Known Subclasses:
DatabaseEventFactoryImpl

public abstract class AbstractDatabaseEventFactory
extends AbstractEventFactory

DatabaseEventFactory class. Create DatabaseEvent objects.

Author:
Luca Fossato

Field Summary
 
Fields inherited from class org.dbforms.event.AbstractEventFactory
eventInfoMap
 
Constructor Summary
AbstractDatabaseEventFactory()
           
 
Method Summary
abstract  AbstractDatabaseEvent createInsertEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
          Create and return a new InsertEvent as secondary event.
abstract  AbstractDatabaseEvent 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.AbstractEventFactory
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

AbstractDatabaseEventFactory

public AbstractDatabaseEventFactory()
Method Detail

createInsertEvent

public abstract AbstractDatabaseEvent 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 AbstractDatabaseEvent 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-2006 DbForms. All Rights Reserved.