1 23 24 package org.dbforms.config; 25 26 import java.util.Map ; 27 28 29 30 42 48 public interface DbEventInterceptor { 49 50 public static final int PRE_INSERT = 0; 51 52 53 public static final int POST_INSERT = 1; 54 55 56 public static final int PRE_UPDATE = 2; 57 58 59 public static final int POST_UPDATE = 3; 60 61 62 public static final int PRE_DELETE = 4; 63 64 65 public static final int POST_DELETE = 5; 66 67 68 public static final int PRE_SELECT = 6; 69 70 71 public static final int POST_SELECT = 7; 72 73 74 public static final int PRE_ADDROW = 8; 75 76 77 public static final int POST_ADDROW = 9; 78 79 80 public static final int GRANT_OPERATION = 0; 81 82 83 public static final int DENY_OPERATION = 1; 84 85 89 public static final int IGNORE_OPERATION = 2; 90 91 96 public void setParameterMap(Map params); 97 98 99 104 public Map getParameterMap(); 105 106 107 112 public void postAddRow(DbEventInterceptorData data); 113 114 115 120 public void postDelete(DbEventInterceptorData data); 121 122 123 128 public void postInsert(DbEventInterceptorData data); 129 130 131 136 public void postSelect(DbEventInterceptorData data); 137 138 139 144 public void postUpdate(DbEventInterceptorData data); 145 146 147 157 public int preAddRow(DbEventInterceptorData data) 158 throws ValidationException, MultipleValidationException; 159 160 161 171 public int preDelete(DbEventInterceptorData data) 172 throws ValidationException, MultipleValidationException; 173 174 175 185 public int preInsert(DbEventInterceptorData data) 186 throws ValidationException, MultipleValidationException; 187 188 189 199 public int preSelect(DbEventInterceptorData data) 200 throws ValidationException, MultipleValidationException; 201 202 203 213 public int preUpdate(DbEventInterceptorData data) 214 throws ValidationException, MultipleValidationException; 215 } 216 | Popular Tags |