-
Notifications
You must be signed in to change notification settings - Fork 664
Expand file tree
/
Copy pathJDBC4ResultSet.java
More file actions
822 lines (666 loc) · 25.8 KB
/
JDBC4ResultSet.java
File metadata and controls
822 lines (666 loc) · 25.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
package org.sqlite.jdbc4;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Map;
import org.sqlite.core.CoreStatement;
import org.sqlite.jdbc3.JDBC3ResultSet;
public class JDBC4ResultSet extends JDBC3ResultSet implements ResultSet, ResultSetMetaData {
public JDBC4ResultSet(CoreStatement stmt) {
super(stmt);
}
@Override
public void close() throws SQLException {
final boolean wasOpen = isOpen(); // prevent close() recursion
super.close();
// close-on-completion regardless of closeStmt
if (wasOpen && stmt instanceof JDBC4Statement) {
JDBC4Statement stat = (JDBC4Statement) stmt;
// check if its not closed already in which case no-op
if (stat.closeOnCompletion && !stat.isClosed()) {
stat.close();
}
}
}
// JDBC 4
public <T> T unwrap(Class<T> iface) throws ClassCastException {
return iface.cast(this);
}
public boolean isWrapperFor(Class<?> iface) {
return iface.isInstance(this);
}
public RowId getRowId(int columnIndex) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public RowId getRowId(String columnLabel) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateRowId(int columnIndex, RowId x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateRowId(String columnLabel, RowId x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public int getHoldability() throws SQLException {
// TODO Auto-generated method stub
return 0;
}
public boolean isClosed() throws SQLException {
return !isOpen();
}
public void updateNString(int columnIndex, String nString) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNString(String columnLabel, String nString) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public NClob getNClob(int columnIndex) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public NClob getNClob(String columnLabel) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public SQLXML getSQLXML(int columnIndex) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public SQLXML getSQLXML(String columnLabel) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public String getNString(int columnIndex) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public String getNString(String columnLabel) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public Reader getNCharacterStream(int col) throws SQLException {
String data = getString(col);
return getNCharacterStreamInternal(data);
}
private Reader getNCharacterStreamInternal(String data) {
if (data == null) {
return null;
}
Reader reader = new StringReader(data);
return reader;
}
public Reader getNCharacterStream(String col) throws SQLException {
String data = getString(col);
return getNCharacterStreamInternal(data);
}
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNCharacterStream(String columnLabel, Reader reader, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBinaryStream(int columnIndex, InputStream x, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateAsciiStream(String columnLabel, InputStream x, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBinaryStream(String columnLabel, InputStream x, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateCharacterStream(String columnLabel, Reader reader, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBlob(int columnIndex, InputStream inputStream, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBlob(String columnLabel, InputStream inputStream, long length)
throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateClob(int columnIndex, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateClob(String columnLabel, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(int columnIndex, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public void updateNClob(String columnLabel, Reader reader) throws SQLException {
// TODO Support this
throw new SQLFeatureNotSupportedException();
}
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
if (type == null) throw new SQLException("requested type cannot be null");
if (type == String.class) return type.cast(getString(columnIndex));
if (type == Boolean.class) return type.cast(getBoolean(columnIndex));
if (type == BigDecimal.class) return type.cast(getBigDecimal(columnIndex));
if (type == byte[].class) return type.cast(getBytes(columnIndex));
if (type == Date.class) return type.cast(getDate(columnIndex));
if (type == Time.class) return type.cast(getTime(columnIndex));
if (type == Timestamp.class) return type.cast(getTimestamp(columnIndex));
if (type == LocalDate.class) {
try {
Date date = getDate(columnIndex);
if (date != null)
// inlining of java.sql.Date.toLocateDate() for Android
return type.cast(
LocalDate.of(
date.getYear() + 1900, date.getMonth() + 1, date.getDate()));
else return null;
} catch (SQLException sqlException) {
// If the FastDateParser failed, try parse it with LocalDate.
// It's a workaround for a value like '2022-12-1' (i.e no time presents).
return type.cast(LocalDate.parse(getString(columnIndex)));
}
}
if (type == LocalTime.class) {
try {
Time time = getTime(columnIndex);
if (time != null)
// inlining of java.sql.Date.toLocateTime() for Android
return type.cast(
LocalTime.of(time.getHours(), time.getMinutes(), time.getSeconds()));
else return null;
} catch (SQLException sqlException) {
// If the FastDateParser failed, try parse it with LocalTime.
// It's a workaround for a value like '11:22:22' (i.e no date presents).
return type.cast(LocalTime.parse(getString(columnIndex)));
}
}
if (type == LocalDateTime.class) {
try {
Timestamp timestamp = getTimestamp(columnIndex);
if (timestamp != null)
// inlining of java.sql.Date.toLocateDateTime() for Android
return type.cast(
LocalDateTime.of(
timestamp.getYear() + 1900,
timestamp.getMonth() + 1,
timestamp.getDate(),
timestamp.getHours(),
timestamp.getMinutes(),
timestamp.getSeconds(),
timestamp.getNanos()));
else return null;
} catch (SQLException e) {
// If the FastDateParser failed, try parse it with LocalDateTime.
return type.cast(LocalDateTime.parse(getString(columnIndex)));
}
}
int columnType = safeGetColumnType(markCol(columnIndex));
if (type == Double.class) {
if (columnType == SQLITE_INTEGER || columnType == SQLITE_FLOAT)
return type.cast(getDouble(columnIndex));
throw new SQLException("Bad value for type Double");
}
if (type == Long.class) {
if (columnType == SQLITE_INTEGER || columnType == SQLITE_FLOAT)
return type.cast(getLong(columnIndex));
throw new SQLException("Bad value for type Long");
}
if (type == Float.class) {
if (columnType == SQLITE_INTEGER || columnType == SQLITE_FLOAT)
return type.cast(getFloat(columnIndex));
throw new SQLException("Bad value for type Float");
}
if (type == Integer.class) {
if (columnType == SQLITE_INTEGER || columnType == SQLITE_FLOAT)
return type.cast(getInt(columnIndex));
throw new SQLException("Bad value for type Integer");
}
throw unsupported();
}
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
return getObject(findColumn(columnLabel), type);
}
protected SQLException unsupported() {
return new SQLFeatureNotSupportedException("not implemented by SQLite JDBC driver");
}
// ResultSet ////////////////////////////////////////////////////
public Array getArray(int i) throws SQLException {
throw unsupported();
}
public Array getArray(String col) throws SQLException {
throw unsupported();
}
public InputStream getAsciiStream(int col) throws SQLException {
String data = getString(col);
return getAsciiStreamInternal(data);
}
public InputStream getAsciiStream(String col) throws SQLException {
String data = getString(col);
return getAsciiStreamInternal(data);
}
private InputStream getAsciiStreamInternal(String data) {
if (data == null) {
return null;
}
InputStream inputStream;
try {
inputStream = new ByteArrayInputStream(data.getBytes("ASCII"));
} catch (UnsupportedEncodingException e) {
return null;
}
return inputStream;
}
@Deprecated
public BigDecimal getBigDecimal(int col, int s) throws SQLException {
throw unsupported();
}
@Deprecated
public BigDecimal getBigDecimal(String col, int s) throws SQLException {
throw unsupported();
}
public Blob getBlob(int col) throws SQLException {
throw unsupported();
}
public Blob getBlob(String col) throws SQLException {
throw unsupported();
}
public Clob getClob(int col) throws SQLException {
String clob = getString(col);
return clob == null ? null : new SqliteClob(clob);
}
public Clob getClob(String col) throws SQLException {
String clob = getString(col);
return clob == null ? null : new SqliteClob(clob);
}
@SuppressWarnings("rawtypes")
public Object getObject(int col, Map map) throws SQLException {
throw unsupported();
}
@SuppressWarnings("rawtypes")
public Object getObject(String col, Map map) throws SQLException {
throw unsupported();
}
public Ref getRef(int i) throws SQLException {
throw unsupported();
}
public Ref getRef(String col) throws SQLException {
throw unsupported();
}
public InputStream getUnicodeStream(int col) throws SQLException {
return getAsciiStream(col);
}
public InputStream getUnicodeStream(String col) throws SQLException {
return getAsciiStream(col);
}
public URL getURL(int col) throws SQLException {
throw unsupported();
}
public URL getURL(String col) throws SQLException {
throw unsupported();
}
public void insertRow() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public void moveToCurrentRow() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public void moveToInsertRow() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public boolean last() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public boolean previous() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public boolean relative(int rows) throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public boolean absolute(int row) throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public void afterLast() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public void beforeFirst() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public boolean first() throws SQLException {
throw new SQLException("ResultSet is TYPE_FORWARD_ONLY");
}
public void cancelRowUpdates() throws SQLException {
throw unsupported();
}
public void deleteRow() throws SQLException {
throw unsupported();
}
public void updateArray(int col, Array x) throws SQLException {
throw unsupported();
}
public void updateArray(String col, Array x) throws SQLException {
throw unsupported();
}
public void updateAsciiStream(int col, InputStream x, int l) throws SQLException {
throw unsupported();
}
public void updateAsciiStream(String col, InputStream x, int l) throws SQLException {
throw unsupported();
}
public void updateBigDecimal(int col, BigDecimal x) throws SQLException {
throw unsupported();
}
public void updateBigDecimal(String col, BigDecimal x) throws SQLException {
throw unsupported();
}
public void updateBinaryStream(int c, InputStream x, int l) throws SQLException {
throw unsupported();
}
public void updateBinaryStream(String c, InputStream x, int l) throws SQLException {
throw unsupported();
}
public void updateBlob(int col, Blob x) throws SQLException {
throw unsupported();
}
public void updateBlob(String col, Blob x) throws SQLException {
throw unsupported();
}
public void updateBoolean(int col, boolean x) throws SQLException {
throw unsupported();
}
public void updateBoolean(String col, boolean x) throws SQLException {
throw unsupported();
}
public void updateByte(int col, byte x) throws SQLException {
throw unsupported();
}
public void updateByte(String col, byte x) throws SQLException {
throw unsupported();
}
public void updateBytes(int col, byte[] x) throws SQLException {
throw unsupported();
}
public void updateBytes(String col, byte[] x) throws SQLException {
throw unsupported();
}
public void updateCharacterStream(int c, Reader x, int l) throws SQLException {
throw unsupported();
}
public void updateCharacterStream(String c, Reader r, int l) throws SQLException {
throw unsupported();
}
public void updateClob(int col, Clob x) throws SQLException {
throw unsupported();
}
public void updateClob(String col, Clob x) throws SQLException {
throw unsupported();
}
public void updateDate(int col, Date x) throws SQLException {
throw unsupported();
}
public void updateDate(String col, Date x) throws SQLException {
throw unsupported();
}
public void updateDouble(int col, double x) throws SQLException {
throw unsupported();
}
public void updateDouble(String col, double x) throws SQLException {
throw unsupported();
}
public void updateFloat(int col, float x) throws SQLException {
throw unsupported();
}
public void updateFloat(String col, float x) throws SQLException {
throw unsupported();
}
public void updateInt(int col, int x) throws SQLException {
throw unsupported();
}
public void updateInt(String col, int x) throws SQLException {
throw unsupported();
}
public void updateLong(int col, long x) throws SQLException {
throw unsupported();
}
public void updateLong(String col, long x) throws SQLException {
throw unsupported();
}
public void updateNull(int col) throws SQLException {
throw unsupported();
}
public void updateNull(String col) throws SQLException {
throw unsupported();
}
public void updateObject(int c, Object x) throws SQLException {
throw unsupported();
}
public void updateObject(int c, Object x, int s) throws SQLException {
throw unsupported();
}
public void updateObject(String col, Object x) throws SQLException {
throw unsupported();
}
public void updateObject(String c, Object x, int s) throws SQLException {
throw unsupported();
}
public void updateRef(int col, Ref x) throws SQLException {
throw unsupported();
}
public void updateRef(String c, Ref x) throws SQLException {
throw unsupported();
}
public void updateRow() throws SQLException {
throw unsupported();
}
public void updateShort(int c, short x) throws SQLException {
throw unsupported();
}
public void updateShort(String c, short x) throws SQLException {
throw unsupported();
}
public void updateString(int c, String x) throws SQLException {
throw unsupported();
}
public void updateString(String c, String x) throws SQLException {
throw unsupported();
}
public void updateTime(int c, Time x) throws SQLException {
throw unsupported();
}
public void updateTime(String c, Time x) throws SQLException {
throw unsupported();
}
public void updateTimestamp(int c, Timestamp x) throws SQLException {
throw unsupported();
}
public void updateTimestamp(String c, Timestamp x) throws SQLException {
throw unsupported();
}
public void refreshRow() throws SQLException {
throw unsupported();
}
class SqliteClob implements NClob {
private String data;
protected SqliteClob(String data) {
this.data = data;
}
public void free() throws SQLException {
data = null;
}
public InputStream getAsciiStream() throws SQLException {
return getAsciiStreamInternal(data);
}
public Reader getCharacterStream() throws SQLException {
return getNCharacterStreamInternal(data);
}
public Reader getCharacterStream(long arg0, long arg1) throws SQLException {
return getNCharacterStreamInternal(data);
}
public String getSubString(long position, int length) throws SQLException {
if (data == null) {
throw new SQLException("no data");
}
if (position < 1) {
throw new SQLException("Position must be greater than or equal to 1");
}
if (length < 0) {
throw new SQLException("Length must be greater than or equal to 0");
}
int start = (int) position - 1;
return data.substring(start, Math.min(start + length, data.length()));
}
public long length() throws SQLException {
if (data == null) {
throw new SQLException("no data");
}
return data.length();
}
public long position(String arg0, long arg1) throws SQLException {
unsupported();
return -1;
}
public long position(Clob arg0, long arg1) throws SQLException {
unsupported();
return -1;
}
public OutputStream setAsciiStream(long arg0) throws SQLException {
unsupported();
return null;
}
public Writer setCharacterStream(long arg0) throws SQLException {
unsupported();
return null;
}
public int setString(long arg0, String arg1) throws SQLException {
unsupported();
return -1;
}
public int setString(long arg0, String arg1, int arg2, int arg3) throws SQLException {
unsupported();
return -1;
}
public void truncate(long arg0) throws SQLException {
unsupported();
}
}
}