OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 142 | Rev 180 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17 ilm 1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
10
 *
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
144 ilm 13
 
14
 package org.openconcerto.sql.model;
17 ilm 15
 
16
import java.io.InputStream;
17
import java.io.Reader;
18
import java.math.BigDecimal;
19
import java.net.URL;
20
import java.sql.Array;
21
import java.sql.Blob;
22
import java.sql.Clob;
23
import java.sql.Date;
24
import java.sql.NClob;
25
import java.sql.Ref;
26
import java.sql.ResultSet;
27
import java.sql.ResultSetMetaData;
28
import java.sql.RowId;
29
import java.sql.SQLException;
30
import java.sql.SQLWarning;
31
import java.sql.SQLXML;
32
import java.sql.Statement;
33
import java.sql.Time;
34
import java.sql.Timestamp;
35
import java.util.Calendar;
36
import java.util.HashMap;
37
import java.util.Map;
38
 
39
import org.apache.commons.collections.Transformer;
40
import org.apache.commons.collections.map.LazyMap;
41
 
42
/**
144 ilm 43
 * A resultSet that wraps onto another one, caching name to index translation, and using a
44
 * ResultSetFullnameHelper.
17 ilm 45
 *
46
 * @author Sylvain
47
 */
48
public class SQLResultSet implements ResultSet {
49
 
144 ilm 50
    static public final <T> T getValue(final ResultSet rs, final Class<T> clz, final int columnIndex) throws SQLException {
51
        final Object res;
52
        if (clz == Object.class)
53
            res = rs.getObject(columnIndex);
54
        else if (Integer.class.isAssignableFrom(clz))
55
            res = rs.getInt(columnIndex);
56
        else if (Long.class.isAssignableFrom(clz))
57
            res = rs.getLong(columnIndex);
58
        else if (String.class.isAssignableFrom(clz))
59
            res = rs.getString(columnIndex);
60
        else if (Boolean.class.isAssignableFrom(clz))
61
            res = rs.getBoolean(columnIndex);
62
        else if (java.sql.Date.class.isAssignableFrom(clz))
63
            res = rs.getDate(columnIndex);
64
        else if (java.util.Date.class.isAssignableFrom(clz))
65
            res = rs.getTimestamp(columnIndex);
66
        else if (Short.class.isAssignableFrom(clz))
67
            res = rs.getShort(columnIndex);
68
        else if (Byte.class.isAssignableFrom(clz))
69
            res = rs.getByte(columnIndex);
70
        else if (Double.class.isAssignableFrom(clz))
71
            res = rs.getDouble(columnIndex);
72
        else if (Float.class.isAssignableFrom(clz))
73
            res = rs.getFloat(columnIndex);
74
        else if (Time.class.isAssignableFrom(clz))
75
            res = rs.getTime(columnIndex);
76
        else
77
            res = rs.getObject(columnIndex);
78
        return clz.cast(res);
79
    }
17 ilm 80
 
144 ilm 81
    static public final <T> T getValue(final ResultSet rs, final Class<T> clz, final String columnLabel) throws SQLException {
82
        final Object res;
83
        if (clz == Object.class)
84
            res = rs.getObject(columnLabel);
85
        else if (Integer.class.isAssignableFrom(clz))
86
            res = rs.getInt(columnLabel);
87
        else if (Long.class.isAssignableFrom(clz))
88
            res = rs.getLong(columnLabel);
89
        else if (String.class.isAssignableFrom(clz))
90
            res = rs.getString(columnLabel);
91
        else if (Boolean.class.isAssignableFrom(clz))
92
            res = rs.getBoolean(columnLabel);
93
        else if (java.sql.Date.class.isAssignableFrom(clz))
94
            res = rs.getDate(columnLabel);
95
        else if (java.util.Date.class.isAssignableFrom(clz))
96
            res = rs.getTimestamp(columnLabel);
97
        else if (Short.class.isAssignableFrom(clz))
98
            res = rs.getShort(columnLabel);
99
        else if (Byte.class.isAssignableFrom(clz))
100
            res = rs.getByte(columnLabel);
101
        else if (Double.class.isAssignableFrom(clz))
102
            res = rs.getDouble(columnLabel);
103
        else if (Float.class.isAssignableFrom(clz))
104
            res = rs.getFloat(columnLabel);
105
        else if (Time.class.isAssignableFrom(clz))
106
            res = rs.getTime(columnLabel);
107
        else
108
            res = rs.getObject(columnLabel);
109
        return clz.cast(res);
110
    }
17 ilm 111
 
144 ilm 112
    static public final int getRowProcessedCount(final ResultSet rs) {
113
        if (rs instanceof SQLResultSet) {
114
            return ((SQLResultSet) rs).getRowProcessedCount();
115
        } else {
116
            // ResultSet.getRow() always return 0 after the last row
117
            return 0;
118
        }
119
    }
17 ilm 120
 
144 ilm 121
    private final ResultSet delegate;
122
    private final ResultSetFullnameHelper helper;
123
    private final Map indexes;
124
    private int rowProcessedCount;
17 ilm 125
 
144 ilm 126
    public SQLResultSet(ResultSet delegate) {
127
        this.delegate = delegate;
128
        this.helper = new ResultSetFullnameHelper(this);
129
        this.indexes = LazyMap.decorate(new HashMap(), new Transformer() {
130
            public Object transform(Object input) {
131
                final String colName = (String) input;
132
                try {
133
                    return new Integer(doFindColumn(colName));
134
                } catch (SQLException e) {
135
                    return e;
136
                }
137
            }
138
        });
139
    }
17 ilm 140
 
144 ilm 141
    private ResultSet getDelegate() {
142
        return this.delegate;
143
    }
17 ilm 144
 
144 ilm 145
    public boolean absolute(int row) throws SQLException {
146
        return getDelegate().absolute(row);
147
    }
17 ilm 148
 
144 ilm 149
    public void afterLast() throws SQLException {
150
        getDelegate().afterLast();
151
    }
17 ilm 152
 
144 ilm 153
    public void beforeFirst() throws SQLException {
154
        getDelegate().beforeFirst();
155
    }
17 ilm 156
 
144 ilm 157
    public void cancelRowUpdates() throws SQLException {
158
        getDelegate().cancelRowUpdates();
159
    }
17 ilm 160
 
144 ilm 161
    public void clearWarnings() throws SQLException {
162
        getDelegate().clearWarnings();
163
    }
17 ilm 164
 
144 ilm 165
    public void close() throws SQLException {
166
        getDelegate().close();
167
    }
17 ilm 168
 
144 ilm 169
    public void deleteRow() throws SQLException {
170
        getDelegate().deleteRow();
171
    }
17 ilm 172
 
144 ilm 173
    public int findColumn(String columnName) throws SQLException {
174
        final Object res = this.indexes.get(columnName);
175
        if (res instanceof SQLException)
176
            throw (SQLException) res;
177
        else {
178
            final int index = ((Number) res).intValue();
179
            if (index < 1)
180
                throw new SQLException(columnName + " not found");
181
            else
182
                return index;
183
        }
184
    }
17 ilm 185
 
144 ilm 186
    private int doFindColumn(String columnName) throws SQLException {
187
        try {
188
            return getDelegate().findColumn(columnName);
189
        } catch (SQLException e) {
190
            try {
191
                return this.helper.getIndex(columnName);
192
            } catch (Exception exn) {
193
                throw e;
194
            }
195
        }
196
    }
17 ilm 197
 
144 ilm 198
    public boolean first() throws SQLException {
199
        return getDelegate().first();
200
    }
17 ilm 201
 
144 ilm 202
    public Array getArray(int i) throws SQLException {
203
        return getDelegate().getArray(i);
204
    }
17 ilm 205
 
144 ilm 206
    public Array getArray(String colName) throws SQLException {
207
        return getDelegate().getArray(colName);
208
    }
17 ilm 209
 
144 ilm 210
    public InputStream getAsciiStream(int columnIndex) throws SQLException {
211
        return getDelegate().getAsciiStream(columnIndex);
212
    }
17 ilm 213
 
144 ilm 214
    public InputStream getAsciiStream(String columnName) throws SQLException {
215
        return getDelegate().getAsciiStream(this.findColumn(columnName));
216
    }
17 ilm 217
 
144 ilm 218
    public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
219
        return getDelegate().getBigDecimal(columnIndex, scale);
220
    }
17 ilm 221
 
144 ilm 222
    public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
223
        return getDelegate().getBigDecimal(columnIndex);
224
    }
17 ilm 225
 
144 ilm 226
    public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
227
        return getDelegate().getBigDecimal(columnName, scale);
228
    }
17 ilm 229
 
144 ilm 230
    public BigDecimal getBigDecimal(String columnName) throws SQLException {
231
        return getDelegate().getBigDecimal(this.findColumn(columnName));
232
    }
17 ilm 233
 
144 ilm 234
    public InputStream getBinaryStream(int columnIndex) throws SQLException {
235
        return getDelegate().getBinaryStream(columnIndex);
236
    }
17 ilm 237
 
144 ilm 238
    public InputStream getBinaryStream(String columnName) throws SQLException {
239
        return getDelegate().getBinaryStream(this.findColumn(columnName));
240
    }
17 ilm 241
 
144 ilm 242
    public Blob getBlob(int i) throws SQLException {
243
        return getDelegate().getBlob(i);
244
    }
17 ilm 245
 
144 ilm 246
    public Blob getBlob(String colName) throws SQLException {
247
        return getDelegate().getBlob(colName);
248
    }
17 ilm 249
 
144 ilm 250
    public boolean getBoolean(int columnIndex) throws SQLException {
251
        return getDelegate().getBoolean(columnIndex);
252
    }
17 ilm 253
 
144 ilm 254
    public boolean getBoolean(String columnName) throws SQLException {
255
        return getDelegate().getBoolean(this.findColumn(columnName));
256
    }
17 ilm 257
 
144 ilm 258
    public byte getByte(int columnIndex) throws SQLException {
259
        return getDelegate().getByte(columnIndex);
260
    }
17 ilm 261
 
144 ilm 262
    public byte getByte(String columnName) throws SQLException {
263
        return getDelegate().getByte(this.findColumn(columnName));
264
    }
17 ilm 265
 
144 ilm 266
    public byte[] getBytes(int columnIndex) throws SQLException {
267
        return getDelegate().getBytes(columnIndex);
268
    }
17 ilm 269
 
144 ilm 270
    public byte[] getBytes(String columnName) throws SQLException {
271
        return getDelegate().getBytes(this.findColumn(columnName));
272
    }
17 ilm 273
 
144 ilm 274
    public Reader getCharacterStream(int columnIndex) throws SQLException {
275
        return getDelegate().getCharacterStream(columnIndex);
276
    }
17 ilm 277
 
144 ilm 278
    public Reader getCharacterStream(String columnName) throws SQLException {
279
        return getDelegate().getCharacterStream(this.findColumn(columnName));
280
    }
17 ilm 281
 
144 ilm 282
    public Clob getClob(int i) throws SQLException {
283
        return getDelegate().getClob(i);
284
    }
17 ilm 285
 
144 ilm 286
    public Clob getClob(String colName) throws SQLException {
287
        return getDelegate().getClob(colName);
288
    }
17 ilm 289
 
144 ilm 290
    public int getConcurrency() throws SQLException {
291
        return getDelegate().getConcurrency();
292
    }
17 ilm 293
 
144 ilm 294
    public String getCursorName() throws SQLException {
295
        return getDelegate().getCursorName();
296
    }
17 ilm 297
 
144 ilm 298
    public Date getDate(int columnIndex, Calendar cal) throws SQLException {
299
        return getDelegate().getDate(columnIndex, cal);
300
    }
17 ilm 301
 
144 ilm 302
    public Date getDate(int columnIndex) throws SQLException {
303
        return getDelegate().getDate(columnIndex);
304
    }
17 ilm 305
 
144 ilm 306
    public Date getDate(String columnName, Calendar cal) throws SQLException {
307
        return getDelegate().getDate(columnName, cal);
308
    }
17 ilm 309
 
144 ilm 310
    public Date getDate(String columnName) throws SQLException {
311
        return getDelegate().getDate(this.findColumn(columnName));
312
    }
17 ilm 313
 
144 ilm 314
    public double getDouble(int columnIndex) throws SQLException {
315
        return getDelegate().getDouble(columnIndex);
316
    }
17 ilm 317
 
144 ilm 318
    public double getDouble(String columnName) throws SQLException {
319
        return getDelegate().getDouble(this.findColumn(columnName));
320
    }
17 ilm 321
 
144 ilm 322
    public int getFetchDirection() throws SQLException {
323
        return getDelegate().getFetchDirection();
324
    }
17 ilm 325
 
144 ilm 326
    public int getFetchSize() throws SQLException {
327
        return getDelegate().getFetchSize();
328
    }
17 ilm 329
 
144 ilm 330
    public float getFloat(int columnIndex) throws SQLException {
331
        return getDelegate().getFloat(columnIndex);
332
    }
17 ilm 333
 
144 ilm 334
    public float getFloat(String columnName) throws SQLException {
335
        return getDelegate().getFloat(this.findColumn(columnName));
336
    }
17 ilm 337
 
144 ilm 338
    public int getInt(int columnIndex) throws SQLException {
339
        return getDelegate().getInt(columnIndex);
340
    }
17 ilm 341
 
144 ilm 342
    public int getInt(String columnName) throws SQLException {
343
        return getDelegate().getInt(this.findColumn(columnName));
344
    }
17 ilm 345
 
144 ilm 346
    public long getLong(int columnIndex) throws SQLException {
347
        return getDelegate().getLong(columnIndex);
348
    }
17 ilm 349
 
144 ilm 350
    public long getLong(String columnName) throws SQLException {
351
        return getDelegate().getLong(this.findColumn(columnName));
352
    }
17 ilm 353
 
144 ilm 354
    public ResultSetMetaData getMetaData() throws SQLException {
355
        return new SQLResultSetMetadata(getDelegate().getMetaData());
356
    }
17 ilm 357
 
144 ilm 358
    public Object getObject(int arg0, Map arg1) throws SQLException {
359
        return getDelegate().getObject(arg0, arg1);
360
    }
17 ilm 361
 
144 ilm 362
    public Object getObject(int columnIndex) throws SQLException {
363
        return getDelegate().getObject(columnIndex);
364
    }
17 ilm 365
 
144 ilm 366
    public Object getObject(String arg0, Map arg1) throws SQLException {
367
        return getDelegate().getObject(arg0, arg1);
368
    }
17 ilm 369
 
144 ilm 370
    public Object getObject(String columnName) throws SQLException {
371
        return getDelegate().getObject(this.findColumn(columnName));
372
    }
17 ilm 373
 
144 ilm 374
    public Ref getRef(int i) throws SQLException {
375
        return getDelegate().getRef(i);
376
    }
17 ilm 377
 
144 ilm 378
    public Ref getRef(String colName) throws SQLException {
379
        return getDelegate().getRef(colName);
380
    }
17 ilm 381
 
144 ilm 382
    public int getRow() throws SQLException {
383
        return getDelegate().getRow();
384
    }
17 ilm 385
 
144 ilm 386
    public short getShort(int columnIndex) throws SQLException {
387
        return getDelegate().getShort(columnIndex);
388
    }
17 ilm 389
 
144 ilm 390
    public short getShort(String columnName) throws SQLException {
391
        return getDelegate().getShort(this.findColumn(columnName));
392
    }
17 ilm 393
 
144 ilm 394
    public Statement getStatement() throws SQLException {
395
        return getDelegate().getStatement();
396
    }
17 ilm 397
 
144 ilm 398
    public String getString(int columnIndex) throws SQLException {
399
        return getDelegate().getString(columnIndex);
400
    }
17 ilm 401
 
144 ilm 402
    public String getString(String columnName) throws SQLException {
403
        return getDelegate().getString(this.findColumn(columnName));
404
    }
17 ilm 405
 
144 ilm 406
    public Time getTime(int columnIndex, Calendar cal) throws SQLException {
407
        return getDelegate().getTime(columnIndex, cal);
408
    }
17 ilm 409
 
144 ilm 410
    public Time getTime(int columnIndex) throws SQLException {
411
        return getDelegate().getTime(columnIndex);
412
    }
17 ilm 413
 
144 ilm 414
    public Time getTime(String columnName, Calendar cal) throws SQLException {
415
        return getDelegate().getTime(columnName, cal);
416
    }
17 ilm 417
 
144 ilm 418
    public Time getTime(String columnName) throws SQLException {
419
        return getDelegate().getTime(this.findColumn(columnName));
420
    }
17 ilm 421
 
144 ilm 422
    public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
423
        return getDelegate().getTimestamp(columnIndex, cal);
424
    }
17 ilm 425
 
144 ilm 426
    public Timestamp getTimestamp(int columnIndex) throws SQLException {
427
        return getDelegate().getTimestamp(columnIndex);
428
    }
17 ilm 429
 
144 ilm 430
    public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException {
431
        return getDelegate().getTimestamp(columnName, cal);
432
    }
17 ilm 433
 
144 ilm 434
    public Timestamp getTimestamp(String columnName) throws SQLException {
435
        return getDelegate().getTimestamp(this.findColumn(columnName));
436
    }
17 ilm 437
 
144 ilm 438
    public int getType() throws SQLException {
439
        return getDelegate().getType();
440
    }
17 ilm 441
 
144 ilm 442
    public InputStream getUnicodeStream(int columnIndex) throws SQLException {
443
        return getDelegate().getUnicodeStream(columnIndex);
444
    }
17 ilm 445
 
144 ilm 446
    public InputStream getUnicodeStream(String columnName) throws SQLException {
447
        return getDelegate().getUnicodeStream(this.findColumn(columnName));
448
    }
17 ilm 449
 
144 ilm 450
    public URL getURL(int columnIndex) throws SQLException {
451
        return getDelegate().getURL(columnIndex);
452
    }
17 ilm 453
 
144 ilm 454
    public URL getURL(String columnName) throws SQLException {
455
        return getDelegate().getURL(this.findColumn(columnName));
456
    }
17 ilm 457
 
144 ilm 458
    // **
17 ilm 459
 
144 ilm 460
    public SQLWarning getWarnings() throws SQLException {
461
        return getDelegate().getWarnings();
462
    }
17 ilm 463
 
144 ilm 464
    public void insertRow() throws SQLException {
465
        getDelegate().insertRow();
466
    }
17 ilm 467
 
144 ilm 468
    public boolean isAfterLast() throws SQLException {
469
        return getDelegate().isAfterLast();
470
    }
17 ilm 471
 
144 ilm 472
    public boolean isBeforeFirst() throws SQLException {
473
        return getDelegate().isBeforeFirst();
474
    }
17 ilm 475
 
144 ilm 476
    public boolean isFirst() throws SQLException {
477
        return getDelegate().isFirst();
478
    }
17 ilm 479
 
144 ilm 480
    public boolean isLast() throws SQLException {
481
        return getDelegate().isLast();
482
    }
17 ilm 483
 
144 ilm 484
    public boolean last() throws SQLException {
485
        return getDelegate().last();
486
    }
17 ilm 487
 
144 ilm 488
    public void moveToCurrentRow() throws SQLException {
489
        getDelegate().moveToCurrentRow();
490
    }
17 ilm 491
 
144 ilm 492
    public void moveToInsertRow() throws SQLException {
493
        getDelegate().moveToInsertRow();
494
    }
17 ilm 495
 
144 ilm 496
    public boolean next() throws SQLException {
497
        rowProcessedCount++;
498
        return getDelegate().next();
499
    }
17 ilm 500
 
144 ilm 501
    public int getRowProcessedCount() {
502
        return rowProcessedCount;
503
    }
17 ilm 504
 
144 ilm 505
    public boolean previous() throws SQLException {
506
        return getDelegate().previous();
507
    }
17 ilm 508
 
144 ilm 509
    public void refreshRow() throws SQLException {
510
        getDelegate().refreshRow();
511
    }
17 ilm 512
 
144 ilm 513
    public boolean relative(int rows) throws SQLException {
514
        return getDelegate().relative(rows);
515
    }
17 ilm 516
 
144 ilm 517
    public boolean rowDeleted() throws SQLException {
518
        return getDelegate().rowDeleted();
519
    }
17 ilm 520
 
144 ilm 521
    public boolean rowInserted() throws SQLException {
522
        return getDelegate().rowInserted();
523
    }
17 ilm 524
 
144 ilm 525
    public boolean rowUpdated() throws SQLException {
526
        return getDelegate().rowUpdated();
527
    }
17 ilm 528
 
144 ilm 529
    public void setFetchDirection(int direction) throws SQLException {
530
        getDelegate().setFetchDirection(direction);
531
    }
17 ilm 532
 
144 ilm 533
    public void setFetchSize(int rows) throws SQLException {
534
        getDelegate().setFetchSize(rows);
535
    }
17 ilm 536
 
144 ilm 537
    // update*
17 ilm 538
 
144 ilm 539
    public void updateArray(int columnIndex, Array x) throws SQLException {
540
        getDelegate().updateArray(columnIndex, x);
541
    }
17 ilm 542
 
144 ilm 543
    public void updateArray(String columnName, Array x) throws SQLException {
544
        getDelegate().updateArray(columnName, x);
545
    }
17 ilm 546
 
144 ilm 547
    public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
548
        getDelegate().updateAsciiStream(columnIndex, x, length);
549
    }
17 ilm 550
 
144 ilm 551
    public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException {
552
        getDelegate().updateAsciiStream(columnName, x, length);
553
    }
17 ilm 554
 
144 ilm 555
    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
556
        getDelegate().updateBigDecimal(columnIndex, x);
557
    }
17 ilm 558
 
144 ilm 559
    public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {
560
        getDelegate().updateBigDecimal(columnName, x);
561
    }
17 ilm 562
 
144 ilm 563
    public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
564
        getDelegate().updateBinaryStream(columnIndex, x, length);
565
    }
17 ilm 566
 
144 ilm 567
    public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException {
568
        getDelegate().updateBinaryStream(columnName, x, length);
569
    }
17 ilm 570
 
144 ilm 571
    public void updateBlob(int columnIndex, Blob x) throws SQLException {
572
        getDelegate().updateBlob(columnIndex, x);
573
    }
17 ilm 574
 
144 ilm 575
    public void updateBlob(String columnName, Blob x) throws SQLException {
576
        getDelegate().updateBlob(columnName, x);
577
    }
17 ilm 578
 
144 ilm 579
    public void updateBoolean(int columnIndex, boolean x) throws SQLException {
580
        getDelegate().updateBoolean(columnIndex, x);
581
    }
17 ilm 582
 
144 ilm 583
    public void updateBoolean(String columnName, boolean x) throws SQLException {
584
        getDelegate().updateBoolean(columnName, x);
585
    }
17 ilm 586
 
144 ilm 587
    public void updateByte(int columnIndex, byte x) throws SQLException {
588
        getDelegate().updateByte(columnIndex, x);
589
    }
17 ilm 590
 
144 ilm 591
    public void updateByte(String columnName, byte x) throws SQLException {
592
        getDelegate().updateByte(columnName, x);
593
    }
17 ilm 594
 
144 ilm 595
    public void updateBytes(int columnIndex, byte[] x) throws SQLException {
596
        getDelegate().updateBytes(columnIndex, x);
597
    }
17 ilm 598
 
144 ilm 599
    public void updateBytes(String columnName, byte[] x) throws SQLException {
600
        getDelegate().updateBytes(columnName, x);
601
    }
17 ilm 602
 
144 ilm 603
    public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
604
        getDelegate().updateCharacterStream(columnIndex, x, length);
605
    }
17 ilm 606
 
144 ilm 607
    public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException {
608
        getDelegate().updateCharacterStream(columnName, reader, length);
609
    }
17 ilm 610
 
144 ilm 611
    public void updateClob(int columnIndex, Clob x) throws SQLException {
612
        getDelegate().updateClob(columnIndex, x);
613
    }
17 ilm 614
 
144 ilm 615
    public void updateClob(String columnName, Clob x) throws SQLException {
616
        getDelegate().updateClob(columnName, x);
617
    }
17 ilm 618
 
144 ilm 619
    public void updateDate(int columnIndex, Date x) throws SQLException {
620
        getDelegate().updateDate(columnIndex, x);
621
    }
17 ilm 622
 
144 ilm 623
    public void updateDate(String columnName, Date x) throws SQLException {
624
        getDelegate().updateDate(columnName, x);
625
    }
17 ilm 626
 
144 ilm 627
    public void updateDouble(int columnIndex, double x) throws SQLException {
628
        getDelegate().updateDouble(columnIndex, x);
629
    }
17 ilm 630
 
144 ilm 631
    public void updateDouble(String columnName, double x) throws SQLException {
632
        getDelegate().updateDouble(columnName, x);
633
    }
17 ilm 634
 
144 ilm 635
    public void updateFloat(int columnIndex, float x) throws SQLException {
636
        getDelegate().updateFloat(columnIndex, x);
637
    }
17 ilm 638
 
144 ilm 639
    public void updateFloat(String columnName, float x) throws SQLException {
640
        getDelegate().updateFloat(columnName, x);
641
    }
17 ilm 642
 
144 ilm 643
    public void updateInt(int columnIndex, int x) throws SQLException {
644
        getDelegate().updateInt(columnIndex, x);
645
    }
17 ilm 646
 
144 ilm 647
    public void updateInt(String columnName, int x) throws SQLException {
648
        getDelegate().updateInt(columnName, x);
649
    }
17 ilm 650
 
144 ilm 651
    public void updateLong(int columnIndex, long x) throws SQLException {
652
        getDelegate().updateLong(columnIndex, x);
653
    }
17 ilm 654
 
144 ilm 655
    public void updateLong(String columnName, long x) throws SQLException {
656
        getDelegate().updateLong(columnName, x);
657
    }
17 ilm 658
 
144 ilm 659
    public void updateNull(int columnIndex) throws SQLException {
660
        getDelegate().updateNull(columnIndex);
661
    }
17 ilm 662
 
144 ilm 663
    public void updateNull(String columnName) throws SQLException {
664
        getDelegate().updateNull(columnName);
665
    }
17 ilm 666
 
144 ilm 667
    public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
668
        getDelegate().updateObject(columnIndex, x, scale);
669
    }
17 ilm 670
 
144 ilm 671
    public void updateObject(int columnIndex, Object x) throws SQLException {
672
        getDelegate().updateObject(columnIndex, x);
673
    }
17 ilm 674
 
144 ilm 675
    public void updateObject(String columnName, Object x, int scale) throws SQLException {
676
        getDelegate().updateObject(columnName, x, scale);
677
    }
17 ilm 678
 
144 ilm 679
    public void updateObject(String columnName, Object x) throws SQLException {
680
        getDelegate().updateObject(columnName, x);
681
    }
17 ilm 682
 
144 ilm 683
    public void updateRef(int columnIndex, Ref x) throws SQLException {
684
        getDelegate().updateRef(columnIndex, x);
685
    }
17 ilm 686
 
144 ilm 687
    public void updateRef(String columnName, Ref x) throws SQLException {
688
        getDelegate().updateRef(columnName, x);
689
    }
17 ilm 690
 
144 ilm 691
    public void updateRow() throws SQLException {
692
        getDelegate().updateRow();
693
    }
17 ilm 694
 
144 ilm 695
    public void updateShort(int columnIndex, short x) throws SQLException {
696
        getDelegate().updateShort(columnIndex, x);
697
    }
17 ilm 698
 
144 ilm 699
    public void updateShort(String columnName, short x) throws SQLException {
700
        getDelegate().updateShort(columnName, x);
701
    }
17 ilm 702
 
144 ilm 703
    public void updateString(int columnIndex, String x) throws SQLException {
704
        getDelegate().updateString(columnIndex, x);
705
    }
17 ilm 706
 
144 ilm 707
    public void updateString(String columnName, String x) throws SQLException {
708
        getDelegate().updateString(columnName, x);
709
    }
17 ilm 710
 
144 ilm 711
    public void updateTime(int columnIndex, Time x) throws SQLException {
712
        getDelegate().updateTime(columnIndex, x);
713
    }
17 ilm 714
 
144 ilm 715
    public void updateTime(String columnName, Time x) throws SQLException {
716
        getDelegate().updateTime(columnName, x);
717
    }
17 ilm 718
 
144 ilm 719
    public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
720
        getDelegate().updateTimestamp(columnIndex, x);
721
    }
17 ilm 722
 
144 ilm 723
    public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
724
        getDelegate().updateTimestamp(columnName, x);
725
    }
17 ilm 726
 
144 ilm 727
    public boolean wasNull() throws SQLException {
728
        return getDelegate().wasNull();
729
    }
17 ilm 730
 
144 ilm 731
    public int getHoldability() throws SQLException {
732
        return getDelegate().getHoldability();
733
    }
17 ilm 734
 
144 ilm 735
    public Reader getNCharacterStream(int columnIndex) throws SQLException {
736
        return getDelegate().getNCharacterStream(columnIndex);
737
    }
17 ilm 738
 
144 ilm 739
    public Reader getNCharacterStream(String columnLabel) throws SQLException {
740
        return getDelegate().getNCharacterStream(columnLabel);
741
    }
17 ilm 742
 
144 ilm 743
    public NClob getNClob(int columnIndex) throws SQLException {
744
        return getDelegate().getNClob(columnIndex);
745
    }
17 ilm 746
 
144 ilm 747
    public NClob getNClob(String columnLabel) throws SQLException {
748
        return getDelegate().getNClob(columnLabel);
749
    }
17 ilm 750
 
144 ilm 751
    public String getNString(int columnIndex) throws SQLException {
752
        return getDelegate().getNString(columnIndex);
753
    }
17 ilm 754
 
144 ilm 755
    public String getNString(String columnLabel) throws SQLException {
756
        return getDelegate().getNString(columnLabel);
757
    }
17 ilm 758
 
144 ilm 759
    public RowId getRowId(int columnIndex) throws SQLException {
760
        return getDelegate().getRowId(columnIndex);
761
    }
17 ilm 762
 
144 ilm 763
    public RowId getRowId(String columnLabel) throws SQLException {
764
        return getDelegate().getRowId(columnLabel);
765
    }
17 ilm 766
 
144 ilm 767
    public SQLXML getSQLXML(int columnIndex) throws SQLException {
768
        return getDelegate().getSQLXML(columnIndex);
769
    }
17 ilm 770
 
144 ilm 771
    public SQLXML getSQLXML(String columnLabel) throws SQLException {
772
        return getDelegate().getSQLXML(columnLabel);
773
    }
17 ilm 774
 
144 ilm 775
    public boolean isClosed() throws SQLException {
776
        return getDelegate().isClosed();
777
    }
17 ilm 778
 
144 ilm 779
    public boolean isWrapperFor(Class<?> iface) throws SQLException {
780
        return getDelegate().isWrapperFor(iface);
781
    }
17 ilm 782
 
144 ilm 783
    public <T> T unwrap(Class<T> iface) throws SQLException {
784
        return getDelegate().unwrap(iface);
785
    }
17 ilm 786
 
144 ilm 787
    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
788
        getDelegate().updateAsciiStream(columnIndex, x, length);
789
    }
17 ilm 790
 
144 ilm 791
    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
792
        getDelegate().updateAsciiStream(columnIndex, x);
793
    }
17 ilm 794
 
144 ilm 795
    public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
796
        getDelegate().updateAsciiStream(columnLabel, x, length);
797
    }
17 ilm 798
 
144 ilm 799
    public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
800
        getDelegate().updateAsciiStream(columnLabel, x);
801
    }
17 ilm 802
 
144 ilm 803
    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
804
        getDelegate().updateBinaryStream(columnIndex, x, length);
805
    }
17 ilm 806
 
144 ilm 807
    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
808
        getDelegate().updateBinaryStream(columnIndex, x);
809
    }
17 ilm 810
 
144 ilm 811
    public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
812
        getDelegate().updateBinaryStream(columnLabel, x, length);
813
    }
17 ilm 814
 
144 ilm 815
    public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
816
        getDelegate().updateBinaryStream(columnLabel, x);
817
    }
17 ilm 818
 
144 ilm 819
    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
820
        getDelegate().updateBlob(columnIndex, inputStream, length);
821
    }
17 ilm 822
 
144 ilm 823
    public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
824
        getDelegate().updateBlob(columnIndex, inputStream);
825
    }
17 ilm 826
 
144 ilm 827
    public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
828
        getDelegate().updateBlob(columnLabel, inputStream, length);
829
    }
17 ilm 830
 
144 ilm 831
    public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
832
        getDelegate().updateBlob(columnLabel, inputStream);
833
    }
17 ilm 834
 
144 ilm 835
    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
836
        getDelegate().updateCharacterStream(columnIndex, x, length);
837
    }
17 ilm 838
 
144 ilm 839
    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
840
        getDelegate().updateCharacterStream(columnIndex, x);
841
    }
17 ilm 842
 
144 ilm 843
    public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
844
        getDelegate().updateCharacterStream(columnLabel, reader, length);
845
    }
17 ilm 846
 
144 ilm 847
    public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
848
        getDelegate().updateCharacterStream(columnLabel, reader);
849
    }
17 ilm 850
 
144 ilm 851
    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
852
        getDelegate().updateClob(columnIndex, reader, length);
853
    }
17 ilm 854
 
144 ilm 855
    public void updateClob(int columnIndex, Reader reader) throws SQLException {
856
        getDelegate().updateClob(columnIndex, reader);
857
    }
17 ilm 858
 
144 ilm 859
    public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
860
        getDelegate().updateClob(columnLabel, reader, length);
861
    }
17 ilm 862
 
144 ilm 863
    public void updateClob(String columnLabel, Reader reader) throws SQLException {
864
        getDelegate().updateClob(columnLabel, reader);
865
    }
17 ilm 866
 
144 ilm 867
    public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
868
        getDelegate().updateNCharacterStream(columnIndex, x, length);
869
    }
17 ilm 870
 
144 ilm 871
    public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
872
        getDelegate().updateNCharacterStream(columnIndex, x);
873
    }
17 ilm 874
 
144 ilm 875
    public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
876
        getDelegate().updateNCharacterStream(columnLabel, reader, length);
877
    }
17 ilm 878
 
144 ilm 879
    public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
880
        getDelegate().updateNCharacterStream(columnLabel, reader);
881
    }
17 ilm 882
 
144 ilm 883
    public void updateNClob(int columnIndex, NClob clob) throws SQLException {
884
        getDelegate().updateNClob(columnIndex, clob);
885
    }
17 ilm 886
 
144 ilm 887
    public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
888
        getDelegate().updateNClob(columnIndex, reader, length);
889
    }
17 ilm 890
 
144 ilm 891
    public void updateNClob(int columnIndex, Reader reader) throws SQLException {
892
        getDelegate().updateNClob(columnIndex, reader);
893
    }
17 ilm 894
 
144 ilm 895
    public void updateNClob(String columnLabel, NClob clob) throws SQLException {
896
        getDelegate().updateNClob(columnLabel, clob);
897
    }
17 ilm 898
 
144 ilm 899
    public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
900
        getDelegate().updateNClob(columnLabel, reader, length);
901
    }
17 ilm 902
 
144 ilm 903
    public void updateNClob(String columnLabel, Reader reader) throws SQLException {
904
        getDelegate().updateNClob(columnLabel, reader);
905
    }
17 ilm 906
 
144 ilm 907
    public void updateNString(int columnIndex, String string) throws SQLException {
908
        getDelegate().updateNString(columnIndex, string);
909
    }
142 ilm 910
 
144 ilm 911
    public void updateNString(String columnLabel, String string) throws SQLException {
912
        getDelegate().updateNString(columnLabel, string);
913
    }
142 ilm 914
 
144 ilm 915
    public void updateRowId(int columnIndex, RowId x) throws SQLException {
916
        getDelegate().updateRowId(columnIndex, x);
917
    }
142 ilm 918
 
144 ilm 919
    public void updateRowId(String columnLabel, RowId x) throws SQLException {
920
        getDelegate().updateRowId(columnLabel, x);
921
    }
142 ilm 922
 
144 ilm 923
    public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
924
        getDelegate().updateSQLXML(columnIndex, xmlObject);
925
    }
142 ilm 926
 
144 ilm 927
    public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
928
        getDelegate().updateSQLXML(columnLabel, xmlObject);
929
    }
142 ilm 930
 
144 ilm 931
    // ------------------------- JDBC 4.1 -----------------------------------
142 ilm 932
 
144 ilm 933
    @Override
934
    public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
935
        return getDelegate().getObject(columnIndex, type);
936
    }
142 ilm 937
 
144 ilm 938
    @Override
939
    public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
940
        return getDelegate().getObject(columnLabel, type);
941
    }
17 ilm 942
}