-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClob.swift
More file actions
228 lines (159 loc) · 10.9 KB
/
Clob.swift
File metadata and controls
228 lines (159 loc) · 10.9 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
import java_swift
/// 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 ///
/// interface java.sql.Clob ///
public protocol Clob: JavaProtocol {
/// public abstract long java.sql.Clob.length() throws java.sql.SQLException
func length() throws /* java.sql.SQLException */ -> Int64
/// public abstract long java.sql.Clob.position(java.lang.String,long) throws java.sql.SQLException
func position( arg0: String?, arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64
func position( _ _arg0: String?, _ _arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64
/// public abstract long java.sql.Clob.position(java.sql.Clob,long) throws java.sql.SQLException
func position( arg0: Clob?, arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64
func position( _ _arg0: Clob?, _ _arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64
/// public abstract void java.sql.Clob.truncate(long) throws java.sql.SQLException
func truncate( arg0: Int64 ) throws /* java.sql.SQLException */
func truncate( _ _arg0: Int64 ) throws /* java.sql.SQLException */
/// public abstract void java.sql.Clob.free() throws java.sql.SQLException
func free() throws /* java.sql.SQLException */
/// public abstract java.io.InputStream java.sql.Clob.getAsciiStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream(long,long) throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream() throws java.sql.SQLException
/// public abstract int java.sql.Clob.setString(long,java.lang.String,int,int) throws java.sql.SQLException
func setString( arg0: Int64, arg1: String?, arg2: Int, arg3: Int ) throws /* java.sql.SQLException */ -> Int
func setString( _ _arg0: Int64, _ _arg1: String?, _ _arg2: Int, _ _arg3: Int ) throws /* java.sql.SQLException */ -> Int
/// public abstract int java.sql.Clob.setString(long,java.lang.String) throws java.sql.SQLException
func setString( arg0: Int64, arg1: String? ) throws /* java.sql.SQLException */ -> Int
func setString( _ _arg0: Int64, _ _arg1: String? ) throws /* java.sql.SQLException */ -> Int
/// public abstract java.io.OutputStream java.sql.Clob.setAsciiStream(long) throws java.sql.SQLException
/// public abstract java.io.Writer java.sql.Clob.setCharacterStream(long) throws java.sql.SQLException
/// public abstract java.lang.String java.sql.Clob.getSubString(long,int) throws java.sql.SQLException
func getSubString( arg0: Int64, arg1: Int ) throws /* java.sql.SQLException */ -> String!
func getSubString( _ _arg0: Int64, _ _arg1: Int ) throws /* java.sql.SQLException */ -> String!
}
open class ClobForward: JNIObjectForward, Clob {
private static var ClobJNIClass: jclass?
/// public abstract long java.sql.Clob.length() throws java.sql.SQLException
private static var length_MethodID_9: jmethodID?
open func length() throws /* java.sql.SQLException */ -> Int64 {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "length", methodSig: "()J", methodCache: &ClobForward.length_MethodID_9, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: Int64(), from: __return )
}
/// public abstract long java.sql.Clob.position(java.lang.String,long) throws java.sql.SQLException
private static var position_MethodID_10: jmethodID?
open func position( arg0: String?, arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
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 __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "position", methodSig: "(Ljava/lang/String;J)J", methodCache: &ClobForward.position_MethodID_10, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: Int64(), from: __return )
}
open func position( _ _arg0: String?, _ _arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
return try position( arg0: _arg0, arg1: _arg1 )
}
/// public abstract long java.sql.Clob.position(java.sql.Clob,long) throws java.sql.SQLException
private static var position_MethodID_11: jmethodID?
open func position( arg0: Clob?, arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = jvalue( l: arg0?.localJavaObject( &__locals ) )
__args[1] = JNIType.encode( value: arg1, locals: &__locals )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "position", methodSig: "(Ljava/sql/Clob;J)J", methodCache: &ClobForward.position_MethodID_11, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: Int64(), from: __return )
}
open func position( _ _arg0: Clob?, _ _arg1: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
return try position( arg0: _arg0, arg1: _arg1 )
}
/// public abstract void java.sql.Clob.truncate(long) throws java.sql.SQLException
private static var truncate_MethodID_12: jmethodID?
open func truncate( arg0: Int64 ) throws /* java.sql.SQLException */ {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
__args[0] = JNIType.encode( value: arg0, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "truncate", methodSig: "(J)V", methodCache: &ClobForward.truncate_MethodID_12, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
}
open func truncate( _ _arg0: Int64 ) throws /* java.sql.SQLException */ {
try truncate( arg0: _arg0 )
}
/// public abstract void java.sql.Clob.free() throws java.sql.SQLException
private static var free_MethodID_13: jmethodID?
open func free() throws /* java.sql.SQLException */ {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
JNIMethod.CallVoidMethod( object: javaObject, methodName: "free", methodSig: "()V", methodCache: &ClobForward.free_MethodID_13, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
}
/// public abstract java.io.InputStream java.sql.Clob.getAsciiStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream(long,long) throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream() throws java.sql.SQLException
/// public abstract int java.sql.Clob.setString(long,java.lang.String,int,int) throws java.sql.SQLException
private static var setString_MethodID_14: jmethodID?
open func setString( arg0: Int64, arg1: String?, arg2: Int, arg3: Int ) throws /* java.sql.SQLException */ -> Int {
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 __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "setString", methodSig: "(JLjava/lang/String;II)I", methodCache: &ClobForward.setString_MethodID_14, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: Int(), from: __return )
}
open func setString( _ _arg0: Int64, _ _arg1: String?, _ _arg2: Int, _ _arg3: Int ) throws /* java.sql.SQLException */ -> Int {
return try setString( arg0: _arg0, arg1: _arg1, arg2: _arg2, arg3: _arg3 )
}
/// public abstract int java.sql.Clob.setString(long,java.lang.String) throws java.sql.SQLException
private static var setString_MethodID_15: jmethodID?
open func setString( arg0: Int64, arg1: String? ) throws /* java.sql.SQLException */ -> Int {
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 __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "setString", methodSig: "(JLjava/lang/String;)I", methodCache: &ClobForward.setString_MethodID_15, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: Int(), from: __return )
}
open func setString( _ _arg0: Int64, _ _arg1: String? ) throws /* java.sql.SQLException */ -> Int {
return try setString( arg0: _arg0, arg1: _arg1 )
}
/// public abstract java.io.OutputStream java.sql.Clob.setAsciiStream(long) throws java.sql.SQLException
/// public abstract java.io.Writer java.sql.Clob.setCharacterStream(long) throws java.sql.SQLException
/// public abstract java.lang.String java.sql.Clob.getSubString(long,int) throws java.sql.SQLException
private static var getSubString_MethodID_16: jmethodID?
open func getSubString( arg0: Int64, arg1: Int ) throws /* java.sql.SQLException */ -> String! {
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 __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getSubString", methodSig: "(JI)Ljava/lang/String;", methodCache: &ClobForward.getSubString_MethodID_16, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.decode( type: String(), from: __return )
}
open func getSubString( _ _arg0: Int64, _ _arg1: Int ) throws /* java.sql.SQLException */ -> String! {
return try getSubString( arg0: _arg0, arg1: _arg1 )
}
}