-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatchUpdateException.swift
More file actions
243 lines (180 loc) · 11.8 KB
/
BatchUpdateException.swift
File metadata and controls
243 lines (180 loc) · 11.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
import java_swift
import java_lang
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// JAVA_HOME: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home ///
/// Tue Dec 20 11:30:32 GMT 2016 ///
/// class java.sql.BatchUpdateException ///
open class BatchUpdateException: SQLException {
public convenience init?( casting object: java_lang.JavaObject, _ file: StaticString = #file, _ line: Int = #line ) {
self.init( javaObject: nil )
if !object.validDownCast( toJavaClass: "java.sql.BatchUpdateException", file, line ) {
return nil
}
object.withJavaObject {
self.javaObject = $0
}
}
private static var BatchUpdateExceptionJNIClass: jclass?
/// private int[] java.sql.BatchUpdateException.updateCounts
/// private static final long java.sql.BatchUpdateException.serialVersionUID
/// private java.lang.String java.sql.SQLException.SQLState
/// private int java.sql.SQLException.vendorCode
/// private volatile java.sql.SQLException java.sql.SQLException.next
/// private static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater java.sql.SQLException.nextUpdater
/// private static final long java.sql.SQLException.serialVersionUID
/// static final long java.lang.Exception.serialVersionUID
/// private static final long java.lang.Throwable.serialVersionUID
/// private java.lang.String java.lang.Throwable.detailMessage
/// private java.lang.Throwable java.lang.Throwable.cause
/// private java.lang.StackTraceElement[] java.lang.Throwable.stackTrace
/// public java.sql.BatchUpdateException(java.lang.String,java.lang.String,int,int[])
private static var new_MethodID_1: jmethodID?
public convenience init( arg0: String?, arg1: String?, arg2: Int, arg3: [Int32]? ) {
var __args = [jvalue]( repeating: jvalue(), count: 4 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
__args[2] = JNIType.encode( value: arg2, locals: &__locals )
__args[3] = JNIType.encode( value: arg3, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/String;I[I)V", methodCache: &BatchUpdateException.new_MethodID_1, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: String?, _ _arg2: Int, _ _arg3: [Int32]? ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2, arg3: _arg3 )
}
/// public java.sql.BatchUpdateException(java.lang.String,java.lang.String,int[])
private static var new_MethodID_2: jmethodID?
public convenience init( arg0: String?, arg1: String?, arg2: [Int32]? ) {
var __args = [jvalue]( repeating: jvalue(), count: 3 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
__args[2] = JNIType.encode( value: arg2, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/String;[I)V", methodCache: &BatchUpdateException.new_MethodID_2, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: String?, _ _arg2: [Int32]? ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2 )
}
/// public java.sql.BatchUpdateException(java.lang.String,int[])
private static var new_MethodID_3: jmethodID?
public convenience init( arg0: String?, arg1: [Int32]? ) {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;[I)V", methodCache: &BatchUpdateException.new_MethodID_3, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: [Int32]? ) {
self.init( arg0: _arg0, arg1: _arg1 )
}
/// public java.sql.BatchUpdateException(int[])
private static var new_MethodID_4: jmethodID?
public convenience init( arg0: [Int32]? ) {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "([I)V", methodCache: &BatchUpdateException.new_MethodID_4, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: [Int32]? ) {
self.init( arg0: _arg0 )
}
/// public java.sql.BatchUpdateException()
private static var new_MethodID_5: jmethodID?
public convenience init() {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "()V", methodCache: &BatchUpdateException.new_MethodID_5, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
/// public java.sql.BatchUpdateException(java.lang.Throwable)
private static var new_MethodID_6: jmethodID?
public convenience init( arg0: java_lang.Throwable? ) {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/Throwable;)V", methodCache: &BatchUpdateException.new_MethodID_6, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: java_lang.Throwable? ) {
self.init( arg0: _arg0 )
}
/// public java.sql.BatchUpdateException(int[],java.lang.Throwable)
private static var new_MethodID_7: jmethodID?
public convenience init( arg0: [Int32]?, arg1: java_lang.Throwable? ) {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "([ILjava/lang/Throwable;)V", methodCache: &BatchUpdateException.new_MethodID_7, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: [Int32]?, _ _arg1: java_lang.Throwable? ) {
self.init( arg0: _arg0, arg1: _arg1 )
}
/// public java.sql.BatchUpdateException(java.lang.String,int[],java.lang.Throwable)
private static var new_MethodID_8: jmethodID?
public convenience init( arg0: String?, arg1: [Int32]?, arg2: java_lang.Throwable? ) {
var __args = [jvalue]( repeating: jvalue(), count: 3 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
__args[2] = JNIType.encode( value: arg2, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;[ILjava/lang/Throwable;)V", methodCache: &BatchUpdateException.new_MethodID_8, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: [Int32]?, _ _arg2: java_lang.Throwable? ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2 )
}
/// public java.sql.BatchUpdateException(java.lang.String,java.lang.String,int[],java.lang.Throwable)
private static var new_MethodID_9: jmethodID?
public convenience init( arg0: String?, arg1: String?, arg2: [Int32]?, arg3: java_lang.Throwable? ) {
var __args = [jvalue]( repeating: jvalue(), count: 4 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
__args[2] = JNIType.encode( value: arg2, locals: &__locals )
__args[3] = JNIType.encode( value: arg3, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/String;[ILjava/lang/Throwable;)V", methodCache: &BatchUpdateException.new_MethodID_9, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: String?, _ _arg2: [Int32]?, _ _arg3: java_lang.Throwable? ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2, arg3: _arg3 )
}
/// public java.sql.BatchUpdateException(java.lang.String,java.lang.String,int,int[],java.lang.Throwable)
private static var new_MethodID_10: jmethodID?
public convenience init( arg0: String?, arg1: String?, arg2: Int, arg3: [Int32]?, arg4: java_lang.Throwable? ) {
var __args = [jvalue]( repeating: jvalue(), count: 5 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
__args[2] = JNIType.encode( value: arg2, locals: &__locals )
__args[3] = JNIType.encode( value: arg3, locals: &__locals )
__args[4] = JNIType.encode( value: arg4, locals: &__locals )
let __object = JNIMethod.NewObject( className: "java/sql/BatchUpdateException", classCache: &BatchUpdateException.BatchUpdateExceptionJNIClass, methodSig: "(Ljava/lang/String;Ljava/lang/String;I[ILjava/lang/Throwable;)V", methodCache: &BatchUpdateException.new_MethodID_10, args: &__args, locals: &__locals )
self.init( javaObject: __object )
JNI.DeleteLocalRef( __object )
}
public convenience init( _ _arg0: String?, _ _arg1: String?, _ _arg2: Int, _ _arg3: [Int32]?, _ _arg4: java_lang.Throwable? ) {
self.init( arg0: _arg0, arg1: _arg1, arg2: _arg2, arg3: _arg3, arg4: _arg4 )
}
/// public int[] java.sql.BatchUpdateException.getUpdateCounts()
private static var getUpdateCounts_MethodID_11: jmethodID?
open func getUpdateCounts() -> [Int32]! {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getUpdateCounts", methodSig: "()[I", methodCache: &BatchUpdateException.getUpdateCounts_MethodID_11, args: &__args, locals: &__locals )
return JNIType.decode( type: [Int32](), from: __return )
}
}