1 package com.imcode.db.mock; 2 3 import org.apache.commons.lang.NotImplementedException; 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.*; 10 import java.util.Calendar; 11 import java.util.Map; 12 13 public class MockResultSet implements ResultSet { 14 15 Object[][] rows ; 16 int rowIndex = -1 ; 17 18 public MockResultSet(Object[][] objects) { 19 rows = objects ; 20 } 21 22 public boolean next() throws SQLException { 23 if ( rows.length - 1 == rowIndex ) { 24 return false ; 25 } 26 rowIndex++ ; 27 return true; 28 } 29 30 public void close() throws SQLException { 31 } 32 33 public boolean wasNull() throws SQLException { 34 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.wasNull"); 35 } 36 37 public String getString(int columnIndex) throws SQLException { 38 Object object = getObject(columnIndex); 39 if (null == object) { 40 return null ; 41 } 42 if (!(object instanceof String)) { 43 return ""+object ; 44 } 45 return (String)object; 46 } 47 48 public boolean getBoolean(int columnIndex) throws SQLException { 49 Object object = getObject(columnIndex); 50 if (null == object) { 51 return false ; 52 } 53 return ((Boolean)object).booleanValue() ; 54 } 55 56 public byte getByte(int columnIndex) throws SQLException { 57 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getByte"); 58 } 59 60 public short getShort(int columnIndex) throws SQLException { 61 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getShort"); 62 } 63 64 public int getInt(int columnIndex) throws SQLException { 65 return ((Number)getObject(columnIndex)).intValue() ; 66 } 67 68 public long getLong(int columnIndex) throws SQLException { 69 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getLong"); 70 } 71 72 public float getFloat(int columnIndex) throws SQLException { 73 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getFloat"); 74 } 75 76 public double getDouble(int columnIndex) throws SQLException { 77 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDouble"); 78 } 79 80 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { 81 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBigDecimal"); 82 } 83 84 public byte[] getBytes(int columnIndex) throws SQLException { 85 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBytes"); 86 } 87 88 public Date getDate(int columnIndex) throws SQLException { 89 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDate"); 90 } 91 92 public Time getTime(int columnIndex) throws SQLException { 93 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTime"); 94 } 95 96 public Timestamp getTimestamp(int columnIndex) throws SQLException { 97 Date date = (Date) getObject(columnIndex); 98 if (null == date) { 99 return null ; 100 } 101 return new Timestamp(date.getTime()); 102 } 103 104 public InputStream getAsciiStream(int columnIndex) throws SQLException { 105 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getAsciiStream"); 106 } 107 108 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 109 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getUnicodeStream"); 110 } 111 112 public InputStream getBinaryStream(int columnIndex) throws SQLException { 113 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBinaryStream"); 114 } 115 116 public String getString(String columnName) throws SQLException { 117 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getString"); 118 } 119 120 public boolean getBoolean(String columnName) throws SQLException { 121 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBoolean"); 122 } 123 124 public byte getByte(String columnName) throws SQLException { 125 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getByte"); 126 } 127 128 public short getShort(String columnName) throws SQLException { 129 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getShort"); 130 } 131 132 public int getInt(String columnName) throws SQLException { 133 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getInt"); 134 } 135 136 public long getLong(String columnName) throws SQLException { 137 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getLong"); 138 } 139 140 public float getFloat(String columnName) throws SQLException { 141 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getFloat"); 142 } 143 144 public double getDouble(String columnName) throws SQLException { 145 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDouble"); 146 } 147 148 149 public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { 150 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBigDecimal"); 151 } 152 153 public byte[] getBytes(String columnName) throws SQLException { 154 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBytes"); 155 } 156 157 public Date getDate(String columnName) throws SQLException { 158 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDate"); 159 } 160 161 public Time getTime(String columnName) throws SQLException { 162 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTime"); 163 } 164 165 public Timestamp getTimestamp(String columnName) throws SQLException { 166 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTimestamp"); 167 } 168 169 public InputStream getAsciiStream(String columnName) throws SQLException { 170 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getAsciiStream"); 171 } 172 173 174 public InputStream getUnicodeStream(String columnName) throws SQLException { 175 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getUnicodeStream"); 176 } 177 178 public InputStream getBinaryStream(String columnName) throws SQLException { 179 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBinaryStream"); 180 } 181 182 public SQLWarning getWarnings() throws SQLException { 183 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getWarnings"); 184 } 185 186 public void clearWarnings() throws SQLException { 187 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.clearWarnings"); 188 } 189 190 public String getCursorName() throws SQLException { 191 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getCursorName"); 192 } 193 194 public ResultSetMetaData getMetaData() throws SQLException { 195 return new ResultSetMetaData() { 196 public int getColumnCount() { 197 if ( 0 == rows.length ) { 198 return 0 ; 199 } 200 return rows[0].length ; 201 } 202 203 public boolean isAutoIncrement(int column) throws SQLException { 204 throw new NotImplementedException(".isAutoIncrement"); 205 } 206 207 public boolean isCaseSensitive(int column) throws SQLException { 208 throw new NotImplementedException(".isCaseSensitive"); 209 } 210 211 public boolean isSearchable(int column) throws SQLException { 212 throw new NotImplementedException(".isSearchable"); 213 } 214 215 public boolean isCurrency(int column) throws SQLException { 216 throw new NotImplementedException(".isCurrency"); 217 } 218 219 public int isNullable(int column) throws SQLException { 220 throw new NotImplementedException(".isNullable"); 221 } 222 223 public boolean isSigned(int column) throws SQLException { 224 throw new NotImplementedException(".isSigned"); 225 } 226 227 public int getColumnDisplaySize(int column) throws SQLException { 228 throw new NotImplementedException(".getColumnDisplaySize"); 229 } 230 231 public String getColumnLabel(int column) throws SQLException { 232 throw new NotImplementedException(".getColumnLabel"); 233 } 234 235 public String getColumnName(int column) throws SQLException { 236 throw new NotImplementedException(".getColumnName"); 237 } 238 239 public String getSchemaName(int column) throws SQLException { 240 throw new NotImplementedException(".getSchemaName"); 241 } 242 243 public int getPrecision(int column) throws SQLException { 244 throw new NotImplementedException(".getPrecision"); 245 } 246 247 public int getScale(int column) throws SQLException { 248 throw new NotImplementedException(".getScale"); 249 } 250 251 public String getTableName(int column) throws SQLException { 252 throw new NotImplementedException(".getTableName"); 253 } 254 255 public String getCatalogName(int column) throws SQLException { 256 throw new NotImplementedException(".getCatalogName"); 257 } 258 259 public int getColumnType(int column) throws SQLException { 260 throw new NotImplementedException(".getColumnType"); 261 } 262 263 public String getColumnTypeName(int column) throws SQLException { 264 throw new NotImplementedException(".getColumnTypeName"); 265 } 266 267 public boolean isReadOnly(int column) throws SQLException { 268 throw new NotImplementedException(".isReadOnly"); 269 } 270 271 public boolean isWritable(int column) throws SQLException { 272 throw new NotImplementedException(".isWritable"); 273 } 274 275 public boolean isDefinitelyWritable(int column) throws SQLException { 276 throw new NotImplementedException(".isDefinitelyWritable"); 277 } 278 279 public String getColumnClassName(int column) throws SQLException { 280 throw new NotImplementedException(".getColumnClassName"); 281 } 282 }; 283 } 284 285 public Object getObject(int columnIndex) throws SQLException { 286 if (rowIndex == -1) { 287 throw new IllegalStateException("Did you forget to call ResultSet.next() ?") ; 288 } 289 return rows[rowIndex][columnIndex-1] ; 290 } 291 292 public Object getObject(String columnName) throws SQLException { 293 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getObject"); 294 } 295 296 public int findColumn(String columnName) throws SQLException { 297 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.findColumn"); 298 } 299 300 public Reader getCharacterStream(int columnIndex) throws SQLException { 301 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getCharacterStream"); 302 } 303 304 public Reader getCharacterStream(String columnName) throws SQLException { 305 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getCharacterStream"); 306 } 307 308 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 309 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBigDecimal"); 310 } 311 312 public BigDecimal getBigDecimal(String columnName) throws SQLException { 313 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBigDecimal"); 314 } 315 316 public boolean isBeforeFirst() throws SQLException { 317 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.isBeforeFirst"); 318 } 319 320 public boolean isAfterLast() throws SQLException { 321 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.isAfterLast"); 322 } 323 324 public boolean isFirst() throws SQLException { 325 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.isFirst"); 326 } 327 328 public boolean isLast() throws SQLException { 329 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.isLast"); 330 } 331 332 public void beforeFirst() throws SQLException { 333 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.beforeFirst"); 334 } 335 336 public void afterLast() throws SQLException { 337 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.afterLast"); 338 } 339 340 public boolean first() throws SQLException { 341 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.first"); 342 } 343 344 public boolean last() throws SQLException { 345 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.last"); 346 } 347 348 public int getRow() throws SQLException { 349 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getRow"); 350 } 351 352 public boolean absolute(int row) throws SQLException { 353 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.absolute"); 354 } 355 356 public boolean relative(int rows) throws SQLException { 357 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.relative"); 358 } 359 360 public boolean previous() throws SQLException { 361 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.previous"); 362 } 363 364 public void setFetchDirection(int direction) throws SQLException { 365 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.setFetchDirection"); 366 } 367 368 public int getFetchDirection() throws SQLException { 369 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getFetchDirection"); 370 } 371 372 public void setFetchSize(int rows) throws SQLException { 373 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.setFetchSize"); 374 } 375 376 public int getFetchSize() throws SQLException { 377 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getFetchSize"); 378 } 379 380 public int getType() throws SQLException { 381 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getType"); 382 } 383 384 public int getConcurrency() throws SQLException { 385 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getConcurrency"); 386 } 387 388 public boolean rowUpdated() throws SQLException { 389 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.rowUpdated"); 390 } 391 392 public boolean rowInserted() throws SQLException { 393 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.rowInserted"); 394 } 395 396 public boolean rowDeleted() throws SQLException { 397 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.rowDeleted"); 398 } 399 400 public void updateNull(int columnIndex) throws SQLException { 401 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateNull"); 402 } 403 404 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 405 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBoolean"); 406 } 407 408 public void updateByte(int columnIndex, byte x) throws SQLException { 409 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateByte"); 410 } 411 412 public void updateShort(int columnIndex, short x) throws SQLException { 413 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateShort"); 414 } 415 416 public void updateInt(int columnIndex, int x) throws SQLException { 417 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateInt"); 418 } 419 420 public void updateLong(int columnIndex, long x) throws SQLException { 421 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateLong"); 422 } 423 424 public void updateFloat(int columnIndex, float x) throws SQLException { 425 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateFloat"); 426 } 427 428 public void updateDouble(int columnIndex, double x) throws SQLException { 429 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateDouble"); 430 } 431 432 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { 433 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBigDecimal"); 434 } 435 436 public void updateString(int columnIndex, String x) throws SQLException { 437 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateString"); 438 } 439 440 public void updateBytes(int columnIndex, byte x[]) throws SQLException { 441 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBytes"); 442 } 443 444 public void updateDate(int columnIndex, Date x) throws SQLException { 445 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateDate"); 446 } 447 448 public void updateTime(int columnIndex, Time x) throws SQLException { 449 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateTime"); 450 } 451 452 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { 453 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateTimestamp"); 454 } 455 456 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { 457 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateAsciiStream"); 458 } 459 460 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { 461 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBinaryStream"); 462 } 463 464 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { 465 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateCharacterStream"); 466 } 467 468 public void updateObject(int columnIndex, Object x, int scale) throws SQLException { 469 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateObject"); 470 } 471 472 public void updateObject(int columnIndex, Object x) throws SQLException { 473 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateObject"); 474 } 475 476 public void updateNull(String columnName) throws SQLException { 477 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateNull"); 478 } 479 480 public void updateBoolean(String columnName, boolean x) throws SQLException { 481 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBoolean"); 482 } 483 484 public void updateByte(String columnName, byte x) throws SQLException { 485 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateByte"); 486 } 487 488 public void updateShort(String columnName, short x) throws SQLException { 489 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateShort"); 490 } 491 492 public void updateInt(String columnName, int x) throws SQLException { 493 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateInt"); 494 } 495 496 public void updateLong(String columnName, long x) throws SQLException { 497 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateLong"); 498 } 499 500 public void updateFloat(String columnName, float x) throws SQLException { 501 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateFloat"); 502 } 503 504 public void updateDouble(String columnName, double x) throws SQLException { 505 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateDouble"); 506 } 507 508 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { 509 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBigDecimal"); 510 } 511 512 public void updateString(String columnName, String x) throws SQLException { 513 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateString"); 514 } 515 516 public void updateBytes(String columnName, byte x[]) throws SQLException { 517 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBytes"); 518 } 519 520 public void updateDate(String columnName, Date x) throws SQLException { 521 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateDate"); 522 } 523 524 public void updateTime(String columnName, Time x) throws SQLException { 525 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateTime"); 526 } 527 528 public void updateTimestamp(String columnName, Timestamp x) throws SQLException { 529 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateTimestamp"); 530 } 531 532 public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { 533 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateAsciiStream"); 534 } 535 536 public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { 537 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBinaryStream"); 538 } 539 540 public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { 541 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateCharacterStream"); 542 } 543 544 public void updateObject(String columnName, Object x, int scale) throws SQLException { 545 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateObject"); 546 } 547 548 public void updateObject(String columnName, Object x) throws SQLException { 549 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateObject"); 550 } 551 552 public void insertRow() throws SQLException { 553 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.insertRow"); 554 } 555 556 public void updateRow() throws SQLException { 557 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateRow"); 558 } 559 560 public void deleteRow() throws SQLException { 561 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.deleteRow"); 562 } 563 564 public void refreshRow() throws SQLException { 565 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.refreshRow"); 566 } 567 568 public void cancelRowUpdates() throws SQLException { 569 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.cancelRowUpdates"); 570 } 571 572 public void moveToInsertRow() throws SQLException { 573 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.moveToInsertRow"); 574 } 575 576 public void moveToCurrentRow() throws SQLException { 577 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.moveToCurrentRow"); 578 } 579 580 public Statement getStatement() throws SQLException { 581 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getStatement"); 582 } 583 584 public Object getObject(int i, Map map) throws SQLException { 585 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getObject"); 586 } 587 588 public Ref getRef(int i) throws SQLException { 589 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getRef"); 590 } 591 592 public Blob getBlob(int i) throws SQLException { 593 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBlob"); 594 } 595 596 public Clob getClob(int i) throws SQLException { 597 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getClob"); 598 } 599 600 public Array getArray(int i) throws SQLException { 601 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getArray"); 602 } 603 604 public Object getObject(String colName, Map map) throws SQLException { 605 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getObject"); 606 } 607 608 public Ref getRef(String colName) throws SQLException { 609 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getRef"); 610 } 611 612 public Blob getBlob(String colName) throws SQLException { 613 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getBlob"); 614 } 615 616 public Clob getClob(String colName) throws SQLException { 617 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getClob"); 618 } 619 620 public Array getArray(String colName) throws SQLException { 621 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getArray"); 622 } 623 624 public Date getDate(int columnIndex, Calendar cal) throws SQLException { 625 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDate"); 626 } 627 628 public Date getDate(String columnName, Calendar cal) throws SQLException { 629 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getDate"); 630 } 631 632 public Time getTime(int columnIndex, Calendar cal) throws SQLException { 633 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTime"); 634 } 635 636 public Time getTime(String columnName, Calendar cal) throws SQLException { 637 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTime"); 638 } 639 640 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { 641 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTimestamp"); 642 } 643 644 public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { 645 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getTimestamp"); 646 } 647 648 public URL getURL(int columnIndex) throws SQLException { 649 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getURL"); 650 } 651 652 public URL getURL(String columnName) throws SQLException { 653 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.getURL"); 654 } 655 656 public void updateRef(int columnIndex, Ref x) throws SQLException { 657 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateRef"); 658 } 659 660 public void updateRef(String columnName, Ref x) throws SQLException { 661 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateRef"); 662 } 663 664 public void updateBlob(int columnIndex, Blob x) throws SQLException { 665 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBlob"); 666 } 667 668 public void updateBlob(String columnName, Blob x) throws SQLException { 669 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateBlob"); 670 } 671 672 public void updateClob(int columnIndex, Clob x) throws SQLException { 673 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateClob"); 674 } 675 676 public void updateClob(String columnName, Clob x) throws SQLException { 677 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateClob"); 678 } 679 680 public void updateArray(int columnIndex, Array x) throws SQLException { 681 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateArray"); 682 } 683 684 public void updateArray(String columnName, Array x) throws SQLException { 685 throw new NotImplementedException("imcode.server.db.impl.MockResultSet.updateArray"); 686 } 687 }