|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.event.AbstractEventFactory org.dbforms.event.AbstractDatabaseEventFactory org.dbforms.event.DatabaseEventFactoryImpl
public class DatabaseEventFactoryImpl
DatabaseEventFactoryImpl class. Create DatabaseEvent objects.
Field Summary |
---|
Fields inherited from class org.dbforms.event.AbstractEventFactory |
---|
eventInfoMap |
Constructor Summary | |
---|---|
DatabaseEventFactoryImpl()
|
Method Summary | |
---|---|
AbstractWebEvent |
createEvent(String action,
HttpServletRequest request,
DbFormsConfig config)
create and return a new database event |
AbstractDatabaseEvent |
createInsertEvent(int tableId,
String keyId,
HttpServletRequest request,
DbFormsConfig config)
Create and return a new InsertEvent as secondary event. |
AbstractDatabaseEvent |
createUpdateEvent(int tableId,
String keyId,
HttpServletRequest request,
DbFormsConfig config)
Create and return a new UpdateEvent as secondary event. |
protected void |
initializeEvents()
Initialize the default events. |
static AbstractDatabaseEventFactory |
instance()
Get the instance of DatabaseEventFactory class. |
Methods inherited from class org.dbforms.event.AbstractEventFactory |
---|
addEventInfo, getEvent, getEventIdFromDestinationTable, getEventIdFromDestinationTable, getEventInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseEventFactoryImpl()
Method Detail |
---|
public static AbstractDatabaseEventFactory instance()
public AbstractWebEvent createEvent(String action, HttpServletRequest request, DbFormsConfig config)
createEvent
in class AbstractEventFactory
action
- the action string that identifies the web eventrequest
- the HttpServletRequest objectconfig
- the DbForms config object
public AbstractDatabaseEvent createInsertEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
createInsertEvent
in class AbstractDatabaseEventFactory
tableId
- the table identifierkeyId
- the key identifierrequest
- the HttpServletRequest objectconfig
- the DbForms config object
public AbstractDatabaseEvent createUpdateEvent(int tableId, String keyId, HttpServletRequest request, DbFormsConfig config)
createUpdateEvent
in class AbstractDatabaseEventFactory
tableId
- the table identifierkeyId
- the key identifierrequest
- the HttpServletRequest objectconfig
- the DbForms config object
protected void initializeEvents() throws Exception
initializeEvents
in class AbstractEventFactory
Exception
- if any error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |