1 package com.imcode.db.jdbc; 2 3 import java.sql.*; 4 import java.io.InputStream; 5 import java.io.Reader; 6 import java.math.BigDecimal; 7 import java.util.Calendar; 8 import java.util.Map; 9 import java.net.URL; 10 11 public class ResultSetWrapper implements ResultSet { 12 private ResultSet resultSet ; 13 14 public ResultSetWrapper(ResultSet resultSet) { 15 this.resultSet = resultSet; 16 } 17 18 public boolean absolute(int row) throws SQLException { 19 return resultSet.absolute(row); 20 } 21 22 public void afterLast() throws SQLException { 23 resultSet.afterLast(); 24 } 25 26 public void beforeFirst() throws SQLException { 27 resultSet.beforeFirst(); 28 } 29 30 public void cancelRowUpdates() throws SQLException { 31 resultSet.cancelRowUpdates(); 32 } 33 34 public void clearWarnings() throws SQLException { 35 resultSet.clearWarnings(); 36 } 37 38 public void close() throws SQLException { 39 resultSet.close(); 40 } 41 42 public void deleteRow() throws SQLException { 43 resultSet.deleteRow(); 44 } 45 46 public int findColumn(String columnName) throws SQLException { 47 return resultSet.findColumn(columnName); 48 } 49 50 public boolean first() throws SQLException { 51 return resultSet.first(); 52 } 53 54 public Array getArray(String colName) throws SQLException { 55 return resultSet.getArray(colName); 56 } 57 58 public Array getArray(int i) throws SQLException { 59 return resultSet.getArray(i); 60 } 61 62 public InputStream getAsciiStream(int columnIndex) throws SQLException { 63 return resultSet.getAsciiStream(columnIndex); 64 } 65 66 public InputStream getAsciiStream(String columnName) throws SQLException { 67 return resultSet.getAsciiStream(columnName); 68 } 69 70 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 71 return resultSet.getBigDecimal(columnIndex); 72 } 73 74 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { 75 return resultSet.getBigDecimal(columnIndex, scale); 76 } 77 78 public BigDecimal getBigDecimal(String columnName) throws SQLException { 79 return resultSet.getBigDecimal(columnName); 80 } 81 82 public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { 83 return resultSet.getBigDecimal(columnName, scale); 84 } 85 86 public InputStream getBinaryStream(int columnIndex) throws SQLException { 87 return resultSet.getBinaryStream(columnIndex); 88 } 89 90 public InputStream getBinaryStream(String columnName) throws SQLException { 91 return resultSet.getBinaryStream(columnName); 92 } 93 94 public Blob getBlob(String colName) throws SQLException { 95 return resultSet.getBlob(colName); 96 } 97 98 public Blob getBlob(int i) throws SQLException { 99 return resultSet.getBlob(i); 100 } 101 102 public boolean getBoolean(int columnIndex) throws SQLException { 103 return resultSet.getBoolean(columnIndex); 104 } 105 106 public boolean getBoolean(String columnName) throws SQLException { 107 return resultSet.getBoolean(columnName); 108 } 109 110 public byte getByte(int columnIndex) throws SQLException { 111 return resultSet.getByte(columnIndex); 112 } 113 114 public byte getByte(String columnName) throws SQLException { 115 return resultSet.getByte(columnName); 116 } 117 118 public byte[] getBytes(int columnIndex) throws SQLException { 119 return resultSet.getBytes(columnIndex); 120 } 121 122 public byte[] getBytes(String columnName) throws SQLException { 123 return resultSet.getBytes(columnName); 124 } 125 126 public Reader getCharacterStream(int columnIndex) throws SQLException { 127 return resultSet.getCharacterStream(columnIndex); 128 } 129 130 public Reader getCharacterStream(String columnName) throws SQLException { 131 return resultSet.getCharacterStream(columnName); 132 } 133 134 public Clob getClob(String colName) throws SQLException { 135 return resultSet.getClob(colName); 136 } 137 138 public Clob getClob(int i) throws SQLException { 139 return resultSet.getClob(i); 140 } 141 142 public int getConcurrency() throws SQLException { 143 return resultSet.getConcurrency(); 144 } 145 146 public String getCursorName() throws SQLException { 147 return resultSet.getCursorName(); 148 } 149 150 public Date getDate(int columnIndex) throws SQLException { 151 return resultSet.getDate(columnIndex); 152 } 153 154 public Date getDate(int columnIndex, Calendar cal) throws SQLException { 155 return resultSet.getDate(columnIndex, cal); 156 } 157 158 public Date getDate(String columnName) throws SQLException { 159 return resultSet.getDate(columnName); 160 } 161 162 public Date getDate(String columnName, Calendar cal) throws SQLException { 163 return resultSet.getDate(columnName, cal); 164 } 165 166 public double getDouble(int columnIndex) throws SQLException { 167 return resultSet.getDouble(columnIndex); 168 } 169 170 public double getDouble(String columnName) throws SQLException { 171 return resultSet.getDouble(columnName); 172 } 173 174 public int getFetchDirection() throws SQLException { 175 return resultSet.getFetchDirection(); 176 } 177 178 public int getFetchSize() throws SQLException { 179 return resultSet.getFetchSize(); 180 } 181 182 public float getFloat(int columnIndex) throws SQLException { 183 return resultSet.getFloat(columnIndex); 184 } 185 186 public float getFloat(String columnName) throws SQLException { 187 return resultSet.getFloat(columnName); 188 } 189 190 public int getInt(int columnIndex) throws SQLException { 191 return resultSet.getInt(columnIndex); 192 } 193 194 public int getInt(String columnName) throws SQLException { 195 return resultSet.getInt(columnName); 196 } 197 198 public long getLong(int columnIndex) throws SQLException { 199 return resultSet.getLong(columnIndex); 200 } 201 202 public long getLong(String columnName) throws SQLException { 203 return resultSet.getLong(columnName); 204 } 205 206 public ResultSetMetaData getMetaData() throws SQLException { 207 return resultSet.getMetaData(); 208 } 209 210 public Object getObject(String colName, Map map) throws SQLException { 211 return resultSet.getObject(colName, map); 212 } 213 214 public Object getObject(int columnIndex) throws SQLException { 215 return resultSet.getObject(columnIndex); 216 } 217 218 public Object getObject(String columnName) throws SQLException { 219 return resultSet.getObject(columnName); 220 } 221 222 public Object getObject(int i, Map map) throws SQLException { 223 return resultSet.getObject(i, map); 224 } 225 226 public Ref getRef(String colName) throws SQLException { 227 return resultSet.getRef(colName); 228 } 229 230 public Ref getRef(int i) throws SQLException { 231 return resultSet.getRef(i); 232 } 233 234 public int getRow() throws SQLException { 235 return resultSet.getRow(); 236 } 237 238 public short getShort(int columnIndex) throws SQLException { 239 return resultSet.getShort(columnIndex); 240 } 241 242 public short getShort(String columnName) throws SQLException { 243 return resultSet.getShort(columnName); 244 } 245 246 public Statement getStatement() throws SQLException { 247 return resultSet.getStatement(); 248 } 249 250 public String getString(int columnIndex) throws SQLException { 251 return resultSet.getString(columnIndex); 252 } 253 254 public String getString(String columnName) throws SQLException { 255 return resultSet.getString(columnName); 256 } 257 258 public Time getTime(int columnIndex) throws SQLException { 259 return resultSet.getTime(columnIndex); 260 } 261 262 public Time getTime(int columnIndex, Calendar cal) throws SQLException { 263 return resultSet.getTime(columnIndex, cal); 264 } 265 266 public Time getTime(String columnName) throws SQLException { 267 return resultSet.getTime(columnName); 268 } 269 270 public Time getTime(String columnName, Calendar cal) throws SQLException { 271 return resultSet.getTime(columnName, cal); 272 } 273 274 public Timestamp getTimestamp(int columnIndex) throws SQLException { 275 return resultSet.getTimestamp(columnIndex); 276 } 277 278 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { 279 return resultSet.getTimestamp(columnIndex, cal); 280 } 281 282 public Timestamp getTimestamp(String columnName) throws SQLException { 283 return resultSet.getTimestamp(columnName); 284 } 285 286 public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { 287 return resultSet.getTimestamp(columnName, cal); 288 } 289 290 public int getType() throws SQLException { 291 return resultSet.getType(); 292 } 293 294 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 295 return resultSet.getUnicodeStream(columnIndex); 296 } 297 298 public InputStream getUnicodeStream(String columnName) throws SQLException { 299 return resultSet.getUnicodeStream(columnName); 300 } 301 302 public URL getURL(int columnIndex) throws SQLException { 303 return resultSet.getURL(columnIndex); 304 } 305 306 public URL getURL(String columnName) throws SQLException { 307 return resultSet.getURL(columnName); 308 } 309 310 public SQLWarning getWarnings() throws SQLException { 311 return resultSet.getWarnings(); 312 } 313 314 public void insertRow() throws SQLException { 315 resultSet.insertRow(); 316 } 317 318 public boolean isAfterLast() throws SQLException { 319 return resultSet.isAfterLast(); 320 } 321 322 public boolean isBeforeFirst() throws SQLException { 323 return resultSet.isBeforeFirst(); 324 } 325 326 public boolean isFirst() throws SQLException { 327 return resultSet.isFirst(); 328 } 329 330 public boolean isLast() throws SQLException { 331 return resultSet.isLast(); 332 } 333 334 public boolean last() throws SQLException { 335 return resultSet.last(); 336 } 337 338 public void moveToCurrentRow() throws SQLException { 339 resultSet.moveToCurrentRow(); 340 } 341 342 public void moveToInsertRow() throws SQLException { 343 resultSet.moveToInsertRow(); 344 } 345 346 public boolean next() throws SQLException { 347 return resultSet.next(); 348 } 349 350 public boolean previous() throws SQLException { 351 return resultSet.previous(); 352 } 353 354 public void refreshRow() throws SQLException { 355 resultSet.refreshRow(); 356 } 357 358 public boolean relative(int rows) throws SQLException { 359 return resultSet.relative(rows); 360 } 361 362 public boolean rowDeleted() throws SQLException { 363 return resultSet.rowDeleted(); 364 } 365 366 public boolean rowInserted() throws SQLException { 367 return resultSet.rowInserted(); 368 } 369 370 public boolean rowUpdated() throws SQLException { 371 return resultSet.rowUpdated(); 372 } 373 374 public void setFetchDirection(int direction) throws SQLException { 375 resultSet.setFetchDirection(direction); 376 } 377 378 public void setFetchSize(int rows) throws SQLException { 379 resultSet.setFetchSize(rows); 380 } 381 382 public void updateArray(int columnIndex, Array x) throws SQLException { 383 resultSet.updateArray(columnIndex, x); 384 } 385 386 public void updateArray(String columnName, Array x) throws SQLException { 387 resultSet.updateArray(columnName, x); 388 } 389 390 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { 391 resultSet.updateAsciiStream(columnIndex, x, length); 392 } 393 394 public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { 395 resultSet.updateAsciiStream(columnName, x, length); 396 } 397 398 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { 399 resultSet.updateBigDecimal(columnIndex, x); 400 } 401 402 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { 403 resultSet.updateBigDecimal(columnName, x); 404 } 405 406 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { 407 resultSet.updateBinaryStream(columnIndex, x, length); 408 } 409 410 public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { 411 resultSet.updateBinaryStream(columnName, x, length); 412 } 413 414 public void updateBlob(int columnIndex, Blob x) throws SQLException { 415 resultSet.updateBlob(columnIndex, x); 416 } 417 418 public void updateBlob(String columnName, Blob x) throws SQLException { 419 resultSet.updateBlob(columnName, x); 420 } 421 422 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 423 resultSet.updateBoolean(columnIndex, x); 424 } 425 426 public void updateBoolean(String columnName, boolean x) throws SQLException { 427 resultSet.updateBoolean(columnName, x); 428 } 429 430 public void updateByte(int columnIndex, byte x) throws SQLException { 431 resultSet.updateByte(columnIndex, x); 432 } 433 434 public void updateByte(String columnName, byte x) throws SQLException { 435 resultSet.updateByte(columnName, x); 436 } 437 438 public void updateBytes(int columnIndex, byte[] x) throws SQLException { 439 resultSet.updateBytes(columnIndex, x); 440 } 441 442 public void updateBytes(String columnName, byte[] x) throws SQLException { 443 resultSet.updateBytes(columnName, x); 444 } 445 446 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { 447 resultSet.updateCharacterStream(columnIndex, x, length); 448 } 449 450 public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { 451 resultSet.updateCharacterStream(columnName, reader, length); 452 } 453 454 public void updateClob(int columnIndex, Clob x) throws SQLException { 455 resultSet.updateClob(columnIndex, x); 456 } 457 458 public void updateClob(String columnName, Clob x) throws SQLException { 459 resultSet.updateClob(columnName, x); 460 } 461 462 public void updateDate(int columnIndex, Date x) throws SQLException { 463 resultSet.updateDate(columnIndex, x); 464 } 465 466 public void updateDate(String columnName, Date x) throws SQLException { 467 resultSet.updateDate(columnName, x); 468 } 469 470 public void updateDouble(int columnIndex, double x) throws SQLException { 471 resultSet.updateDouble(columnIndex, x); 472 } 473 474 public void updateDouble(String columnName, double x) throws SQLException { 475 resultSet.updateDouble(columnName, x); 476 } 477 478 public void updateFloat(int columnIndex, float x) throws SQLException { 479 resultSet.updateFloat(columnIndex, x); 480 } 481 482 public void updateFloat(String columnName, float x) throws SQLException { 483 resultSet.updateFloat(columnName, x); 484 } 485 486 public void updateInt(int columnIndex, int x) throws SQLException { 487 resultSet.updateInt(columnIndex, x); 488 } 489 490 public void updateInt(String columnName, int x) throws SQLException { 491 resultSet.updateInt(columnName, x); 492 } 493 494 public void updateLong(int columnIndex, long x) throws SQLException { 495 resultSet.updateLong(columnIndex, x); 496 } 497 498 public void updateLong(String columnName, long x) throws SQLException { 499 resultSet.updateLong(columnName, x); 500 } 501 502 public void updateNull(int columnIndex) throws SQLException { 503 resultSet.updateNull(columnIndex); 504 } 505 506 public void updateNull(String columnName) throws SQLException { 507 resultSet.updateNull(columnName); 508 } 509 510 public void updateObject(int columnIndex, Object x) throws SQLException { 511 resultSet.updateObject(columnIndex, x); 512 } 513 514 public void updateObject(int columnIndex, Object x, int scale) throws SQLException { 515 resultSet.updateObject(columnIndex, x, scale); 516 } 517 518 public void updateObject(String columnName, Object x) throws SQLException { 519 resultSet.updateObject(columnName, x); 520 } 521 522 public void updateObject(String columnName, Object x, int scale) throws SQLException { 523 resultSet.updateObject(columnName, x, scale); 524 } 525 526 public void updateRef(int columnIndex, Ref x) throws SQLException { 527 resultSet.updateRef(columnIndex, x); 528 } 529 530 public void updateRef(String columnName, Ref x) throws SQLException { 531 resultSet.updateRef(columnName, x); 532 } 533 534 public void updateRow() throws SQLException { 535 resultSet.updateRow(); 536 } 537 538 public void updateShort(int columnIndex, short x) throws SQLException { 539 resultSet.updateShort(columnIndex, x); 540 } 541 542 public void updateShort(String columnName, short x) throws SQLException { 543 resultSet.updateShort(columnName, x); 544 } 545 546 public void updateString(int columnIndex, String x) throws SQLException { 547 resultSet.updateString(columnIndex, x); 548 } 549 550 public void updateString(String columnName, String x) throws SQLException { 551 resultSet.updateString(columnName, x); 552 } 553 554 public void updateTime(int columnIndex, Time x) throws SQLException { 555 resultSet.updateTime(columnIndex, x); 556 } 557 558 public void updateTime(String columnName, Time x) throws SQLException { 559 resultSet.updateTime(columnName, x); 560 } 561 562 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { 563 resultSet.updateTimestamp(columnIndex, x); 564 } 565 566 public void updateTimestamp(String columnName, Timestamp x) throws SQLException { 567 resultSet.updateTimestamp(columnName, x); 568 } 569 570 public boolean wasNull() throws SQLException { 571 return resultSet.wasNull(); 572 } 573 }