-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArray.swift
More file actions
276 lines (200 loc) · 13.6 KB
/
Array.swift
File metadata and controls
276 lines (200 loc) · 13.6 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.sql.Array ///
public protocol Array: JavaProtocol {
/// public abstract void java.sql.Array.free() throws java.sql.SQLException
func free() throws /* java.sql.SQLException */
/// public abstract java.lang.Object java.sql.Array.getArray(long,int) throws java.sql.SQLException
func getArray( index: Int64, count: Int ) throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract java.lang.Object java.sql.Array.getArray(long,int,java.util.Map) throws java.sql.SQLException
func getArray( index: Int64, count: Int, map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract java.lang.Object java.sql.Array.getArray(java.util.Map) throws java.sql.SQLException
func getArray( map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract java.lang.Object java.sql.Array.getArray() throws java.sql.SQLException
func getArray() throws /* java.sql.SQLException */ -> java_swift.JavaObject!
/// public abstract int java.sql.Array.getBaseType() throws java.sql.SQLException
func getBaseType() throws /* java.sql.SQLException */ -> Int
/// public abstract java.lang.String java.sql.Array.getBaseTypeName() throws java.sql.SQLException
func getBaseTypeName() throws /* java.sql.SQLException */ -> String!
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet(long,int) throws java.sql.SQLException
func getResultSet( index: Int64, count: Int ) throws /* java.sql.SQLException */ -> ResultSet!
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet(long,int,java.util.Map) throws java.sql.SQLException
func getResultSet( index: Int64, count: Int, map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet!
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet(java.util.Map) throws java.sql.SQLException
func getResultSet( map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet!
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet() throws java.sql.SQLException
func getResultSet() throws /* java.sql.SQLException */ -> ResultSet!
}
open class ArrayForward: JNIObjectForward, Array {
private static var ArrayJNIClass: jclass?
/// public abstract void java.sql.Array.free() throws java.sql.SQLException
private static var free_MethodID_12: jmethodID?
open func free() throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "free", methodSig: "()V", methodCache: &ArrayForward.free_MethodID_12, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
/// public abstract java.lang.Object java.sql.Array.getArray(long,int) throws java.sql.SQLException
private static var getArray_MethodID_13: jmethodID?
open func getArray( index: Int64, count: Int ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( j: index )
__args[1] = jvalue( i: jint(count) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getArray", methodSig: "(JI)Ljava/lang/Object;", methodCache: &ArrayForward.getArray_MethodID_13, 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 getArray( _ _index: Int64, _ _count: Int ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
return try getArray( index: _index, count: _count )
}
/// public abstract java.lang.Object java.sql.Array.getArray(long,int,java.util.Map) throws java.sql.SQLException
private static var getArray_MethodID_14: jmethodID?
open func getArray( index: Int64, count: Int, map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = jvalue( j: index )
__args[1] = jvalue( i: jint(count) )
__args[2] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getArray", methodSig: "(JILjava/util/Map;)Ljava/lang/Object;", methodCache: &ArrayForward.getArray_MethodID_14, 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 getArray( _ _index: Int64, _ _count: Int, _ _map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
return try getArray( index: _index, count: _count, map: _map )
}
/// public abstract java.lang.Object java.sql.Array.getArray(java.util.Map) throws java.sql.SQLException
private static var getArray_MethodID_15: jmethodID?
open func getArray( map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getArray", methodSig: "(Ljava/util/Map;)Ljava/lang/Object;", methodCache: &ArrayForward.getArray_MethodID_15, 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 getArray( _ _map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
return try getArray( map: _map )
}
/// public abstract java.lang.Object java.sql.Array.getArray() throws java.sql.SQLException
private static var getArray_MethodID_16: jmethodID?
open func getArray() throws /* java.sql.SQLException */ -> java_swift.JavaObject! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getArray", methodSig: "()Ljava/lang/Object;", methodCache: &ArrayForward.getArray_MethodID_16, 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 int java.sql.Array.getBaseType() throws java.sql.SQLException
private static var getBaseType_MethodID_17: jmethodID?
open func getBaseType() throws /* java.sql.SQLException */ -> Int {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "getBaseType", methodSig: "()I", methodCache: &ArrayForward.getBaseType_MethodID_17, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return Int(__return)
}
/// public abstract java.lang.String java.sql.Array.getBaseTypeName() throws java.sql.SQLException
private static var getBaseTypeName_MethodID_18: jmethodID?
open func getBaseTypeName() throws /* java.sql.SQLException */ -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getBaseTypeName", methodSig: "()Ljava/lang/String;", methodCache: &ArrayForward.getBaseTypeName_MethodID_18, 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.ResultSet java.sql.Array.getResultSet(long,int) throws java.sql.SQLException
private static var getResultSet_MethodID_19: jmethodID?
open func getResultSet( index: Int64, count: Int ) throws /* java.sql.SQLException */ -> ResultSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = jvalue( j: index )
__args[1] = jvalue( i: jint(count) )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResultSet", methodSig: "(JI)Ljava/sql/ResultSet;", methodCache: &ArrayForward.getResultSet_MethodID_19, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ResultSetForward( javaObject: __return ) : nil
}
open func getResultSet( _ _index: Int64, _ _count: Int ) throws /* java.sql.SQLException */ -> ResultSet! {
return try getResultSet( index: _index, count: _count )
}
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet(long,int,java.util.Map) throws java.sql.SQLException
private static var getResultSet_MethodID_20: jmethodID?
open func getResultSet( index: Int64, count: Int, map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 3 )
__args[0] = jvalue( j: index )
__args[1] = jvalue( i: jint(count) )
__args[2] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResultSet", methodSig: "(JILjava/util/Map;)Ljava/sql/ResultSet;", methodCache: &ArrayForward.getResultSet_MethodID_20, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ResultSetForward( javaObject: __return ) : nil
}
open func getResultSet( _ _index: Int64, _ _count: Int, _ _map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet! {
return try getResultSet( index: _index, count: _count, map: _map )
}
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet(java.util.Map) throws java.sql.SQLException
private static var getResultSet_MethodID_21: jmethodID?
open func getResultSet( map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: map, mapClass: "java/util/Map", locals: &__locals )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResultSet", methodSig: "(Ljava/util/Map;)Ljava/sql/ResultSet;", methodCache: &ArrayForward.getResultSet_MethodID_21, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ResultSetForward( javaObject: __return ) : nil
}
open func getResultSet( _ _map: java_swift.JavaMap? ) throws /* java.sql.SQLException */ -> ResultSet! {
return try getResultSet( map: _map )
}
/// public abstract java.sql.ResultSet java.sql.Array.getResultSet() throws java.sql.SQLException
private static var getResultSet_MethodID_22: jmethodID?
open func getResultSet() throws /* java.sql.SQLException */ -> ResultSet! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getResultSet", methodSig: "()Ljava/sql/ResultSet;", methodCache: &ArrayForward.getResultSet_MethodID_22, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
return __return != nil ? ResultSetForward( javaObject: __return ) : nil
}
}