1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.dbforms.event;
25
26 import org.dbforms.config.DbFormsConfig;
27
28 import javax.servlet.http.HttpServletRequest;
29
30
31
32 /***
33 * DatabaseEventFactory class. Create DatabaseEvent objects.
34 *
35 * @author Luca Fossato
36 *
37 */
38 public abstract class AbstractDatabaseEventFactory extends AbstractEventFactory {
39 /***
40 * Create and return a new InsertEvent as secondary event.
41 *
42 * @param tableId the table identifier
43 * @param keyId DOCUMENT ME!
44 * @param request the HttpServletRequest object
45 * @param config the DbForms config object
46 *
47 * @return The updateEvent object
48 */
49 public abstract AbstractDatabaseEvent createInsertEvent(int tableId,
50 String keyId,
51 HttpServletRequest request,
52 DbFormsConfig config);
53
54
55 /***
56 * Create and return a new UpdateEvent as secondary event.
57 *
58 * @param tableId the table identifier
59 * @param keyId the key identifier
60 * @param request the HttpServletRequest object
61 * @param config the DbForms config object
62 *
63 * @return The updateEvent object
64 */
65 public abstract AbstractDatabaseEvent createUpdateEvent(int tableId,
66 String keyId,
67 HttpServletRequest request,
68 DbFormsConfig config);
69 }