-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLData.swift
More file actions
86 lines (58 loc) · 3.65 KB
/
SQLData.swift
File metadata and controls
86 lines (58 loc) · 3.65 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
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.sql.SQLData ///
public protocol SQLData: JavaProtocol {
/// public abstract java.lang.String java.sql.SQLData.getSQLTypeName() throws java.sql.SQLException
func getSQLTypeName() throws /* java.sql.SQLException */ -> String!
/// public abstract void java.sql.SQLData.readSQL(java.sql.SQLInput,java.lang.String) throws java.sql.SQLException
func readSQL( stream: SQLInput?, typeName: String? ) throws /* java.sql.SQLException */
/// public abstract void java.sql.SQLData.writeSQL(java.sql.SQLOutput) throws java.sql.SQLException
func writeSQL( stream: SQLOutput? ) throws /* java.sql.SQLException */
}
open class SQLDataForward: JNIObjectForward, SQLData {
private static var SQLDataJNIClass: jclass?
/// public abstract java.lang.String java.sql.SQLData.getSQLTypeName() throws java.sql.SQLException
private static var getSQLTypeName_MethodID_4: jmethodID?
open func getSQLTypeName() throws /* java.sql.SQLException */ -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getSQLTypeName", methodSig: "()Ljava/lang/String;", methodCache: &SQLDataForward.getSQLTypeName_MethodID_4, 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 void java.sql.SQLData.readSQL(java.sql.SQLInput,java.lang.String) throws java.sql.SQLException
private static var readSQL_MethodID_5: jmethodID?
open func readSQL( stream: SQLInput?, typeName: String? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 2 )
__args[0] = JNIType.toJava( value: stream, locals: &__locals )
__args[1] = JNIType.toJava( value: typeName, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "readSQL", methodSig: "(Ljava/sql/SQLInput;Ljava/lang/String;)V", methodCache: &SQLDataForward.readSQL_MethodID_5, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func readSQL( _ _stream: SQLInput?, _ _typeName: String? ) throws /* java.sql.SQLException */ {
try readSQL( stream: _stream, typeName: _typeName )
}
/// public abstract void java.sql.SQLData.writeSQL(java.sql.SQLOutput) throws java.sql.SQLException
private static var writeSQL_MethodID_6: jmethodID?
open func writeSQL( stream: SQLOutput? ) throws /* java.sql.SQLException */ {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = JNIType.toJava( value: stream, locals: &__locals )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "writeSQL", methodSig: "(Ljava/sql/SQLOutput;)V", methodCache: &SQLDataForward.writeSQL_MethodID_6, args: &__args, locals: &__locals )
if let throwable = JNI.ExceptionCheck() {
defer { JNI.DeleteLocalRef( throwable ) }
throw SQLException( javaObject: throwable )
}
}
open func writeSQL( _ _stream: SQLOutput? ) throws /* java.sql.SQLException */ {
try writeSQL( stream: _stream )
}
}