OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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