1 22 23 24 package com.mchange.v2.sql.filter; 25 26 import java.io.InputStream ; 27 import java.io.Reader ; 28 import java.lang.Object ; 29 import java.lang.String ; 30 import java.math.BigDecimal ; 31 import java.net.URL ; 32 import java.sql.Array ; 33 import java.sql.Blob ; 34 import java.sql.Clob ; 35 import java.sql.Connection ; 36 import java.sql.Date ; 37 import java.sql.ParameterMetaData ; 38 import java.sql.PreparedStatement ; 39 import java.sql.Ref ; 40 import java.sql.ResultSet ; 41 import java.sql.ResultSetMetaData ; 42 import java.sql.SQLException ; 43 import java.sql.SQLWarning ; 44 import java.sql.Time ; 45 import java.sql.Timestamp ; 46 import java.util.Calendar ; 47 48 public abstract class SynchronizedFilterPreparedStatement implements PreparedStatement 49 { 50 protected PreparedStatement inner; 51 52 public SynchronizedFilterPreparedStatement(PreparedStatement inner) 53 { this.inner = inner; } 54 55 public SynchronizedFilterPreparedStatement() 56 {} 57 58 public synchronized void setInner( PreparedStatement inner ) 59 { this.inner = inner; } 60 61 public synchronized PreparedStatement getInner() 62 { return inner; } 63 64 public synchronized ResultSetMetaData getMetaData() throws SQLException 65 { return inner.getMetaData(); } 66 67 public synchronized ResultSet executeQuery() throws SQLException 68 { return inner.executeQuery(); } 69 70 public synchronized int executeUpdate() throws SQLException 71 { return inner.executeUpdate(); } 72 73 public synchronized void addBatch() throws SQLException 74 { inner.addBatch(); } 75 76 public synchronized void setNull(int a, int b, String c) throws SQLException 77 { inner.setNull(a, b, c); } 78 79 public synchronized void setNull(int a, int b) throws SQLException 80 { inner.setNull(a, b); } 81 82 public synchronized void setBigDecimal(int a, BigDecimal b) throws SQLException 83 { inner.setBigDecimal(a, b); } 84 85 public synchronized void setBytes(int a, byte[] b) throws SQLException 86 { inner.setBytes(a, b); } 87 88 public synchronized void setTimestamp(int a, Timestamp b, Calendar c) throws SQLException 89 { inner.setTimestamp(a, b, c); } 90 91 public synchronized void setTimestamp(int a, Timestamp b) throws SQLException 92 { inner.setTimestamp(a, b); } 93 94 public synchronized void setAsciiStream(int a, InputStream b, int c) throws SQLException 95 { inner.setAsciiStream(a, b, c); } 96 97 public synchronized void setUnicodeStream(int a, InputStream b, int c) throws SQLException 98 { inner.setUnicodeStream(a, b, c); } 99 100 public synchronized void setBinaryStream(int a, InputStream b, int c) throws SQLException 101 { inner.setBinaryStream(a, b, c); } 102 103 public synchronized void clearParameters() throws SQLException 104 { inner.clearParameters(); } 105 106 public synchronized void setObject(int a, Object b) throws SQLException 107 { inner.setObject(a, b); } 108 109 public synchronized void setObject(int a, Object b, int c, int d) throws SQLException 110 { inner.setObject(a, b, c, d); } 111 112 public synchronized void setObject(int a, Object b, int c) throws SQLException 113 { inner.setObject(a, b, c); } 114 115 public synchronized void setCharacterStream(int a, Reader b, int c) throws SQLException 116 { inner.setCharacterStream(a, b, c); } 117 118 public synchronized void setRef(int a, Ref b) throws SQLException 119 { inner.setRef(a, b); } 120 121 public synchronized void setBlob(int a, Blob b) throws SQLException 122 { inner.setBlob(a, b); } 123 124 public synchronized void setClob(int a, Clob b) throws SQLException 125 { inner.setClob(a, b); } 126 127 public synchronized void setArray(int a, Array b) throws SQLException 128 { inner.setArray(a, b); } 129 130 public synchronized ParameterMetaData getParameterMetaData() throws SQLException 131 { return inner.getParameterMetaData(); } 132 133 public synchronized void setBoolean(int a, boolean b) throws SQLException 134 { inner.setBoolean(a, b); } 135 136 public synchronized void setByte(int a, byte b) throws SQLException 137 { inner.setByte(a, b); } 138 139 public synchronized void setShort(int a, short b) throws SQLException 140 { inner.setShort(a, b); } 141 142 public synchronized void setInt(int a, int b) throws SQLException 143 { inner.setInt(a, b); } 144 145 public synchronized void setLong(int a, long b) throws SQLException 146 { inner.setLong(a, b); } 147 148 public synchronized void setFloat(int a, float b) throws SQLException 149 { inner.setFloat(a, b); } 150 151 public synchronized void setDouble(int a, double b) throws SQLException 152 { inner.setDouble(a, b); } 153 154 public synchronized void setURL(int a, URL b) throws SQLException 155 { inner.setURL(a, b); } 156 157 public synchronized void setTime(int a, Time b) throws SQLException 158 { inner.setTime(a, b); } 159 160 public synchronized void setTime(int a, Time b, Calendar c) throws SQLException 161 { inner.setTime(a, b, c); } 162 163 public synchronized boolean execute() throws SQLException 164 { return inner.execute(); } 165 166 public synchronized void setString(int a, String b) throws SQLException 167 { inner.setString(a, b); } 168 169 public synchronized void setDate(int a, Date b, Calendar c) throws SQLException 170 { inner.setDate(a, b, c); } 171 172 public synchronized void setDate(int a, Date b) throws SQLException 173 { inner.setDate(a, b); } 174 175 public synchronized SQLWarning getWarnings() throws SQLException 176 { return inner.getWarnings(); } 177 178 public synchronized void clearWarnings() throws SQLException 179 { inner.clearWarnings(); } 180 181 public synchronized void setFetchDirection(int a) throws SQLException 182 { inner.setFetchDirection(a); } 183 184 public synchronized int getFetchDirection() throws SQLException 185 { return inner.getFetchDirection(); } 186 187 public synchronized void setFetchSize(int a) throws SQLException 188 { inner.setFetchSize(a); } 189 190 public synchronized int getFetchSize() throws SQLException 191 { return inner.getFetchSize(); } 192 193 public synchronized int getResultSetHoldability() throws SQLException 194 { return inner.getResultSetHoldability(); } 195 196 public synchronized ResultSet executeQuery(String a) throws SQLException 197 { return inner.executeQuery(a); } 198 199 public synchronized int executeUpdate(String a, int b) throws SQLException 200 { return inner.executeUpdate(a, b); } 201 202 public synchronized int executeUpdate(String a, String [] b) throws SQLException 203 { return inner.executeUpdate(a, b); } 204 205 public synchronized int executeUpdate(String a, int[] b) throws SQLException 206 { return inner.executeUpdate(a, b); } 207 208 public synchronized int executeUpdate(String a) throws SQLException 209 { return inner.executeUpdate(a); } 210 211 public synchronized int getMaxFieldSize() throws SQLException 212 { return inner.getMaxFieldSize(); } 213 214 public synchronized void setMaxFieldSize(int a) throws SQLException 215 { inner.setMaxFieldSize(a); } 216 217 public synchronized int getMaxRows() throws SQLException 218 { return inner.getMaxRows(); } 219 220 public synchronized void setMaxRows(int a) throws SQLException 221 { inner.setMaxRows(a); } 222 223 public synchronized void setEscapeProcessing(boolean a) throws SQLException 224 { inner.setEscapeProcessing(a); } 225 226 public synchronized int getQueryTimeout() throws SQLException 227 { return inner.getQueryTimeout(); } 228 229 public synchronized void setQueryTimeout(int a) throws SQLException 230 { inner.setQueryTimeout(a); } 231 232 public synchronized void setCursorName(String a) throws SQLException 233 { inner.setCursorName(a); } 234 235 public synchronized ResultSet getResultSet() throws SQLException 236 { return inner.getResultSet(); } 237 238 public synchronized int getUpdateCount() throws SQLException 239 { return inner.getUpdateCount(); } 240 241 public synchronized boolean getMoreResults() throws SQLException 242 { return inner.getMoreResults(); } 243 244 public synchronized boolean getMoreResults(int a) throws SQLException 245 { return inner.getMoreResults(a); } 246 247 public synchronized int getResultSetConcurrency() throws SQLException 248 { return inner.getResultSetConcurrency(); } 249 250 public synchronized int getResultSetType() throws SQLException 251 { return inner.getResultSetType(); } 252 253 public synchronized void addBatch(String a) throws SQLException 254 { inner.addBatch(a); } 255 256 public synchronized void clearBatch() throws SQLException 257 { inner.clearBatch(); } 258 259 public synchronized int[] executeBatch() throws SQLException 260 { return inner.executeBatch(); } 261 262 public synchronized ResultSet getGeneratedKeys() throws SQLException 263 { return inner.getGeneratedKeys(); } 264 265 public synchronized void close() throws SQLException 266 { inner.close(); } 267 268 public synchronized boolean execute(String a, int b) throws SQLException 269 { return inner.execute(a, b); } 270 271 public synchronized boolean execute(String a) throws SQLException 272 { return inner.execute(a); } 273 274 public synchronized boolean execute(String a, int[] b) throws SQLException 275 { return inner.execute(a, b); } 276 277 public synchronized boolean execute(String a, String [] b) throws SQLException 278 { return inner.execute(a, b); } 279 280 public synchronized Connection getConnection() throws SQLException 281 { return inner.getConnection(); } 282 283 public synchronized void cancel() throws SQLException 284 { inner.cancel(); } 285 } 286 | Popular Tags |