PageRenderTime 512ms CodeModel.GetById 111ms app.highlight 293ms RepoModel.GetById 99ms app.codeStats 1ms

/src/org/sqldroid/SqldroidResultSet.java

http://sqldroid.googlecode.com/
Java | 1314 lines | 1007 code | 286 blank | 21 comment | 5 complexity | 14464715e318fd64eedde2e989e8b889 MD5 | raw file
   1package org.sqldroid;
   2
   3import java.io.InputStream;
   4import java.io.Reader;
   5import java.math.BigDecimal;
   6import java.net.URL;
   7import java.sql.Array;
   8import java.sql.Blob;
   9import java.sql.Clob;
  10import java.sql.Date;
  11import java.sql.NClob;
  12import java.sql.Ref;
  13import java.sql.ResultSet;
  14import java.sql.ResultSetMetaData;
  15import java.sql.RowId;
  16import java.sql.SQLException;
  17import java.sql.SQLWarning;
  18import java.sql.SQLXML;
  19import java.sql.Statement;
  20import java.sql.Time;
  21import java.sql.Timestamp;
  22import java.util.Calendar;
  23import java.util.Map;
  24
  25import android.database.Cursor;
  26
  27public class SqldroidResultSet implements ResultSet {
  28    private final Cursor c;
  29    private int          lastColumnRead;
  30
  31    public SqldroidResultSet(Cursor c) {
  32        this.c = c;
  33    }
  34
  35    /**
  36     * convert JDBC columns index count (from one) to sqlite (from zero)
  37     * 
  38     * @param colID
  39     */
  40    private int ci(int colID) {
  41        return colID - 1;
  42    }
  43
  44    @Override
  45    public boolean absolute(int row) throws SQLException {
  46        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
  47                + DebugPrinter.getLineNumber());
  48        return false;
  49    }
  50
  51    @Override
  52    public void afterLast() throws SQLException {
  53        c.moveToLast();
  54        c.moveToNext();
  55
  56    }
  57
  58    @Override
  59    public void beforeFirst() throws SQLException {
  60        c.moveToFirst();
  61        c.moveToPrevious();
  62
  63    }
  64
  65    @Override
  66    public void cancelRowUpdates() throws SQLException {
  67        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
  68                + DebugPrinter.getLineNumber());
  69    }
  70
  71    @Override
  72    public void clearWarnings() throws SQLException {
  73        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
  74                + DebugPrinter.getLineNumber());
  75
  76    }
  77
  78    @Override
  79    public void close() throws SQLException {
  80        if (c != null && !c.isClosed()) {
  81            c.close();
  82        }
  83    }
  84
  85    @Override
  86    public void deleteRow() throws SQLException {
  87        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
  88                + DebugPrinter.getLineNumber());
  89
  90    }
  91
  92    @Override
  93    public int findColumn(String columnName) throws SQLException {
  94        return c.getColumnIndex(columnName);
  95    }
  96
  97    @Override
  98    public boolean first() throws SQLException {
  99        return c.moveToFirst();
 100    }
 101
 102    @Override
 103    public Array getArray(int colID) throws SQLException {
 104        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 105                + DebugPrinter.getLineNumber());
 106        return null;
 107    }
 108
 109    @Override
 110    public Array getArray(String colName) throws SQLException {
 111        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 112                + DebugPrinter.getLineNumber());
 113        return null;
 114    }
 115
 116    @Override
 117    public InputStream getAsciiStream(int colID) throws SQLException {
 118        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 119                + DebugPrinter.getLineNumber());
 120        return null;
 121    }
 122
 123    @Override
 124    public InputStream getAsciiStream(String columnName) throws SQLException {
 125        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 126                + DebugPrinter.getLineNumber());
 127        return null;
 128    }
 129
 130    @Override
 131    public BigDecimal getBigDecimal(int colID) throws SQLException {
 132        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 133                + DebugPrinter.getLineNumber());
 134        return null;
 135    }
 136
 137    @Override
 138    public BigDecimal getBigDecimal(String columnName) throws SQLException {
 139        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 140                + DebugPrinter.getLineNumber());
 141        return null;
 142    }
 143
 144    @Override
 145    public BigDecimal getBigDecimal(int colID, int scale) throws SQLException {
 146        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 147                + DebugPrinter.getLineNumber());
 148        return null;
 149    }
 150
 151    @Override
 152    public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
 153        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 154                + DebugPrinter.getLineNumber());
 155        return null;
 156    }
 157
 158    @Override
 159    public InputStream getBinaryStream(int colID) throws SQLException {
 160        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 161                + DebugPrinter.getLineNumber());
 162        return null;
 163    }
 164
 165    @Override
 166    public InputStream getBinaryStream(String columnName) throws SQLException {
 167        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 168                + DebugPrinter.getLineNumber());
 169        return null;
 170    }
 171
 172    @Override
 173    public Blob getBlob(int index) throws SQLException {
 174        lastColumnRead = index;
 175        byte[] b = c.getBlob(ci(index));
 176        return new SqldroidBlob(b);
 177    }
 178
 179    @Override
 180    public Blob getBlob(String columnName) throws SQLException {
 181        int index = c.getColumnIndex(columnName);
 182        lastColumnRead = index;
 183        return new SqldroidBlob(c.getBlob(index));
 184    }
 185
 186    @Override
 187    public boolean getBoolean(int index) throws SQLException {
 188        lastColumnRead = index;
 189        return c.getInt(ci(index)) != 0;
 190    }
 191
 192    @Override
 193    public boolean getBoolean(String columnName) throws SQLException {
 194        int index = c.getColumnIndex(columnName);
 195        lastColumnRead = index;
 196        return c.getInt(index) != 0;
 197    }
 198
 199    @Override
 200    public byte getByte(int index) throws SQLException {
 201        lastColumnRead = index;
 202        return (byte) c.getShort(ci(index));
 203    }
 204
 205    @Override
 206    public byte getByte(String columnName) throws SQLException {
 207        int index = c.getColumnIndex(columnName);
 208        lastColumnRead = index;
 209        return (byte) c.getShort(index);
 210    }
 211
 212    @Override
 213    public byte[] getBytes(int index) throws SQLException {
 214        lastColumnRead = index;
 215        return c.getBlob(ci(index));
 216    }
 217
 218    @Override
 219    public byte[] getBytes(String columnName) throws SQLException {
 220        int index = c.getColumnIndex(columnName);
 221        lastColumnRead = index;
 222        return c.getBlob(index);
 223    }
 224
 225    @Override
 226    public Reader getCharacterStream(int colID) throws SQLException {
 227        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 228                + DebugPrinter.getLineNumber());
 229        return null;
 230    }
 231
 232    @Override
 233    public Reader getCharacterStream(String columnName) throws SQLException {
 234        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 235                + DebugPrinter.getLineNumber());
 236        return null;
 237    }
 238
 239    @Override
 240    public Clob getClob(int colID) throws SQLException {
 241        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 242                + DebugPrinter.getLineNumber());
 243        return null;
 244    }
 245
 246    @Override
 247    public Clob getClob(String colName) throws SQLException {
 248        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 249                + DebugPrinter.getLineNumber());
 250        return null;
 251    }
 252
 253    @Override
 254    public int getConcurrency() throws SQLException {
 255        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 256                + DebugPrinter.getLineNumber());
 257        return 0;
 258    }
 259
 260    @Override
 261    public String getCursorName() throws SQLException {
 262        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 263                + DebugPrinter.getLineNumber());
 264        return null;
 265    }
 266
 267    @Override
 268    public Date getDate(int colID) throws SQLException {
 269        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 270                + DebugPrinter.getLineNumber());
 271        return null;
 272    }
 273
 274    @Override
 275    public Date getDate(String columnName) throws SQLException {
 276        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 277                + DebugPrinter.getLineNumber());
 278        return null;
 279    }
 280
 281    @Override
 282    public Date getDate(int colID, Calendar cal) throws SQLException {
 283        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 284                + DebugPrinter.getLineNumber());
 285        return null;
 286    }
 287
 288    @Override
 289    public Date getDate(String columnName, Calendar cal) throws SQLException {
 290        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 291                + DebugPrinter.getLineNumber());
 292        return null;
 293    }
 294
 295    @Override
 296    public double getDouble(int index) throws SQLException {
 297        lastColumnRead = index;
 298        return c.getDouble(ci(index));
 299    }
 300
 301    @Override
 302    public double getDouble(String columnName) throws SQLException {
 303        int index = c.getColumnIndex(columnName);
 304        lastColumnRead = index;
 305        return c.getDouble(index);
 306    }
 307
 308    @Override
 309    public int getFetchDirection() throws SQLException {
 310        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 311                + DebugPrinter.getLineNumber());
 312        return 0;
 313    }
 314
 315    @Override
 316    public int getFetchSize() throws SQLException {
 317        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 318                + DebugPrinter.getLineNumber());
 319        return 0;
 320    }
 321
 322    @Override
 323    public float getFloat(int index) throws SQLException {
 324        lastColumnRead = index;
 325        return c.getFloat(ci(index));
 326    }
 327
 328    @Override
 329    public float getFloat(String columnName) throws SQLException {
 330        int index = c.getColumnIndex(columnName);
 331        lastColumnRead = index;
 332        return c.getFloat(index);
 333    }
 334
 335    @Override
 336    public int getInt(int index) throws SQLException {
 337        lastColumnRead = index;
 338        return c.getInt(ci(index));
 339    }
 340
 341    @Override
 342    public int getInt(String columnName) throws SQLException {
 343        int index = c.getColumnIndex(columnName);
 344        lastColumnRead = index;
 345        return c.getInt(index);
 346    }
 347
 348    @Override
 349    public long getLong(int index) throws SQLException {
 350        lastColumnRead = index;
 351        return c.getLong(ci(index));
 352    }
 353
 354    @Override
 355    public long getLong(String columnName) throws SQLException {
 356        int index = c.getColumnIndex(columnName);
 357        lastColumnRead = index;
 358        return c.getLong(index);
 359    }
 360
 361    @Override
 362    public ResultSetMetaData getMetaData() throws SQLException {
 363        return new SqldroidResultSetMetaData(c);
 364    }
 365
 366    @Override
 367    public Object getObject(int colID) throws SQLException {
 368        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 369                + DebugPrinter.getLineNumber());
 370        return null;
 371    }
 372
 373    @Override
 374    public Object getObject(String columnName) throws SQLException {
 375        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 376                + DebugPrinter.getLineNumber());
 377        return null;
 378    }
 379
 380    @Override
 381    public Object getObject(int arg0, Map<String, Class<?>> arg1) throws SQLException {
 382        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 383                + DebugPrinter.getLineNumber());
 384        return null;
 385    }
 386
 387    @Override
 388    public Object getObject(String arg0, Map<String, Class<?>> arg1) throws SQLException {
 389        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 390                + DebugPrinter.getLineNumber());
 391        return null;
 392    }
 393
 394    @Override
 395    public Ref getRef(int colID) throws SQLException {
 396        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 397                + DebugPrinter.getLineNumber());
 398        return null;
 399    }
 400
 401    @Override
 402    public Ref getRef(String colName) throws SQLException {
 403        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 404                + DebugPrinter.getLineNumber());
 405        return null;
 406    }
 407
 408    @Override
 409    public int getRow() throws SQLException {
 410        // convert to jdbc standard (counting from one)
 411        return c.getPosition() + 1;
 412    }
 413
 414    @Override
 415    public short getShort(int index) throws SQLException {
 416        lastColumnRead = index;
 417        return c.getShort(ci(index));
 418    }
 419
 420    @Override
 421    public short getShort(String columnName) throws SQLException {
 422        int index = c.getColumnIndex(columnName);
 423        lastColumnRead = index;
 424        return c.getShort(index);
 425    }
 426
 427    @Override
 428    public Statement getStatement() throws SQLException {
 429        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 430                + DebugPrinter.getLineNumber());
 431        return null;
 432    }
 433
 434    @Override
 435    public String getString(int index) throws SQLException {
 436        lastColumnRead = index;
 437        return c.getString(ci(index));
 438    }
 439
 440    @Override
 441    public String getString(String columnName) throws SQLException {
 442        int index = c.getColumnIndex(columnName);
 443        lastColumnRead = index;
 444        return c.getString(index);
 445    }
 446
 447    @Override
 448    public Time getTime(int colID) throws SQLException {
 449        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 450                + DebugPrinter.getLineNumber());
 451        return null;
 452    }
 453
 454    @Override
 455    public Time getTime(String columnName) throws SQLException {
 456        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 457                + DebugPrinter.getLineNumber());
 458        return null;
 459    }
 460
 461    @Override
 462    public Time getTime(int colID, Calendar cal) throws SQLException {
 463        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 464                + DebugPrinter.getLineNumber());
 465        return null;
 466    }
 467
 468    @Override
 469    public Time getTime(String columnName, Calendar cal) throws SQLException {
 470        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 471                + DebugPrinter.getLineNumber());
 472        return null;
 473    }
 474
 475    @Override
 476    public Timestamp getTimestamp(int colID) throws SQLException {
 477        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 478                + DebugPrinter.getLineNumber());
 479        return null;
 480    }
 481
 482    @Override
 483    public Timestamp getTimestamp(String columnName) throws SQLException {
 484        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 485                + DebugPrinter.getLineNumber());
 486        return null;
 487    }
 488
 489    @Override
 490    public Timestamp getTimestamp(int colID, Calendar cal) throws SQLException {
 491        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 492                + DebugPrinter.getLineNumber());
 493        return null;
 494    }
 495
 496    @Override
 497    public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException {
 498        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 499                + DebugPrinter.getLineNumber());
 500        return null;
 501    }
 502
 503    @Override
 504    public int getType() throws SQLException {
 505        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 506                + DebugPrinter.getLineNumber());
 507        return 0;
 508    }
 509
 510    @Override
 511    public URL getURL(int colID) throws SQLException {
 512        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 513                + DebugPrinter.getLineNumber());
 514        return null;
 515    }
 516
 517    @Override
 518    public URL getURL(String columnName) throws SQLException {
 519        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 520                + DebugPrinter.getLineNumber());
 521        return null;
 522    }
 523
 524    @Override
 525    public InputStream getUnicodeStream(int colID) throws SQLException {
 526        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 527                + DebugPrinter.getLineNumber());
 528        return null;
 529    }
 530
 531    @Override
 532    public InputStream getUnicodeStream(String columnName) throws SQLException {
 533        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 534                + DebugPrinter.getLineNumber());
 535        return null;
 536    }
 537
 538    @Override
 539    public SQLWarning getWarnings() throws SQLException {
 540        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 541                + DebugPrinter.getLineNumber());
 542        return null;
 543    }
 544
 545    @Override
 546    public void insertRow() throws SQLException {
 547        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 548                + DebugPrinter.getLineNumber());
 549
 550    }
 551
 552    @Override
 553    public boolean isAfterLast() throws SQLException {
 554        return c.isAfterLast();
 555    }
 556
 557    @Override
 558    public boolean isBeforeFirst() throws SQLException {
 559        return c.isBeforeFirst();
 560    }
 561
 562    @Override
 563    public boolean isFirst() throws SQLException {
 564        return c.isFirst();
 565    }
 566
 567    @Override
 568    public boolean isLast() throws SQLException {
 569        return c.isLast();
 570    }
 571
 572    @Override
 573    public boolean last() throws SQLException {
 574        return c.moveToLast();
 575    }
 576
 577    @Override
 578    public void moveToCurrentRow() throws SQLException {
 579        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 580                + DebugPrinter.getLineNumber());
 581
 582    }
 583
 584    @Override
 585    public void moveToInsertRow() throws SQLException {
 586        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 587                + DebugPrinter.getLineNumber());
 588
 589    }
 590
 591    @Override
 592    public boolean next() throws SQLException {
 593        return c.moveToNext();
 594    }
 595
 596    @Override
 597    public boolean previous() throws SQLException {
 598        return c.moveToPrevious();
 599    }
 600
 601    @Override
 602    public void refreshRow() throws SQLException {
 603        c.requery();
 604    }
 605
 606    @Override
 607    public boolean relative(int rows) throws SQLException {
 608        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 609                + DebugPrinter.getLineNumber());
 610        return false;
 611    }
 612
 613    @Override
 614    public boolean rowDeleted() throws SQLException {
 615        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 616                + DebugPrinter.getLineNumber());
 617        return false;
 618    }
 619
 620    @Override
 621    public boolean rowInserted() throws SQLException {
 622        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 623                + DebugPrinter.getLineNumber());
 624        return false;
 625    }
 626
 627    @Override
 628    public boolean rowUpdated() throws SQLException {
 629        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 630                + DebugPrinter.getLineNumber());
 631        return false;
 632    }
 633
 634    @Override
 635    public void setFetchDirection(int direction) throws SQLException {
 636        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 637                + DebugPrinter.getLineNumber());
 638
 639    }
 640
 641    @Override
 642    public void setFetchSize(int rows) throws SQLException {
 643        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 644                + DebugPrinter.getLineNumber());
 645
 646    }
 647
 648    @Override
 649    public void updateArray(int colID, Array x) throws SQLException {
 650        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 651                + DebugPrinter.getLineNumber());
 652
 653    }
 654
 655    @Override
 656    public void updateArray(String columnName, Array x) throws SQLException {
 657        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 658                + DebugPrinter.getLineNumber());
 659
 660    }
 661
 662    @Override
 663    public void updateAsciiStream(int colID, InputStream x, int length) throws SQLException {
 664        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 665                + DebugPrinter.getLineNumber());
 666
 667    }
 668
 669    @Override
 670    public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException {
 671        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 672                + DebugPrinter.getLineNumber());
 673
 674    }
 675
 676    @Override
 677    public void updateBigDecimal(int colID, BigDecimal x) throws SQLException {
 678        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 679                + DebugPrinter.getLineNumber());
 680
 681    }
 682
 683    @Override
 684    public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {
 685        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 686                + DebugPrinter.getLineNumber());
 687
 688    }
 689
 690    @Override
 691    public void updateBinaryStream(int colID, InputStream x, int length) throws SQLException {
 692        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 693                + DebugPrinter.getLineNumber());
 694
 695    }
 696
 697    @Override
 698    public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException {
 699        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 700                + DebugPrinter.getLineNumber());
 701
 702    }
 703
 704    @Override
 705    public void updateBlob(int colID, Blob x) throws SQLException {
 706        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 707                + DebugPrinter.getLineNumber());
 708
 709    }
 710
 711    @Override
 712    public void updateBlob(String columnName, Blob x) throws SQLException {
 713        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 714                + DebugPrinter.getLineNumber());
 715
 716    }
 717
 718    @Override
 719    public void updateBoolean(int colID, boolean x) throws SQLException {
 720        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 721                + DebugPrinter.getLineNumber());
 722
 723    }
 724
 725    @Override
 726    public void updateBoolean(String columnName, boolean x) throws SQLException {
 727        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 728                + DebugPrinter.getLineNumber());
 729
 730    }
 731
 732    @Override
 733    public void updateByte(int colID, byte x) throws SQLException {
 734        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 735                + DebugPrinter.getLineNumber());
 736
 737    }
 738
 739    @Override
 740    public void updateByte(String columnName, byte x) throws SQLException {
 741        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 742                + DebugPrinter.getLineNumber());
 743
 744    }
 745
 746    @Override
 747    public void updateBytes(int colID, byte[] x) throws SQLException {
 748        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 749                + DebugPrinter.getLineNumber());
 750
 751    }
 752
 753    @Override
 754    public void updateBytes(String columnName, byte[] x) throws SQLException {
 755        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 756                + DebugPrinter.getLineNumber());
 757
 758    }
 759
 760    @Override
 761    public void updateCharacterStream(int colID, Reader x, int length) throws SQLException {
 762        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 763                + DebugPrinter.getLineNumber());
 764
 765    }
 766
 767    @Override
 768    public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException {
 769        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 770                + DebugPrinter.getLineNumber());
 771
 772    }
 773
 774    @Override
 775    public void updateClob(int colID, Clob x) throws SQLException {
 776        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 777                + DebugPrinter.getLineNumber());
 778
 779    }
 780
 781    @Override
 782    public void updateClob(String columnName, Clob x) throws SQLException {
 783        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 784                + DebugPrinter.getLineNumber());
 785
 786    }
 787
 788    @Override
 789    public void updateDate(int colID, Date x) throws SQLException {
 790        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 791                + DebugPrinter.getLineNumber());
 792
 793    }
 794
 795    @Override
 796    public void updateDate(String columnName, Date x) throws SQLException {
 797        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 798                + DebugPrinter.getLineNumber());
 799
 800    }
 801
 802    @Override
 803    public void updateDouble(int colID, double x) throws SQLException {
 804        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 805                + DebugPrinter.getLineNumber());
 806
 807    }
 808
 809    @Override
 810    public void updateDouble(String columnName, double x) throws SQLException {
 811        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 812                + DebugPrinter.getLineNumber());
 813
 814    }
 815
 816    @Override
 817    public void updateFloat(int colID, float x) throws SQLException {
 818        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 819                + DebugPrinter.getLineNumber());
 820
 821    }
 822
 823    @Override
 824    public void updateFloat(String columnName, float x) throws SQLException {
 825        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 826                + DebugPrinter.getLineNumber());
 827
 828    }
 829
 830    @Override
 831    public void updateInt(int colID, int x) throws SQLException {
 832        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 833                + DebugPrinter.getLineNumber());
 834
 835    }
 836
 837    @Override
 838    public void updateInt(String columnName, int x) throws SQLException {
 839        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 840                + DebugPrinter.getLineNumber());
 841
 842    }
 843
 844    @Override
 845    public void updateLong(int colID, long x) throws SQLException {
 846        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 847                + DebugPrinter.getLineNumber());
 848
 849    }
 850
 851    @Override
 852    public void updateLong(String columnName, long x) throws SQLException {
 853        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 854                + DebugPrinter.getLineNumber());
 855
 856    }
 857
 858    @Override
 859    public void updateNull(int colID) throws SQLException {
 860        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 861                + DebugPrinter.getLineNumber());
 862
 863    }
 864
 865    @Override
 866    public void updateNull(String columnName) throws SQLException {
 867        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 868                + DebugPrinter.getLineNumber());
 869
 870    }
 871
 872    @Override
 873    public void updateObject(int colID, Object x) throws SQLException {
 874        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 875                + DebugPrinter.getLineNumber());
 876
 877    }
 878
 879    @Override
 880    public void updateObject(String columnName, Object x) throws SQLException {
 881        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 882                + DebugPrinter.getLineNumber());
 883
 884    }
 885
 886    @Override
 887    public void updateObject(int colID, Object x, int scale) throws SQLException {
 888        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 889                + DebugPrinter.getLineNumber());
 890
 891    }
 892
 893    @Override
 894    public void updateObject(String columnName, Object x, int scale) throws SQLException {
 895        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 896                + DebugPrinter.getLineNumber());
 897
 898    }
 899
 900    @Override
 901    public void updateRef(int colID, Ref x) throws SQLException {
 902        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 903                + DebugPrinter.getLineNumber());
 904
 905    }
 906
 907    @Override
 908    public void updateRef(String columnName, Ref x) throws SQLException {
 909        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 910                + DebugPrinter.getLineNumber());
 911
 912    }
 913
 914    @Override
 915    public void updateRow() throws SQLException {
 916        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 917                + DebugPrinter.getLineNumber());
 918
 919    }
 920
 921    @Override
 922    public void updateShort(int colID, short x) throws SQLException {
 923        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 924                + DebugPrinter.getLineNumber());
 925
 926    }
 927
 928    @Override
 929    public void updateShort(String columnName, short x) throws SQLException {
 930        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 931                + DebugPrinter.getLineNumber());
 932
 933    }
 934
 935    @Override
 936    public void updateString(int colID, String x) throws SQLException {
 937        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 938                + DebugPrinter.getLineNumber());
 939
 940    }
 941
 942    @Override
 943    public void updateString(String columnName, String x) throws SQLException {
 944        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 945                + DebugPrinter.getLineNumber());
 946
 947    }
 948
 949    @Override
 950    public void updateTime(int colID, Time x) throws SQLException {
 951        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 952                + DebugPrinter.getLineNumber());
 953
 954    }
 955
 956    @Override
 957    public void updateTime(String columnName, Time x) throws SQLException {
 958        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 959                + DebugPrinter.getLineNumber());
 960
 961    }
 962
 963    @Override
 964    public void updateTimestamp(int colID, Timestamp x) throws SQLException {
 965        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 966                + DebugPrinter.getLineNumber());
 967
 968    }
 969
 970    @Override
 971    public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
 972        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 973                + DebugPrinter.getLineNumber());
 974    }
 975
 976    @Override
 977    public boolean wasNull() throws SQLException {
 978        return c.isNull(ci(lastColumnRead));
 979    }
 980
 981    @Override
 982    public boolean isWrapperFor(Class<?> arg0) throws SQLException {
 983        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 984                + DebugPrinter.getLineNumber());
 985        return false;
 986    }
 987
 988    @Override
 989    public <T> T unwrap(Class<T> arg0) throws SQLException {
 990        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 991                + DebugPrinter.getLineNumber());
 992        return null;
 993    }
 994
 995    @Override
 996    public int getHoldability() throws SQLException {
 997        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
 998                + DebugPrinter.getLineNumber());
 999        return 0;
1000    }
1001
1002    @Override
1003    public Reader getNCharacterStream(int columnIndex) throws SQLException {
1004        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1005                + DebugPrinter.getLineNumber());
1006        return null;
1007    }
1008
1009    @Override
1010    public Reader getNCharacterStream(String columnLabel) throws SQLException {
1011        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1012                + DebugPrinter.getLineNumber());
1013        return null;
1014    }
1015
1016    @Override
1017    public NClob getNClob(int columnIndex) throws SQLException {
1018        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1019                + DebugPrinter.getLineNumber());
1020        return null;
1021    }
1022
1023    @Override
1024    public NClob getNClob(String columnLabel) throws SQLException {
1025        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1026                + DebugPrinter.getLineNumber());
1027        return null;
1028    }
1029
1030    @Override
1031    public String getNString(int columnIndex) throws SQLException {
1032        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1033                + DebugPrinter.getLineNumber());
1034        return null;
1035    }
1036
1037    @Override
1038    public String getNString(String columnLabel) throws SQLException {
1039        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1040                + DebugPrinter.getLineNumber());
1041        return null;
1042    }
1043
1044    @Override
1045    public RowId getRowId(int columnIndex) throws SQLException {
1046        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1047                + DebugPrinter.getLineNumber());
1048        return null;
1049    }
1050
1051    @Override
1052    public RowId getRowId(String columnLabel) throws SQLException {
1053        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1054                + DebugPrinter.getLineNumber());
1055        return null;
1056    }
1057
1058    @Override
1059    public SQLXML getSQLXML(int columnIndex) throws SQLException {
1060        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1061                + DebugPrinter.getLineNumber());
1062        return null;
1063    }
1064
1065    @Override
1066    public SQLXML getSQLXML(String columnLabel) throws SQLException {
1067        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1068                + DebugPrinter.getLineNumber());
1069        return null;
1070    }
1071
1072    @Override
1073    public boolean isClosed() throws SQLException {
1074        return c.isClosed();
1075    }
1076
1077    @Override
1078    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
1079        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1080                + DebugPrinter.getLineNumber());
1081
1082    }
1083
1084    @Override
1085    public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
1086        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1087                + DebugPrinter.getLineNumber());
1088
1089    }
1090
1091    @Override
1092    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
1093        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1094                + DebugPrinter.getLineNumber());
1095
1096    }
1097
1098    @Override
1099    public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
1100        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1101                + DebugPrinter.getLineNumber());
1102
1103    }
1104
1105    @Override
1106    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
1107        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1108                + DebugPrinter.getLineNumber());
1109
1110    }
1111
1112    @Override
1113    public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
1114        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1115                + DebugPrinter.getLineNumber());
1116
1117    }
1118
1119    @Override
1120    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
1121        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1122                + DebugPrinter.getLineNumber());
1123
1124    }
1125
1126    @Override
1127    public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
1128        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1129                + DebugPrinter.getLineNumber());
1130
1131    }
1132
1133    @Override
1134    public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
1135        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1136                + DebugPrinter.getLineNumber());
1137
1138    }
1139
1140    @Override
1141    public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
1142        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1143                + DebugPrinter.getLineNumber());
1144
1145    }
1146
1147    @Override
1148    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
1149        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1150                + DebugPrinter.getLineNumber());
1151
1152    }
1153
1154    @Override
1155    public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
1156        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1157                + DebugPrinter.getLineNumber());
1158
1159    }
1160
1161    @Override
1162    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
1163        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1164                + DebugPrinter.getLineNumber());
1165
1166    }
1167
1168    @Override
1169    public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
1170        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1171                + DebugPrinter.getLineNumber());
1172
1173    }
1174
1175    @Override
1176    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
1177        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1178                + DebugPrinter.getLineNumber());
1179
1180    }
1181
1182    @Override
1183    public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
1184        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1185                + DebugPrinter.getLineNumber());
1186
1187    }
1188
1189    @Override
1190    public void updateClob(int columnIndex, Reader reader) throws SQLException {
1191        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1192                + DebugPrinter.getLineNumber());
1193
1194    }
1195
1196    @Override
1197    public void updateClob(String columnLabel, Reader reader) throws SQLException {
1198        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1199                + DebugPrinter.getLineNumber());
1200
1201    }
1202
1203    @Override
1204    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
1205        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1206                + DebugPrinter.getLineNumber());
1207
1208    }
1209
1210    @Override
1211    public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
1212        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1213                + DebugPrinter.getLineNumber());
1214
1215    }
1216
1217    @Override
1218    public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
1219        System.err.println(" ********************* not implemented @ " + DebugPrinter.getFileName() + " line "
1220                + DebugPrinter.getLineNumber());
1221
1222    }
1223
1224    @Override
1225    public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
1226        // TODO Auto-generated method stub
1227
1228    }
1229
1230    @Override
1231    public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
1232        // TODO Auto-generated method stub
1233
1234    }
1235
1236    @Override
1237    public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
1238        // TODO Auto-generated method stub
1239
1240    }
1241
1242    @Override
1243    public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
1244        // TODO Auto-generated method stub
1245
1246    }
1247
1248    @Override
1249    public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
1250        // TODO Auto-generated method stub
1251
1252    }
1253
1254    @Override
1255    public void updateNClob(int columnIndex, Reader reader) throws SQLException {
1256        // TODO Auto-generated method stub
1257
1258    }
1259
1260    @Override
1261    public void updateNClob(String columnLabel, Reader reader) throws SQLException {
1262        // TODO Auto-generated method stub
1263
1264    }
1265
1266    @Override
1267    public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
1268        // TODO Auto-generated method stub
1269
1270    }
1271
1272    @Override
1273    public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
1274        // TODO Auto-generated method stub
1275
1276    }
1277
1278    @Override
1279    public void updateNString(int columnIndex, String nString) throws SQLException {
1280        // TODO Auto-generated method stub
1281
1282    }
1283
1284    @Override
1285    public void updateNString(String columnLabel, String nString) throws SQLException {
1286        // TODO Auto-generated method stub
1287
1288    }
1289
1290    @Override
1291    public void updateRowId(int columnIndex, RowId value) throws SQLException {
1292        // TODO Auto-generated method stub
1293
1294    }
1295
1296    @Override
1297    public void updateRowId(String columnLabel, RowId value) throws SQLException {
1298        // TODO Auto-generated method stub
1299
1300    }
1301
1302    @Override
1303    public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
1304        // TODO Auto-generated method stub
1305
1306    }
1307
1308    @Override
1309    public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
1310        // TODO Auto-generated method stub
1311
1312    }
1313
1314}