1 /*
2  Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License, version 2.0,
6  as published by the Free Software Foundation.
7 
8  This program is also distributed with certain software (including
9  but not limited to OpenSSL) that is licensed under separate terms,
10  as designated in a particular file or component or in included license
11  documentation.  The authors of MySQL hereby grant you an additional
12  permission to link the program and your derivative works with the
13  separately licensed software that they have included with MySQL.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  GNU General Public License, version 2.0, for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 /*
25  * A.java
26  */
27 
28 package myjapi;
29 
30 public class A extends com.mysql.jtie.Wrapper {
31     // this c'tor may me protected, for access from JNI is still possible
32     // with default constructor, cdelegate needs to be written from JNI
A()33     protected A() {
34         //System.out.println("<-> myjapi.A()");
35     };
36 
37     // constructor wrapper (mapped by reference)
create_r()38     static public native A create_r();
39 
40     // constructor wrapper (mapped by reference)
create_r(int p0)41     static public native A create_r(int p0);
42 
43     // constructor wrapper (mapped by pointer)
create_p()44     static public native A create_p();
45 
46     // constructor wrapper (mapped by pointer)
create_p(int p0)47     static public native A create_p(int p0);
48 
49     // destructor wrapper (mapped by reference)
delete_r(A a)50     static public native void delete_r(A a);
51 
52     // destructor wrapper (mapped by pointer)
delete_p(A a)53     static public native void delete_p(A a);
54 
55     // static method
f0s()56     static public native int f0s();
57 
58     // non-virtual method
f0n(A p0)59     static public native int f0n(A p0);
60 
61     // virtual method
f0v()62     public native int f0v();
63 
64     // creates a B0
newB0()65     public native B0 newB0();
66 
67     // creates a B1
newB1()68     public native B1 newB1();
69 
70     // deletes a B0
del(B0 b)71     public native void del(B0 b);
72 
73     // deletes a B1
del(B1 b)74     public native void del(B1 b);
75 
76     // returns an A
deliver_ptr()77     static public native A deliver_ptr();
78 
79     // returns NULL
deliver_null_ptr()80     static public native A deliver_null_ptr();
81 
82     // returns an A
deliver_ref()83     static public native A deliver_ref();
84 
85     // always supposed to raise an exception
deliver_null_ref()86     static public native A deliver_null_ref();
87 
88     // requires the A returned by deliver_ptr()
take_ptr(A p0)89     static public native void take_ptr(A p0);
90 
91     // requires NULL
take_null_ptr(A p0)92     static public native void take_null_ptr(A p0);
93 
94     // requires the A returned by deliver_ref()
take_ref(A p0)95     static public native void take_ref(A p0);
96 
97     // never supposed to abort but raise an exception when called with null
take_null_ref(A p0)98     static public native void take_null_ref(A p0);
99 
100     // prints an A
print(A p0)101     static public native void print(A p0);
102 
103     // ----------------------------------------------------------------------
104 
105     // static const field accessor
d0sc()106     static public final native int d0sc();
107 
108     // static field accessor
d0s()109     static public final native int d0s();
110 
111     // static field mutator
d0s(int d)112     static public final native void d0s(int d);
113 
114     // instance const field accessor
d0c()115     public final native int d0c();
116 
117     // instance field accessor
d0()118     public final native int d0();
119 
120     // instance field mutator
d0(int d)121     public final native void d0(int d);
122 
123     // ----------------------------------------------------------------------
124 
g0c()125     public native final void g0c();
126 
g1c(byte p0)127     public native final void g1c(byte p0);
128 
g2c(byte p0, short p1)129     public native final void g2c(byte p0, short p1);
130 
g3c(byte p0, short p1, int p2)131     public native final void g3c(byte p0, short p1, int p2);
132 
g0()133     public native final void g0();
134 
g1(byte p0)135     public native final void g1(byte p0);
136 
g2(byte p0, short p1)137     public native final void g2(byte p0, short p1);
138 
g3(byte p0, short p1, int p2)139     public native final void g3(byte p0, short p1, int p2);
140 
g0rc()141     public native final int g0rc();
142 
g1rc(byte p0)143     public native final int g1rc(byte p0);
144 
g2rc(byte p0, short p1)145     public native final int g2rc(byte p0, short p1);
146 
g3rc(byte p0, short p1, int p2)147     public native final int g3rc(byte p0, short p1, int p2);
148 
g0r()149     public native final int g0r();
150 
g1r(byte p0)151     public native final int g1r(byte p0);
152 
g2r(byte p0, short p1)153     public native final int g2r(byte p0, short p1);
154 
g3r(byte p0, short p1, int p2)155     public native final int g3r(byte p0, short p1, int p2);
156 
h0()157     static public native void h0();
158 
h1(byte p0)159     static public native void h1(byte p0);
160 
h2(byte p0, short p1)161     static public native void h2(byte p0, short p1);
162 
h3(byte p0, short p1, int p2)163     static public native void h3(byte p0, short p1, int p2);
164 
h0r()165     static public native int h0r();
166 
h1r(byte p0)167     static public native int h1r(byte p0);
168 
h2r(byte p0, short p1)169     static public native int h2r(byte p0, short p1);
170 
h3r(byte p0, short p1, int p2)171     static public native int h3r(byte p0, short p1, int p2);
172 }
173