1 23 package org.dbforms.config; 24 import java.sql.Connection ; 25 26 import java.util.HashMap ; 27 import java.util.Map ; 28 29 import javax.servlet.http.HttpServletRequest ; 30 31 32 33 38 public class DbEventInterceptorData { 39 40 41 public static final String FIELDVALUES = "fieldValues"; 42 43 44 public static final String KEYVALUES = "keyValues"; 45 46 47 public static final String RESULTSET = "ResultSetVector"; 48 49 50 public static final String OBJECTROW = "ObjectRow"; 51 52 53 public static final String CONNECTIONNAME = "connectionName"; 54 55 56 public static final String PAGECONTEXT = "pageContext"; 57 58 59 private HttpServletRequest request; 60 private DbFormsConfig config; 61 private Connection connection; 62 private Table table; 63 private Map attributes = new HashMap (); 64 65 72 public DbEventInterceptorData(HttpServletRequest request, 73 DbFormsConfig config, Connection connection, Table table) { 74 this.request = request; 75 this.config = config; 76 this.connection = connection; 77 this.table = table; 78 } 79 80 85 public Map getAttributesMap() { 86 return attributes; 87 } 88 89 90 97 public Object getAttribute(String key) { 98 return attributes.get(key); 99 } 100 101 102 108 public void setAttribute(String key, Object value) { 109 attributes.put(key, value); 110 } 111 112 113 116 public DbFormsConfig getConfig() { 117 return config; 118 } 119 120 121 124 public Connection getConnection() { 125 return connection; 126 } 127 128 129 132 public HttpServletRequest getRequest() { 133 return request; 134 } 135 136 137 140 public Table getTable() { 141 return table; 142 } 143 } 144 | Popular Tags |