-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLInput.swift
More file actions
536 lines (368 loc) · 24 KB
/
SQLInput.swift
File metadata and controls
536 lines (368 loc) · 24 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.sql.SQLInput ///
public protocol SQLInput: JavaProtocol {
/// public abstract java.sql.Array java.sql.SQLInput.readArray() throws java.sql.SQLException
func readArray() throws /* java.sql.SQLException */ -> Array!
/// public abstract java.io.InputStream java.sql.SQLInput.readAsciiStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.math.BigDecimal java.sql.SQLInput.readBigDecimal() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.io.InputStream java.sql.SQLInput.readBinaryStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.sql.Blob java.sql.SQLInput.readBlob() throws java.sql.SQLException
func readBlob() throws /* java.sql.SQLException */ -> Blob!
/// public abstract boolean java.sql.SQLInput.readBoolean() throws java.sql.SQLException
func readBoolean() throws /* java.sql.SQLException */ -> Bool
/// public abstract byte java.sql.SQLInput.readByte() throws java.sql.SQLException
func readByte() throws /* java.sql.SQLException */ -> Int8
/// public abstract byte[] java.sql.SQLInput.readBytes() throws java.sql.SQLException
func readBytes() throws /* java.sql.SQLException */ -> [Int8]!
/// public abstract java.io.Reader java.sql.SQLInput.readCharacterStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.sql.Clob java.sql.SQLInput.readClob() throws java.sql.SQLException
func readClob() throws /* java.sql.SQLException */ -> Clob!
/// public abstract java.sql.Date java.sql.SQLInput.readDate() throws java.sql.SQLException
func readDate() throws /* java.sql.SQLException */ -> Date!
/// public abstract double java.sql.SQLInput.readDouble() throws java.sql.SQLException
func readDouble() throws /* java.sql.SQLException */ -> Double
/// public abstract float java.sql.SQLInput.readFloat() throws java.sql.SQLException
func readFloat() throws /* java.sql.SQLException */ -> Float
/// public abstract int java.sql.SQLInput.readInt() throws java.sql.SQLException
func readInt() throws /* java.sql.SQLException */ -> Int
/// public abstract long java.sql.SQLInput.readLong() throws java.sql.SQLException
func readLong() throws /* java.sql.SQLException */ -> Int64
/// public abstract java.sql.NClob java.sql.SQLInput.readNClob() throws java.sql.SQLException
func readNClob() throws /* java.sql.SQLException */ -> NClob!
/// public abstract java.lang.String java.sql.SQLInput.readNString() throws java.sql.SQLException
func readNString() throws /* java.sql.SQLException */ -> String!
/// public default java.lang.Object java.sql.SQLInput.readObject(java.lang.Class) throws java.sql.SQLException
func readObject( type: java_swift.JavaClass? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract java.lang.Object java.sql.SQLInput.readObject() throws java.sql.SQLException
func readObject() throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract java.sql.Ref java.sql.SQLInput.readRef() throws java.sql.SQLException
func readRef() throws /* java.sql.SQLException */ -> Ref!
/// public abstract java.sql.RowId java.sql.SQLInput.readRowId() throws java.sql.SQLException
func readRowId() throws /* java.sql.SQLException */ -> RowId!
/// public abstract java.sql.SQLXML java.sql.SQLInput.readSQLXML() throws java.sql.SQLException
func readSQLXML() throws /* java.sql.SQLException */ -> SQLXML!
/// public abstract short java.sql.SQLInput.readShort() throws java.sql.SQLException
func readShort() throws /* java.sql.SQLException */ -> Int16
/// public abstract java.lang.String java.sql.SQLInput.readString() throws java.sql.SQLException
func readString() throws /* java.sql.SQLException */ -> String!
/// public abstract java.sql.Time java.sql.SQLInput.readTime() throws java.sql.SQLException
func readTime() throws /* java.sql.SQLException */ -> Time!
/// public abstract java.sql.Timestamp java.sql.SQLInput.readTimestamp() throws java.sql.SQLException
func readTimestamp() throws /* java.sql.SQLException */ -> Timestamp!
/// public abstract java.net.URL java.sql.SQLInput.readURL() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract boolean java.sql.SQLInput.wasNull() throws java.sql.SQLException
func wasNull() throws /* java.sql.SQLException */ -> Bool
}
open class SQLInputForward: JNIObjectForward, SQLInput {
private static var SQLInputJNIClass: jclass?
/// public abstract java.sql.Array java.sql.SQLInput.readArray() throws java.sql.SQLException
private static var readArray_MethodID_24: jmethodID?
open func readArray() throws /* java.sql.SQLException */ -> Array! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readArray", methodSig: "()Ljava/sql/Array;", methodCache: &SQLInputForward.readArray_MethodID_24, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ArrayForward( javaObject: __return ) : nil
}
/// public abstract java.io.InputStream java.sql.SQLInput.readAsciiStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.math.BigDecimal java.sql.SQLInput.readBigDecimal() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.io.InputStream java.sql.SQLInput.readBinaryStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.sql.Blob java.sql.SQLInput.readBlob() throws java.sql.SQLException
private static var readBlob_MethodID_25: jmethodID?
open func readBlob() throws /* java.sql.SQLException */ -> Blob! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readBlob", methodSig: "()Ljava/sql/Blob;", methodCache: &SQLInputForward.readBlob_MethodID_25, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? BlobForward( javaObject: __return ) : nil
}
/// public abstract boolean java.sql.SQLInput.readBoolean() throws java.sql.SQLException
private static var readBoolean_MethodID_26: jmethodID?
open func readBoolean() throws /* java.sql.SQLException */ -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "readBoolean", methodSig: "()Z", methodCache: &SQLInputForward.readBoolean_MethodID_26, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != jboolean(JNI_FALSE)
}
/// public abstract byte java.sql.SQLInput.readByte() throws java.sql.SQLException
private static var readByte_MethodID_27: jmethodID?
open func readByte() throws /* java.sql.SQLException */ -> Int8 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallByteMethod( object: javaObject, methodName: "readByte", methodSig: "()B", methodCache: &SQLInputForward.readByte_MethodID_27, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return
}
/// public abstract byte[] java.sql.SQLInput.readBytes() throws java.sql.SQLException
private static var readBytes_MethodID_28: jmethodID?
open func readBytes() throws /* java.sql.SQLException */ -> [Int8]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readBytes", methodSig: "()[B", methodCache: &SQLInputForward.readBytes_MethodID_28, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return JNIType.toSwift( type: [Int8].self, from: __return )
}
/// public abstract java.io.Reader java.sql.SQLInput.readCharacterStream() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract java.sql.Clob java.sql.SQLInput.readClob() throws java.sql.SQLException
private static var readClob_MethodID_29: jmethodID?
open func readClob() throws /* java.sql.SQLException */ -> Clob! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readClob", methodSig: "()Ljava/sql/Clob;", methodCache: &SQLInputForward.readClob_MethodID_29, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ClobForward( javaObject: __return ) : nil
}
/// public abstract java.sql.Date java.sql.SQLInput.readDate() throws java.sql.SQLException
private static var readDate_MethodID_30: jmethodID?
open func readDate() throws /* java.sql.SQLException */ -> Date! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readDate", methodSig: "()Ljava/sql/Date;", methodCache: &SQLInputForward.readDate_MethodID_30, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? Date( javaObject: __return ) : nil
}
/// public abstract double java.sql.SQLInput.readDouble() throws java.sql.SQLException
private static var readDouble_MethodID_31: jmethodID?
open func readDouble() throws /* java.sql.SQLException */ -> Double {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallDoubleMethod( object: javaObject, methodName: "readDouble", methodSig: "()D", methodCache: &SQLInputForward.readDouble_MethodID_31, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return
}
/// public abstract float java.sql.SQLInput.readFloat() throws java.sql.SQLException
private static var readFloat_MethodID_32: jmethodID?
open func readFloat() throws /* java.sql.SQLException */ -> Float {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallFloatMethod( object: javaObject, methodName: "readFloat", methodSig: "()F", methodCache: &SQLInputForward.readFloat_MethodID_32, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return
}
/// public abstract int java.sql.SQLInput.readInt() throws java.sql.SQLException
private static var readInt_MethodID_33: jmethodID?
open func readInt() throws /* java.sql.SQLException */ -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "readInt", methodSig: "()I", methodCache: &SQLInputForward.readInt_MethodID_33, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return Int(__return)
}
/// public abstract long java.sql.SQLInput.readLong() throws java.sql.SQLException
private static var readLong_MethodID_34: jmethodID?
open func readLong() throws /* java.sql.SQLException */ -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "readLong", methodSig: "()J", methodCache: &SQLInputForward.readLong_MethodID_34, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return
}
/// public abstract java.sql.NClob java.sql.SQLInput.readNClob() throws java.sql.SQLException
private static var readNClob_MethodID_35: jmethodID?
open func readNClob() throws /* java.sql.SQLException */ -> NClob! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readNClob", methodSig: "()Ljava/sql/NClob;", methodCache: &SQLInputForward.readNClob_MethodID_35, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? NClobForward( javaObject: __return ) : nil
}
/// public abstract java.lang.String java.sql.SQLInput.readNString() throws java.sql.SQLException
private static var readNString_MethodID_36: jmethodID?
open func readNString() throws /* java.sql.SQLException */ -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readNString", methodSig: "()Ljava/lang/String;", methodCache: &SQLInputForward.readNString_MethodID_36, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? String( javaObject: __return ) : nil
}
/// public default java.lang.Object java.sql.SQLInput.readObject(java.lang.Class) throws java.sql.SQLException
private static var readObject_MethodID_37: jmethodID?
open func readObject( type: java_swift.JavaClass? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: type, locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readObject", methodSig: "(Ljava/lang/Class;)Ljava/lang/Object;", methodCache: &SQLInputForward.readObject_MethodID_37, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil
}
open func readObject( _ _type: java_swift.JavaClass? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
return try readObject( type: _type )
}
/// public abstract java.lang.Object java.sql.SQLInput.readObject() throws java.sql.SQLException
private static var readObject_MethodID_38: jmethodID?
open func readObject() throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readObject", methodSig: "()Ljava/lang/Object;", methodCache: &SQLInputForward.readObject_MethodID_38, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? java_swift.JavaObject( javaObject: __return ) : nil
}
/// public abstract java.sql.Ref java.sql.SQLInput.readRef() throws java.sql.SQLException
private static var readRef_MethodID_39: jmethodID?
open func readRef() throws /* java.sql.SQLException */ -> Ref! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readRef", methodSig: "()Ljava/sql/Ref;", methodCache: &SQLInputForward.readRef_MethodID_39, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? RefForward( javaObject: __return ) : nil
}
/// public abstract java.sql.RowId java.sql.SQLInput.readRowId() throws java.sql.SQLException
private static var readRowId_MethodID_40: jmethodID?
open func readRowId() throws /* java.sql.SQLException */ -> RowId! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readRowId", methodSig: "()Ljava/sql/RowId;", methodCache: &SQLInputForward.readRowId_MethodID_40, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? RowIdForward( javaObject: __return ) : nil
}
/// public abstract java.sql.SQLXML java.sql.SQLInput.readSQLXML() throws java.sql.SQLException
private static var readSQLXML_MethodID_41: jmethodID?
open func readSQLXML() throws /* java.sql.SQLException */ -> SQLXML! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readSQLXML", methodSig: "()Ljava/sql/SQLXML;", methodCache: &SQLInputForward.readSQLXML_MethodID_41, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? SQLXMLForward( javaObject: __return ) : nil
}
/// public abstract short java.sql.SQLInput.readShort() throws java.sql.SQLException
private static var readShort_MethodID_42: jmethodID?
open func readShort() throws /* java.sql.SQLException */ -> Int16 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallShortMethod( object: javaObject, methodName: "readShort", methodSig: "()S", methodCache: &SQLInputForward.readShort_MethodID_42, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return
}
/// public abstract java.lang.String java.sql.SQLInput.readString() throws java.sql.SQLException
private static var readString_MethodID_43: jmethodID?
open func readString() throws /* java.sql.SQLException */ -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readString", methodSig: "()Ljava/lang/String;", methodCache: &SQLInputForward.readString_MethodID_43, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? String( javaObject: __return ) : nil
}
/// public abstract java.sql.Time java.sql.SQLInput.readTime() throws java.sql.SQLException
private static var readTime_MethodID_44: jmethodID?
open func readTime() throws /* java.sql.SQLException */ -> Time! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readTime", methodSig: "()Ljava/sql/Time;", methodCache: &SQLInputForward.readTime_MethodID_44, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? Time( javaObject: __return ) : nil
}
/// public abstract java.sql.Timestamp java.sql.SQLInput.readTimestamp() throws java.sql.SQLException
private static var readTimestamp_MethodID_45: jmethodID?
open func readTimestamp() throws /* java.sql.SQLException */ -> Timestamp! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "readTimestamp", methodSig: "()Ljava/sql/Timestamp;", methodCache: &SQLInputForward.readTimestamp_MethodID_45, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? Timestamp( javaObject: __return ) : nil
}
/// public abstract java.net.URL java.sql.SQLInput.readURL() throws java.sql.SQLException
// Skipping method: false false true false false
/// public abstract boolean java.sql.SQLInput.wasNull() throws java.sql.SQLException
private static var wasNull_MethodID_46: jmethodID?
open func wasNull() throws /* java.sql.SQLException */ -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "wasNull", methodSig: "()Z", methodCache: &SQLInputForward.wasNull_MethodID_46, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != jboolean(JNI_FALSE)
}
}