1 2 3 package com.opensourceconnections.msjdbcproxy; 4 5 import java.io.InputStream; 6 import java.io.Reader; 7 import java.math.BigDecimal; 8 import java.net.URL; 9 import java.sql.Array; 10 import java.sql.Blob; 11 import java.sql.CallableStatement; 12 import java.sql.Clob; 13 import java.sql.Date; 14 import java.sql.Ref; 15 import java.sql.SQLException; 16 import java.sql.Time; 17 import java.sql.Timestamp; 18 import java.util.Calendar; 19 import java.util.Map; 20 21 public class CallableStatementProxy extends PreparedStatementProxy implements CallableStatement 22 { 23 public CallableStatementProxy(ConnectionProxy connection, CallableStatement statement) 24 { 25 super(connection, statement); 26 } 27 28 public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException 29 { 30 ((CallableStatement)_statement).registerOutParameter(parameterIndex, sqlType); 31 } 32 33 public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException 34 { 35 ((CallableStatement)_statement).registerOutParameter(parameterIndex, sqlType, scale); 36 } 37 38 public boolean wasNull() throws SQLException 39 { 40 return ((CallableStatement)_statement).wasNull(); 41 } 42 43 public String getString(int parameterIndex) throws SQLException 44 { 45 return ((CallableStatement)_statement).getString(parameterIndex); 46 } 47 48 public boolean getBoolean(int parameterIndex) throws SQLException 49 { 50 return ((CallableStatement)_statement).getBoolean(parameterIndex); 51 } 52 53 public byte getByte(int parameterIndex) throws SQLException 54 { 55 return ((CallableStatement)_statement).getByte(parameterIndex); 56 } 57 58 public short getShort(int parameterIndex) throws SQLException 59 { 60 return ((CallableStatement)_statement).getShort(parameterIndex); 61 } 62 63 public int getInt(int parameterIndex) throws SQLException 64 { 65 return ((CallableStatement)_statement).getInt(parameterIndex); 66 } 67 68 public long getLong(int parameterIndex) throws SQLException 69 { 70 return ((CallableStatement)_statement).getLong(parameterIndex); 71 } 72 73 public float getFloat(int parameterIndex) throws SQLException 74 { 75 return ((CallableStatement)_statement).getFloat(parameterIndex); 76 } 77 78 public double getDouble(int parameterIndex) throws SQLException 79 { 80 return ((CallableStatement)_statement).getDouble(parameterIndex); 81 } 82 83 public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException 84 { 85 return ((CallableStatement)_statement).getBigDecimal(parameterIndex, scale); 86 } 87 88 public byte[] getBytes(int parameterIndex) throws SQLException 89 { 90 return ((CallableStatement)_statement).getBytes(parameterIndex); 91 } 92 93 public Date getDate(int parameterIndex) throws SQLException 94 { 95 return ((CallableStatement)_statement).getDate(parameterIndex); 96 } 97 98 public Time getTime(int parameterIndex) throws SQLException 99 { 100 return ((CallableStatement)_statement).getTime(parameterIndex); 101 } 102 103 public Timestamp getTimestamp(int parameterIndex) throws SQLException 104 { 105 return ((CallableStatement)_statement).getTimestamp(parameterIndex); 106 } 107 108 public Object getObject(int parameterIndex) throws SQLException 109 { 110 return ((CallableStatement)_statement).getObject(parameterIndex); 111 } 112 113 public BigDecimal getBigDecimal(int parameterIndex) throws SQLException 114 { 115 return ((CallableStatement)_statement).getBigDecimal(parameterIndex); 116 } 117 118 public Object getObject(int i, Map map) throws SQLException 119 { 120 return ((CallableStatement)_statement).getObject(i, map); 121 } 122 123 public Ref getRef(int i) throws SQLException 124 { 125 return ((CallableStatement)_statement).getRef(i); 126 } 127 128 public Blob getBlob(int i) throws SQLException 129 { 130 return ((CallableStatement)_statement).getBlob(i); 131 } 132 133 public Clob getClob(int i) throws SQLException 134 { 135 return ((CallableStatement)_statement).getClob(i); 136 } 137 138 public Array getArray(int i) throws SQLException 139 { 140 return ((CallableStatement)_statement).getArray(i); 141 } 142 143 public Date getDate(int parameterIndex, Calendar cal) throws SQLException 144 { 145 return ((CallableStatement)_statement).getDate(parameterIndex, cal); 146 } 147 148 public Time getTime(int parameterIndex, Calendar cal) throws SQLException 149 { 150 return ((CallableStatement)_statement).getTime(parameterIndex, cal); 151 } 152 153 public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException 154 { 155 return ((CallableStatement)_statement).getTimestamp(parameterIndex, cal); 156 } 157 158 public void registerOutParameter(int paramIndex, int sqlType, String typeName) throws SQLException 159 { 160 ((CallableStatement)_statement).registerOutParameter(paramIndex, sqlType, typeName); 161 } 162 163 public void registerOutParameter(String parameterName, int sqlType) throws SQLException 164 { 165 ((CallableStatement)_statement).registerOutParameter(parameterName, sqlType); 166 } 167 168 public void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLException 169 { 170 ((CallableStatement)_statement).registerOutParameter(parameterName, sqlType, scale); 171 } 172 173 public void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLException 174 { 175 ((CallableStatement)_statement).registerOutParameter(parameterName, sqlType, typeName); 176 } 177 178 public URL getURL(int parameterIndex) throws SQLException 179 { 180 return ((CallableStatement)_statement).getURL(parameterIndex); 181 } 182 183 public void setURL(String parameterName, URL val) throws SQLException 184 { 185 ((CallableStatement)_statement).setURL(parameterName, val); 186 } 187 188 public void setNull(String parameterName, int sqlType) throws SQLException 189 { 190 ((CallableStatement)_statement).setNull(parameterName, sqlType); 191 } 192 193 public void setBoolean(String parameterName, boolean x) throws SQLException 194 { 195 ((CallableStatement)_statement).setBoolean(parameterName, x); 196 } 197 198 public void setByte(String parameterName, byte x) throws SQLException 199 { 200 ((CallableStatement)_statement).setByte(parameterName, x); 201 } 202 203 public void setShort(String parameterName, short x) throws SQLException 204 { 205 ((CallableStatement)_statement).setShort(parameterName, x); 206 } 207 208 public void setInt(String parameterName, int x) throws SQLException 209 { 210 ((CallableStatement)_statement).setInt(parameterName, x); 211 } 212 213 public void setLong(String parameterName, long x) throws SQLException 214 { 215 ((CallableStatement)_statement).setLong(parameterName, x); 216 } 217 218 public void setFloat(String parameterName, float x) throws SQLException 219 { 220 ((CallableStatement)_statement).setFloat(parameterName, x); 221 } 222 223 public void setDouble(String parameterName, double x) throws SQLException 224 { 225 ((CallableStatement)_statement).setDouble(parameterName, x); 226 } 227 228 public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException 229 { 230 ((CallableStatement)_statement).setBigDecimal(parameterName, x); 231 } 232 233 public void setString(String parameterName, String x) throws SQLException 234 { 235 ((CallableStatement)_statement).setString(parameterName, x); 236 } 237 238 public void setBytes(String parameterName, byte x[]) throws SQLException 239 { 240 ((CallableStatement)_statement).setBytes(parameterName, x); 241 } 242 243 public void setDate(String parameterName, Date x) throws SQLException 244 { 245 ((CallableStatement)_statement).setDate(parameterName, x); 246 } 247 248 public void setTime(String parameterName, Time x) throws SQLException 249 { 250 ((CallableStatement)_statement).setTime(parameterName, x); 251 } 252 253 public void setTimestamp(String parameterName, Timestamp x) throws SQLException 254 { 255 ((CallableStatement)_statement).setTimestamp(parameterName, x); 256 } 257 258 public void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException 259 { 260 ((CallableStatement)_statement).setAsciiStream(parameterName, x, length); 261 } 262 263 public void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException 264 { 265 ((CallableStatement)_statement).setBinaryStream(parameterName, x, length); 266 } 267 268 public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException 269 { 270 ((CallableStatement)_statement).setObject(parameterName, x, targetSqlType, scale); 271 } 272 273 public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException 274 { 275 ((CallableStatement)_statement).setObject(parameterName, x, targetSqlType); 276 } 277 278 public void setObject(String parameterName, Object x) throws SQLException 279 { 280 ((CallableStatement)_statement).setObject(parameterName, x); 281 } 282 283 public void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException 284 { 285 ((CallableStatement)_statement).setCharacterStream(parameterName, reader, length); 286 } 287 288 public void setDate(String parameterName, Date x, Calendar cal) throws SQLException 289 { 290 ((CallableStatement)_statement).setDate(parameterName, x, cal); 291 } 292 293 public void setTime(String parameterName, Time x, Calendar cal) throws SQLException 294 { 295 ((CallableStatement)_statement).setTime(parameterName, x, cal); 296 } 297 298 public void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException 299 { 300 ((CallableStatement)_statement).setTimestamp(parameterName, x, cal); 301 } 302 303 public void setNull(String parameterName, int sqlType, String typeName) throws SQLException 304 { 305 ((CallableStatement)_statement).setNull(parameterName, sqlType, typeName); 306 } 307 308 public String getString(String parameterName) throws SQLException 309 { 310 return ((CallableStatement)_statement).getString(parameterName); 311 } 312 313 public boolean getBoolean(String parameterName) throws SQLException 314 { 315 return ((CallableStatement)_statement).getBoolean(parameterName); 316 } 317 318 public byte getByte(String parameterName) throws SQLException 319 { 320 return ((CallableStatement)_statement).getByte(parameterName); 321 } 322 323 public short getShort(String parameterName) throws SQLException 324 { 325 return ((CallableStatement)_statement).getShort(parameterName); 326 } 327 328 public int getInt(String parameterName) throws SQLException 329 { 330 return ((CallableStatement)_statement).getInt(parameterName); 331 } 332 333 public long getLong(String parameterName) throws SQLException 334 { 335 return ((CallableStatement)_statement).getLong(parameterName); 336 } 337 338 public float getFloat(String parameterName) throws SQLException 339 { 340 return ((CallableStatement)_statement).getFloat(parameterName); 341 } 342 343 public double getDouble(String parameterName) throws SQLException 344 { 345 return ((CallableStatement)_statement).getDouble(parameterName); 346 } 347 348 public byte[] getBytes(String parameterName) throws SQLException 349 { 350 return ((CallableStatement)_statement).getBytes(parameterName); 351 } 352 353 public Date getDate(String parameterName) throws SQLException 354 { 355 return ((CallableStatement)_statement).getDate(parameterName); 356 } 357 358 public Time getTime(String parameterName) throws SQLException 359 { 360 return ((CallableStatement)_statement).getTime(parameterName); 361 } 362 363 public Timestamp getTimestamp(String parameterName) throws SQLException 364 { 365 return ((CallableStatement)_statement).getTimestamp(parameterName); 366 } 367 368 public Object getObject(String parameterName) throws SQLException 369 { 370 return ((CallableStatement)_statement).getObject(parameterName); 371 } 372 373 public BigDecimal getBigDecimal(String parameterName) throws SQLException 374 { 375 return ((CallableStatement)_statement).getBigDecimal(parameterName); 376 } 377 378 public Object getObject(String parameterName, Map map) throws SQLException 379 { 380 return ((CallableStatement)_statement).getObject(parameterName); 381 } 382 383 public Ref getRef(String parameterName) throws SQLException 384 { 385 return ((CallableStatement)_statement).getRef(parameterName); 386 } 387 388 public Blob getBlob(String parameterName) throws SQLException 389 { 390 return ((CallableStatement)_statement).getBlob(parameterName); 391 } 392 393 public Clob getClob(String parameterName) throws SQLException 394 { 395 return ((CallableStatement)_statement).getClob(parameterName); 396 } 397 398 public Array getArray(String parameterName) throws SQLException 399 { 400 return ((CallableStatement)_statement).getArray(parameterName); 401 } 402 403 public Date getDate(String parameterName, Calendar cal) throws SQLException 404 { 405 return ((CallableStatement)_statement).getDate(parameterName, cal); 406 } 407 408 public Time getTime(String parameterName, Calendar cal) throws SQLException 409 { 410 return ((CallableStatement)_statement).getTime(parameterName, cal); 411 } 412 413 public Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException 414 { 415 return ((CallableStatement)_statement).getTimestamp(parameterName, cal); 416 } 417 418 public URL getURL(String parameterName) throws SQLException 419 { 420 return ((CallableStatement)_statement).getURL(parameterName); 421 } 422 }