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