-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLOutput.swift
More file actions
663 lines (485 loc) · 30.5 KB
/
SQLOutput.swift
File metadata and controls
663 lines (485 loc) · 30.5 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.sql.SQLOutput ///
public protocol SQLOutput: JavaProtocol {
/// public abstract void java.sql.SQLOutput.writeArray(java.sql.Array) throws java.sql.SQLException
func writeArray( x: Array? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeAsciiStream(java.io.InputStream) throws java.sql.SQLException
func writeAsciiStream( x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeBigDecimal(java.math.BigDecimal) throws java.sql.SQLException
func writeBigDecimal( x: /* class java.math.BigDecimal */ UnavailableObject? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeBinaryStream(java.io.InputStream) throws java.sql.SQLException
func writeBinaryStream( x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeBlob(java.sql.Blob) throws java.sql.SQLException
func writeBlob( x: Blob? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeBoolean(boolean) throws java.sql.SQLException
func writeBoolean( x: Bool ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeByte(byte) throws java.sql.SQLException
func writeByte( x: Int8 ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeBytes(byte[]) throws java.sql.SQLException
func writeBytes( x: [Int8]? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeCharacterStream(java.io.Reader) throws java.sql.SQLException
func writeCharacterStream( x: /* class java.io.Reader */ UnavailableObject? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeClob(java.sql.Clob) throws java.sql.SQLException
func writeClob( x: Clob? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeDate(java.sql.Date) throws java.sql.SQLException
func writeDate( x: Date? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeDouble(double) throws java.sql.SQLException
func writeDouble( x: Double ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeFloat(float) throws java.sql.SQLException
func writeFloat( x: Float ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeInt(int) throws java.sql.SQLException
func writeInt( x: Int ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeLong(long) throws java.sql.SQLException
func writeLong( x: Int64 ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeNClob(java.sql.NClob) throws java.sql.SQLException
func writeNClob( x: NClob? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeNString(java.lang.String) throws java.sql.SQLException
func writeNString( x: String? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeObject(java.sql.SQLData) throws java.sql.SQLException
func writeObject( x: SQLData? ) throws /* java.sql.SQLException */
/// public default void java.sql.SQLOutput.writeObject(java.lang.Object,java.sql.SQLType) throws java.sql.SQLException
func writeObject( x: java_swift.JavaObject?, targetSqlType: SQLType? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeRef(java.sql.Ref) throws java.sql.SQLException
func writeRef( x: Ref? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeRowId(java.sql.RowId) throws java.sql.SQLException
func writeRowId( x: RowId? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeSQLXML(java.sql.SQLXML) throws java.sql.SQLException
func writeSQLXML( x: SQLXML? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeShort(short) throws java.sql.SQLException
func writeShort( x: Int16 ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeString(java.lang.String) throws java.sql.SQLException
func writeString( x: String? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeStruct(java.sql.Struct) throws java.sql.SQLException
func writeStruct( x: Struct? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeTime(java.sql.Time) throws java.sql.SQLException
func writeTime( x: Time? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeTimestamp(java.sql.Timestamp) throws java.sql.SQLException
func writeTimestamp( x: Timestamp? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLOutput.writeURL(java.net.URL) throws java.sql.SQLException
func writeURL( x: /* class java.net.URL */ UnavailableObject? ) throws /* java.sql.SQLException */
}
open class SQLOutputForward: JNIObjectForward, SQLOutput {
private static var SQLOutputJNIClass: jclass?
/// public abstract void java.sql.SQLOutput.writeArray(java.sql.Array) throws java.sql.SQLException
private static var writeArray_MethodID_29: jmethodID?
open func writeArray( x: Array? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeArray", methodSig: "(Ljava/sql/Array;)V", methodCache: &SQLOutputForward.writeArray_MethodID_29, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeArray( _ _x: Array? ) throws /* java.sql.SQLException */ {
try writeArray( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeAsciiStream(java.io.InputStream) throws java.sql.SQLException
private static var writeAsciiStream_MethodID_30: jmethodID?
open func writeAsciiStream( x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeAsciiStream", methodSig: "(Ljava/io/InputStream;)V", methodCache: &SQLOutputForward.writeAsciiStream_MethodID_30, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeAsciiStream( _ _x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */ {
try writeAsciiStream( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeBigDecimal(java.math.BigDecimal) throws java.sql.SQLException
private static var writeBigDecimal_MethodID_31: jmethodID?
open func writeBigDecimal( x: /* class java.math.BigDecimal */ UnavailableObject? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeBigDecimal", methodSig: "(Ljava/math/BigDecimal;)V", methodCache: &SQLOutputForward.writeBigDecimal_MethodID_31, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeBigDecimal( _ _x: /* class java.math.BigDecimal */ UnavailableObject? ) throws /* java.sql.SQLException */ {
try writeBigDecimal( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeBinaryStream(java.io.InputStream) throws java.sql.SQLException
private static var writeBinaryStream_MethodID_32: jmethodID?
open func writeBinaryStream( x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeBinaryStream", methodSig: "(Ljava/io/InputStream;)V", methodCache: &SQLOutputForward.writeBinaryStream_MethodID_32, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeBinaryStream( _ _x: /* class java.io.InputStream */ UnavailableObject? ) throws /* java.sql.SQLException */ {
try writeBinaryStream( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeBlob(java.sql.Blob) throws java.sql.SQLException
private static var writeBlob_MethodID_33: jmethodID?
open func writeBlob( x: Blob? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeBlob", methodSig: "(Ljava/sql/Blob;)V", methodCache: &SQLOutputForward.writeBlob_MethodID_33, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeBlob( _ _x: Blob? ) throws /* java.sql.SQLException */ {
try writeBlob( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeBoolean(boolean) throws java.sql.SQLException
private static var writeBoolean_MethodID_34: jmethodID?
open func writeBoolean( x: Bool ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( z: jboolean(x ? JNI_TRUE : JNI_FALSE) )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeBoolean", methodSig: "(Z)V", methodCache: &SQLOutputForward.writeBoolean_MethodID_34, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeBoolean( _ _x: Bool ) throws /* java.sql.SQLException */ {
try writeBoolean( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeByte(byte) throws java.sql.SQLException
private static var writeByte_MethodID_35: jmethodID?
open func writeByte( x: Int8 ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( b: x )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeByte", methodSig: "(B)V", methodCache: &SQLOutputForward.writeByte_MethodID_35, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeByte( _ _x: Int8 ) throws /* java.sql.SQLException */ {
try writeByte( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeBytes(byte[]) throws java.sql.SQLException
private static var writeBytes_MethodID_36: jmethodID?
open func writeBytes( x: [Int8]? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeBytes", methodSig: "([B)V", methodCache: &SQLOutputForward.writeBytes_MethodID_36, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeBytes( _ _x: [Int8]? ) throws /* java.sql.SQLException */ {
try writeBytes( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeCharacterStream(java.io.Reader) throws java.sql.SQLException
private static var writeCharacterStream_MethodID_37: jmethodID?
open func writeCharacterStream( x: /* class java.io.Reader */ UnavailableObject? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeCharacterStream", methodSig: "(Ljava/io/Reader;)V", methodCache: &SQLOutputForward.writeCharacterStream_MethodID_37, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeCharacterStream( _ _x: /* class java.io.Reader */ UnavailableObject? ) throws /* java.sql.SQLException */ {
try writeCharacterStream( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeClob(java.sql.Clob) throws java.sql.SQLException
private static var writeClob_MethodID_38: jmethodID?
open func writeClob( x: Clob? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeClob", methodSig: "(Ljava/sql/Clob;)V", methodCache: &SQLOutputForward.writeClob_MethodID_38, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeClob( _ _x: Clob? ) throws /* java.sql.SQLException */ {
try writeClob( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeDate(java.sql.Date) throws java.sql.SQLException
private static var writeDate_MethodID_39: jmethodID?
open func writeDate( x: Date? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeDate", methodSig: "(Ljava/sql/Date;)V", methodCache: &SQLOutputForward.writeDate_MethodID_39, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeDate( _ _x: Date? ) throws /* java.sql.SQLException */ {
try writeDate( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeDouble(double) throws java.sql.SQLException
private static var writeDouble_MethodID_40: jmethodID?
open func writeDouble( x: Double ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( d: x )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeDouble", methodSig: "(D)V", methodCache: &SQLOutputForward.writeDouble_MethodID_40, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeDouble( _ _x: Double ) throws /* java.sql.SQLException */ {
try writeDouble( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeFloat(float) throws java.sql.SQLException
private static var writeFloat_MethodID_41: jmethodID?
open func writeFloat( x: Float ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( f: x )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeFloat", methodSig: "(F)V", methodCache: &SQLOutputForward.writeFloat_MethodID_41, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeFloat( _ _x: Float ) throws /* java.sql.SQLException */ {
try writeFloat( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeInt(int) throws java.sql.SQLException
private static var writeInt_MethodID_42: jmethodID?
open func writeInt( x: Int ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( i: jint(x) )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeInt", methodSig: "(I)V", methodCache: &SQLOutputForward.writeInt_MethodID_42, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeInt( _ _x: Int ) throws /* java.sql.SQLException */ {
try writeInt( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeLong(long) throws java.sql.SQLException
private static var writeLong_MethodID_43: jmethodID?
open func writeLong( x: Int64 ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( j: x )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeLong", methodSig: "(J)V", methodCache: &SQLOutputForward.writeLong_MethodID_43, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeLong( _ _x: Int64 ) throws /* java.sql.SQLException */ {
try writeLong( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeNClob(java.sql.NClob) throws java.sql.SQLException
private static var writeNClob_MethodID_44: jmethodID?
open func writeNClob( x: NClob? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeNClob", methodSig: "(Ljava/sql/NClob;)V", methodCache: &SQLOutputForward.writeNClob_MethodID_44, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeNClob( _ _x: NClob? ) throws /* java.sql.SQLException */ {
try writeNClob( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeNString(java.lang.String) throws java.sql.SQLException
private static var writeNString_MethodID_45: jmethodID?
open func writeNString( x: String? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeNString", methodSig: "(Ljava/lang/String;)V", methodCache: &SQLOutputForward.writeNString_MethodID_45, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeNString( _ _x: String? ) throws /* java.sql.SQLException */ {
try writeNString( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeObject(java.sql.SQLData) throws java.sql.SQLException
private static var writeObject_MethodID_46: jmethodID?
open func writeObject( x: SQLData? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeObject", methodSig: "(Ljava/sql/SQLData;)V", methodCache: &SQLOutputForward.writeObject_MethodID_46, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeObject( _ _x: SQLData? ) throws /* java.sql.SQLException */ {
try writeObject( x: _x )
}
/// public default void java.sql.SQLOutput.writeObject(java.lang.Object,java.sql.SQLType) throws java.sql.SQLException
private static var writeObject_MethodID_47: jmethodID?
open func writeObject( x: java_swift.JavaObject?, targetSqlType: SQLType? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
__args[1] = JNIType.toJava( value: targetSqlType, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeObject", methodSig: "(Ljava/lang/Object;Ljava/sql/SQLType;)V", methodCache: &SQLOutputForward.writeObject_MethodID_47, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeObject( _ _x: java_swift.JavaObject?, _ _targetSqlType: SQLType? ) throws /* java.sql.SQLException */ {
try writeObject( x: _x, targetSqlType: _targetSqlType )
}
/// public abstract void java.sql.SQLOutput.writeRef(java.sql.Ref) throws java.sql.SQLException
private static var writeRef_MethodID_48: jmethodID?
open func writeRef( x: Ref? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeRef", methodSig: "(Ljava/sql/Ref;)V", methodCache: &SQLOutputForward.writeRef_MethodID_48, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeRef( _ _x: Ref? ) throws /* java.sql.SQLException */ {
try writeRef( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeRowId(java.sql.RowId) throws java.sql.SQLException
private static var writeRowId_MethodID_49: jmethodID?
open func writeRowId( x: RowId? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeRowId", methodSig: "(Ljava/sql/RowId;)V", methodCache: &SQLOutputForward.writeRowId_MethodID_49, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeRowId( _ _x: RowId? ) throws /* java.sql.SQLException */ {
try writeRowId( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeSQLXML(java.sql.SQLXML) throws java.sql.SQLException
private static var writeSQLXML_MethodID_50: jmethodID?
open func writeSQLXML( x: SQLXML? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeSQLXML", methodSig: "(Ljava/sql/SQLXML;)V", methodCache: &SQLOutputForward.writeSQLXML_MethodID_50, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeSQLXML( _ _x: SQLXML? ) throws /* java.sql.SQLException */ {
try writeSQLXML( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeShort(short) throws java.sql.SQLException
private static var writeShort_MethodID_51: jmethodID?
open func writeShort( x: Int16 ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( s: x )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeShort", methodSig: "(S)V", methodCache: &SQLOutputForward.writeShort_MethodID_51, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeShort( _ _x: Int16 ) throws /* java.sql.SQLException */ {
try writeShort( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeString(java.lang.String) throws java.sql.SQLException
private static var writeString_MethodID_52: jmethodID?
open func writeString( x: String? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeString", methodSig: "(Ljava/lang/String;)V", methodCache: &SQLOutputForward.writeString_MethodID_52, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeString( _ _x: String? ) throws /* java.sql.SQLException */ {
try writeString( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeStruct(java.sql.Struct) throws java.sql.SQLException
private static var writeStruct_MethodID_53: jmethodID?
open func writeStruct( x: Struct? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeStruct", methodSig: "(Ljava/sql/Struct;)V", methodCache: &SQLOutputForward.writeStruct_MethodID_53, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeStruct( _ _x: Struct? ) throws /* java.sql.SQLException */ {
try writeStruct( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeTime(java.sql.Time) throws java.sql.SQLException
private static var writeTime_MethodID_54: jmethodID?
open func writeTime( x: Time? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeTime", methodSig: "(Ljava/sql/Time;)V", methodCache: &SQLOutputForward.writeTime_MethodID_54, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeTime( _ _x: Time? ) throws /* java.sql.SQLException */ {
try writeTime( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeTimestamp(java.sql.Timestamp) throws java.sql.SQLException
private static var writeTimestamp_MethodID_55: jmethodID?
open func writeTimestamp( x: Timestamp? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeTimestamp", methodSig: "(Ljava/sql/Timestamp;)V", methodCache: &SQLOutputForward.writeTimestamp_MethodID_55, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeTimestamp( _ _x: Timestamp? ) throws /* java.sql.SQLException */ {
try writeTimestamp( x: _x )
}
/// public abstract void java.sql.SQLOutput.writeURL(java.net.URL) throws java.sql.SQLException
private static var writeURL_MethodID_56: jmethodID?
open func writeURL( x: /* class java.net.URL */ UnavailableObject? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: x, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeURL", methodSig: "(Ljava/net/URL;)V", methodCache: &SQLOutputForward.writeURL_MethodID_56, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeURL( _ _x: /* class java.net.URL */ UnavailableObject? ) throws /* java.sql.SQLException */ {
try writeURL( x: _x )
}
}