-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClob.swift
More file actions
220 lines (151 loc) · 10.3 KB
/
Clob.swift
File metadata and controls
220 lines (151 loc) · 10.3 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// 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( searchstr: String?, start: Int64 ) throws /* java.sql.SQLException */ -> Int64
/// public abstract long java.sql.Clob.position(java.sql.Clob,long) throws java.sql.SQLException
func position( searchstr: Clob?, start: Int64 ) throws /* java.sql.SQLException */ -> Int64
/// public abstract void java.sql.Clob.truncate(long) throws java.sql.SQLException
func truncate( len: Int64 ) throws /* java.sql.SQLException */
/// public abstract int java.sql.Clob.setString(long,java.lang.String,int,int) throws java.sql.SQLException
func setString( pos: Int64, str: String?, offset: Int, len: Int ) throws /* java.sql.SQLException */ -> Int
/// public abstract int java.sql.Clob.setString(long,java.lang.String) throws java.sql.SQLException
func setString( pos: Int64, str: 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 void java.sql.Clob.free() throws java.sql.SQLException
func free() throws /* java.sql.SQLException */
/// public abstract java.lang.String java.sql.Clob.getSubString(long,int) throws java.sql.SQLException
func getSubString( pos: Int64, length: Int ) throws /* java.sql.SQLException */ -> String!
/// public abstract java.io.InputStream java.sql.Clob.getAsciiStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream(long,long) throws java.sql.SQLException
}
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.toSwift( 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( searchstr: String?, start: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: searchstr, locals: &__locals )
__args[1] = JNIType.toJava( value: start, 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.toSwift( type: Int64(), from: __return )
}
open func position( _ _searchstr: String?, _ _start: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
return try position( searchstr: _searchstr, start: _start )
}
/// 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( searchstr: Clob?, start: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: searchstr, locals: &__locals )
__args[1] = JNIType.toJava( value: start, 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.toSwift( type: Int64(), from: __return )
}
open func position( _ _searchstr: Clob?, _ _start: Int64 ) throws /* java.sql.SQLException */ -> Int64 {
return try position( searchstr: _searchstr, start: _start )
}
/// public abstract void java.sql.Clob.truncate(long) throws java.sql.SQLException
private static var truncate_MethodID_12: jmethodID?
open func truncate( len: Int64 ) throws /* java.sql.SQLException */ {
var __args = [jvalue]( repeating: jvalue(), count: 1 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: len, 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( _ _len: Int64 ) throws /* java.sql.SQLException */ {
try truncate( len: _len )
}
/// public abstract int java.sql.Clob.setString(long,java.lang.String,int,int) throws java.sql.SQLException
private static var setString_MethodID_13: jmethodID?
open func setString( pos: Int64, str: String?, offset: Int, len: Int ) throws /* java.sql.SQLException */ -> Int {
var __args = [jvalue]( repeating: jvalue(), count: 4 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: pos, locals: &__locals )
__args[1] = JNIType.toJava( value: str, locals: &__locals )
__args[2] = JNIType.toJava( value: offset, locals: &__locals )
__args[3] = JNIType.toJava( value: len, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "setString", methodSig: "(JLjava/lang/String;II)I", methodCache: &ClobForward.setString_MethodID_13, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.toSwift( type: Int(), from: __return )
}
open func setString( _ _pos: Int64, _ _str: String?, _ _offset: Int, _ _len: Int ) throws /* java.sql.SQLException */ -> Int {
return try setString( pos: _pos, str: _str, offset: _offset, len: _len )
}
/// public abstract int java.sql.Clob.setString(long,java.lang.String) throws java.sql.SQLException
private static var setString_MethodID_14: jmethodID?
open func setString( pos: Int64, str: String? ) throws /* java.sql.SQLException */ -> Int {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: pos, locals: &__locals )
__args[1] = JNIType.toJava( value: str, locals: &__locals )
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "setString", methodSig: "(JLjava/lang/String;)I", methodCache: &ClobForward.setString_MethodID_14, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
return JNIType.toSwift( type: Int(), from: __return )
}
open func setString( _ _pos: Int64, _ _str: String? ) throws /* java.sql.SQLException */ -> Int {
return try setString( pos: _pos, str: _str )
}
/// 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 void java.sql.Clob.free() throws java.sql.SQLException
private static var free_MethodID_15: 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_15, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
throw SQLException( javaObject: throwable )
}
}
/// 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( pos: Int64, length: Int ) throws /* java.sql.SQLException */ -> String! {
var __args = [jvalue]( repeating: jvalue(), count: 2 )
var __locals = [jobject]()
__args[0] = JNIType.toJava( value: pos, locals: &__locals )
__args[1] = JNIType.toJava( value: length, 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.toSwift( type: String(), from: __return )
}
open func getSubString( _ _pos: Int64, _ _length: Int ) throws /* java.sql.SQLException */ -> String! {
return try getSubString( pos: _pos, length: _length )
}
/// public abstract java.io.InputStream java.sql.Clob.getAsciiStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream() throws java.sql.SQLException
/// public abstract java.io.Reader java.sql.Clob.getCharacterStream(long,long) throws java.sql.SQLException
}