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 * MyJapi.java 26 */ 27 28 package myjapi; 29 30 //import java.math.BigInteger; 31 //import java.math.BigDecimal; 32 import java.nio.ByteBuffer; 33 34 public class MyJapi { 35 36 // ---------------------------------------------------------------------- 37 // Mapping of void result/parameters 38 // ---------------------------------------------------------------------- 39 f0()40 static public native void f0(); 41 42 // ---------------------------------------------------------------------- 43 // String mappings of [const] char* result/parameters 44 // ---------------------------------------------------------------------- 45 s012s()46 static public native String s012s(); s052s()47 static public native String s052s(); s112s(String p0)48 static public native void s112s(String p0); s152s(String p0)49 static public native void s152s(String p0); 50 51 // mapping as result is supported, for s112(s032()) is in C++ s032s()52 static public native String s032s(); s072s()53 static public native String s072s(); 54 // mapping as parameters is not supported, for s132(s012()) is not in C++ 55 //static public native void s132s(String p0); 56 //static public native void s172s(String p0); 57 58 // ---------------------------------------------------------------------- 59 // ByteBuffer<size=0> mappings of void/char pointers 60 // ---------------------------------------------------------------------- 61 s010bb0()62 static public native ByteBuffer s010bb0(); s012bb0()63 static public native ByteBuffer s012bb0(); s030bb0()64 static public native ByteBuffer s030bb0(); s032bb0()65 static public native ByteBuffer s032bb0(); s050bb0()66 static public native ByteBuffer s050bb0(); s052bb0()67 static public native ByteBuffer s052bb0(); s070bb0()68 static public native ByteBuffer s070bb0(); s072bb0()69 static public native ByteBuffer s072bb0(); 70 s110bb0(ByteBuffer p0)71 static public native void s110bb0(ByteBuffer p0); s112bb0(ByteBuffer p0)72 static public native void s112bb0(ByteBuffer p0); s130bb0(ByteBuffer p0)73 static public native void s130bb0(ByteBuffer p0); s132bb0(ByteBuffer p0)74 static public native void s132bb0(ByteBuffer p0); s150bb0(ByteBuffer p0)75 static public native void s150bb0(ByteBuffer p0); s152bb0(ByteBuffer p0)76 static public native void s152bb0(ByteBuffer p0); s170bb0(ByteBuffer p0)77 static public native void s170bb0(ByteBuffer p0); s172bb0(ByteBuffer p0)78 static public native void s172bb0(ByteBuffer p0); 79 80 // ---------------------------------------------------------------------- 81 // ByteBuffer<size=1> mappings of void/char pointers 82 // ---------------------------------------------------------------------- 83 s010bb1()84 static public native ByteBuffer s010bb1(); s012bb1()85 static public native ByteBuffer s012bb1(); s030bb1()86 static public native ByteBuffer s030bb1(); s032bb1()87 static public native ByteBuffer s032bb1(); s050bb1()88 static public native ByteBuffer s050bb1(); s052bb1()89 static public native ByteBuffer s052bb1(); s070bb1()90 static public native ByteBuffer s070bb1(); s072bb1()91 static public native ByteBuffer s072bb1(); 92 s110bb1(ByteBuffer p0)93 static public native void s110bb1(ByteBuffer p0); s112bb1(ByteBuffer p0)94 static public native void s112bb1(ByteBuffer p0); s130bb1(ByteBuffer p0)95 static public native void s130bb1(ByteBuffer p0); s132bb1(ByteBuffer p0)96 static public native void s132bb1(ByteBuffer p0); s150bb1(ByteBuffer p0)97 static public native void s150bb1(ByteBuffer p0); s152bb1(ByteBuffer p0)98 static public native void s152bb1(ByteBuffer p0); s170bb1(ByteBuffer p0)99 static public native void s170bb1(ByteBuffer p0); s172bb1(ByteBuffer p0)100 static public native void s172bb1(ByteBuffer p0); 101 102 // ---------------------------------------------------------------------- 103 // ByteBuffer<size=0> mappings of NULL-allowed void/char pointers 104 // ---------------------------------------------------------------------- 105 s210bb()106 static public native ByteBuffer s210bb(); s212bb()107 static public native ByteBuffer s212bb(); s230bb()108 static public native ByteBuffer s230bb(); s232bb()109 static public native ByteBuffer s232bb(); s250bb()110 static public native ByteBuffer s250bb(); s252bb()111 static public native ByteBuffer s252bb(); s270bb()112 static public native ByteBuffer s270bb(); s272bb()113 static public native ByteBuffer s272bb(); 114 s310bb(ByteBuffer p0)115 static public native void s310bb(ByteBuffer p0); s312bb(ByteBuffer p0)116 static public native void s312bb(ByteBuffer p0); s330bb(ByteBuffer p0)117 static public native void s330bb(ByteBuffer p0); s332bb(ByteBuffer p0)118 static public native void s332bb(ByteBuffer p0); s350bb(ByteBuffer p0)119 static public native void s350bb(ByteBuffer p0); s352bb(ByteBuffer p0)120 static public native void s352bb(ByteBuffer p0); s370bb(ByteBuffer p0)121 static public native void s370bb(ByteBuffer p0); s372bb(ByteBuffer p0)122 static public native void s372bb(ByteBuffer p0); 123 124 // ---------------------------------------------------------------------- 125 // Default mappings of primitive result/parameter types 126 // ---------------------------------------------------------------------- 127 f011()128 static public native boolean f011(); f012()129 static public native byte f012(); f013()130 static public native byte f013(); f014()131 static public native byte f014(); f015()132 static public native short f015(); f016()133 static public native short f016(); f017()134 static public native int f017(); f018()135 static public native int f018(); f019()136 static public native int f019(); f020()137 static public native int f020(); f021()138 static public native long f021(); f022()139 static public native long f022(); f023()140 static public native float f023(); f024()141 static public native double f024(); f025()142 static public native double f025(); 143 f111(boolean p0)144 static public native void f111(boolean p0); f112(byte p0)145 static public native void f112(byte p0); f113(byte p0)146 static public native void f113(byte p0); f114(byte p0)147 static public native void f114(byte p0); f115(short p0)148 static public native void f115(short p0); f116(short p0)149 static public native void f116(short p0); f117(int p0)150 static public native void f117(int p0); f118(int p0)151 static public native void f118(int p0); f119(int p0)152 static public native void f119(int p0); f120(int p0)153 static public native void f120(int p0); f121(long p0)154 static public native void f121(long p0); f122(long p0)155 static public native void f122(long p0); f123(float p0)156 static public native void f123(float p0); f124(double p0)157 static public native void f124(double p0); f125(double p0)158 static public native void f125(double p0); 159 f031()160 static public native boolean f031(); f032()161 static public native byte f032(); f033()162 static public native byte f033(); f034()163 static public native byte f034(); f035()164 static public native short f035(); f036()165 static public native short f036(); f037()166 static public native int f037(); f038()167 static public native int f038(); f039()168 static public native int f039(); f040()169 static public native int f040(); f041()170 static public native long f041(); f042()171 static public native long f042(); f043()172 static public native float f043(); f044()173 static public native double f044(); f045()174 static public native double f045(); 175 f131(boolean p0)176 static public native void f131(boolean p0); f132(byte p0)177 static public native void f132(byte p0); f133(byte p0)178 static public native void f133(byte p0); f134(byte p0)179 static public native void f134(byte p0); f135(short p0)180 static public native void f135(short p0); f136(short p0)181 static public native void f136(short p0); f137(int p0)182 static public native void f137(int p0); f138(int p0)183 static public native void f138(int p0); f139(int p0)184 static public native void f139(int p0); f140(int p0)185 static public native void f140(int p0); f141(long p0)186 static public native void f141(long p0); f142(long p0)187 static public native void f142(long p0); f143(float p0)188 static public native void f143(float p0); f144(double p0)189 static public native void f144(double p0); f145(double p0)190 static public native void f145(double p0); 191 192 // ---------------------------------------------------------------------- 193 // ByteBuffer mappings of references of primitive result/parameter types 194 // ---------------------------------------------------------------------- 195 f211bb()196 static public native ByteBuffer f211bb(); f212bb()197 static public native ByteBuffer f212bb(); f213bb()198 static public native ByteBuffer f213bb(); f214bb()199 static public native ByteBuffer f214bb(); f215bb()200 static public native ByteBuffer f215bb(); f216bb()201 static public native ByteBuffer f216bb(); f217bb()202 static public native ByteBuffer f217bb(); f218bb()203 static public native ByteBuffer f218bb(); f219bb()204 static public native ByteBuffer f219bb(); f220bb()205 static public native ByteBuffer f220bb(); f221bb()206 static public native ByteBuffer f221bb(); f222bb()207 static public native ByteBuffer f222bb(); f223bb()208 static public native ByteBuffer f223bb(); f224bb()209 static public native ByteBuffer f224bb(); f225bb()210 static public native ByteBuffer f225bb(); 211 f311bb(ByteBuffer p0)212 static public native void f311bb(ByteBuffer p0); f312bb(ByteBuffer p0)213 static public native void f312bb(ByteBuffer p0); f313bb(ByteBuffer p0)214 static public native void f313bb(ByteBuffer p0); f314bb(ByteBuffer p0)215 static public native void f314bb(ByteBuffer p0); f315bb(ByteBuffer p0)216 static public native void f315bb(ByteBuffer p0); f316bb(ByteBuffer p0)217 static public native void f316bb(ByteBuffer p0); f317bb(ByteBuffer p0)218 static public native void f317bb(ByteBuffer p0); f318bb(ByteBuffer p0)219 static public native void f318bb(ByteBuffer p0); f319bb(ByteBuffer p0)220 static public native void f319bb(ByteBuffer p0); f320bb(ByteBuffer p0)221 static public native void f320bb(ByteBuffer p0); f321bb(ByteBuffer p0)222 static public native void f321bb(ByteBuffer p0); f322bb(ByteBuffer p0)223 static public native void f322bb(ByteBuffer p0); f323bb(ByteBuffer p0)224 static public native void f323bb(ByteBuffer p0); f324bb(ByteBuffer p0)225 static public native void f324bb(ByteBuffer p0); f325bb(ByteBuffer p0)226 static public native void f325bb(ByteBuffer p0); 227 f231bb()228 static public native ByteBuffer f231bb(); f232bb()229 static public native ByteBuffer f232bb(); f233bb()230 static public native ByteBuffer f233bb(); f234bb()231 static public native ByteBuffer f234bb(); f235bb()232 static public native ByteBuffer f235bb(); f236bb()233 static public native ByteBuffer f236bb(); f237bb()234 static public native ByteBuffer f237bb(); f238bb()235 static public native ByteBuffer f238bb(); f239bb()236 static public native ByteBuffer f239bb(); f240bb()237 static public native ByteBuffer f240bb(); f241bb()238 static public native ByteBuffer f241bb(); f242bb()239 static public native ByteBuffer f242bb(); f243bb()240 static public native ByteBuffer f243bb(); f244bb()241 static public native ByteBuffer f244bb(); f245bb()242 static public native ByteBuffer f245bb(); 243 f331bb(ByteBuffer p0)244 static public native void f331bb(ByteBuffer p0); f332bb(ByteBuffer p0)245 static public native void f332bb(ByteBuffer p0); f333bb(ByteBuffer p0)246 static public native void f333bb(ByteBuffer p0); f334bb(ByteBuffer p0)247 static public native void f334bb(ByteBuffer p0); f335bb(ByteBuffer p0)248 static public native void f335bb(ByteBuffer p0); f336bb(ByteBuffer p0)249 static public native void f336bb(ByteBuffer p0); f337bb(ByteBuffer p0)250 static public native void f337bb(ByteBuffer p0); f338bb(ByteBuffer p0)251 static public native void f338bb(ByteBuffer p0); f339bb(ByteBuffer p0)252 static public native void f339bb(ByteBuffer p0); f340bb(ByteBuffer p0)253 static public native void f340bb(ByteBuffer p0); f341bb(ByteBuffer p0)254 static public native void f341bb(ByteBuffer p0); f342bb(ByteBuffer p0)255 static public native void f342bb(ByteBuffer p0); f343bb(ByteBuffer p0)256 static public native void f343bb(ByteBuffer p0); f344bb(ByteBuffer p0)257 static public native void f344bb(ByteBuffer p0); f345bb(ByteBuffer p0)258 static public native void f345bb(ByteBuffer p0); 259 260 // ---------------------------------------------------------------------- 261 // Value-Copy mappings of references of primitive result/parameter types 262 // ---------------------------------------------------------------------- 263 f211v()264 static public native boolean f211v(); f212v()265 static public native byte f212v(); f213v()266 static public native byte f213v(); f214v()267 static public native byte f214v(); f215v()268 static public native short f215v(); f216v()269 static public native short f216v(); f217v()270 static public native int f217v(); f218v()271 static public native int f218v(); f221v()272 static public native long f221v(); f222v()273 static public native long f222v(); f223v()274 static public native float f223v(); f224v()275 static public native double f224v(); 276 f311v(boolean p0)277 static public native void f311v(boolean p0); f312v(byte p0)278 static public native void f312v(byte p0); f313v(byte p0)279 static public native void f313v(byte p0); f314v(byte p0)280 static public native void f314v(byte p0); f315v(short p0)281 static public native void f315v(short p0); f316v(short p0)282 static public native void f316v(short p0); f317v(int p0)283 static public native void f317v(int p0); f318v(int p0)284 static public native void f318v(int p0); f321v(long p0)285 static public native void f321v(long p0); f322v(long p0)286 static public native void f322v(long p0); f323v(float p0)287 static public native void f323v(float p0); f324v(double p0)288 static public native void f324v(double p0); 289 f231v()290 static public native boolean f231v(); f232v()291 static public native byte f232v(); f233v()292 static public native byte f233v(); f234v()293 static public native byte f234v(); f235v()294 static public native short f235v(); f236v()295 static public native short f236v(); f237v()296 static public native int f237v(); f238v()297 static public native int f238v(); f241v()298 static public native long f241v(); f242v()299 static public native long f242v(); f243v()300 static public native float f243v(); f244v()301 static public native double f244v(); 302 f331v(boolean[] p0)303 static public native void f331v(boolean[] p0); f332v(byte[] p0)304 static public native void f332v(byte[] p0); f333v(byte[] p0)305 static public native void f333v(byte[] p0); f334v(byte[] p0)306 static public native void f334v(byte[] p0); f335v(short[] p0)307 static public native void f335v(short[] p0); f336v(short[] p0)308 static public native void f336v(short[] p0); f337v(int[] p0)309 static public native void f337v(int[] p0); f338v(int[] p0)310 static public native void f338v(int[] p0); f341v(long[] p0)311 static public native void f341v(long[] p0); f342v(long[] p0)312 static public native void f342v(long[] p0); f343v(float[] p0)313 static public native void f343v(float[] p0); f344v(double[] p0)314 static public native void f344v(double[] p0); 315 316 // ---------------------------------------------------------------------- 317 // ByteBuffer<size=0> mappings of pointers to primitive types 318 // ---------------------------------------------------------------------- 319 f411bb0()320 static public native ByteBuffer f411bb0(); f412bb0()321 static public native ByteBuffer f412bb0(); f413bb0()322 static public native ByteBuffer f413bb0(); f414bb0()323 static public native ByteBuffer f414bb0(); f415bb0()324 static public native ByteBuffer f415bb0(); f416bb0()325 static public native ByteBuffer f416bb0(); f417bb0()326 static public native ByteBuffer f417bb0(); f418bb0()327 static public native ByteBuffer f418bb0(); f421bb0()328 static public native ByteBuffer f421bb0(); f422bb0()329 static public native ByteBuffer f422bb0(); f423bb0()330 static public native ByteBuffer f423bb0(); f424bb0()331 static public native ByteBuffer f424bb0(); 332 f431bb0()333 static public native ByteBuffer f431bb0(); f432bb0()334 static public native ByteBuffer f432bb0(); f433bb0()335 static public native ByteBuffer f433bb0(); f434bb0()336 static public native ByteBuffer f434bb0(); f435bb0()337 static public native ByteBuffer f435bb0(); f436bb0()338 static public native ByteBuffer f436bb0(); f437bb0()339 static public native ByteBuffer f437bb0(); f438bb0()340 static public native ByteBuffer f438bb0(); f441bb0()341 static public native ByteBuffer f441bb0(); f442bb0()342 static public native ByteBuffer f442bb0(); f443bb0()343 static public native ByteBuffer f443bb0(); f444bb0()344 static public native ByteBuffer f444bb0(); 345 f451bb0()346 static public native ByteBuffer f451bb0(); f452bb0()347 static public native ByteBuffer f452bb0(); f453bb0()348 static public native ByteBuffer f453bb0(); f454bb0()349 static public native ByteBuffer f454bb0(); f455bb0()350 static public native ByteBuffer f455bb0(); f456bb0()351 static public native ByteBuffer f456bb0(); f457bb0()352 static public native ByteBuffer f457bb0(); f458bb0()353 static public native ByteBuffer f458bb0(); f461bb0()354 static public native ByteBuffer f461bb0(); f462bb0()355 static public native ByteBuffer f462bb0(); f463bb0()356 static public native ByteBuffer f463bb0(); f464bb0()357 static public native ByteBuffer f464bb0(); 358 f471bb0()359 static public native ByteBuffer f471bb0(); f472bb0()360 static public native ByteBuffer f472bb0(); f473bb0()361 static public native ByteBuffer f473bb0(); f474bb0()362 static public native ByteBuffer f474bb0(); f475bb0()363 static public native ByteBuffer f475bb0(); f476bb0()364 static public native ByteBuffer f476bb0(); f477bb0()365 static public native ByteBuffer f477bb0(); f478bb0()366 static public native ByteBuffer f478bb0(); f481bb0()367 static public native ByteBuffer f481bb0(); f482bb0()368 static public native ByteBuffer f482bb0(); f483bb0()369 static public native ByteBuffer f483bb0(); f484bb0()370 static public native ByteBuffer f484bb0(); 371 f511bb0(ByteBuffer p0)372 static public native void f511bb0(ByteBuffer p0); f512bb0(ByteBuffer p0)373 static public native void f512bb0(ByteBuffer p0); f513bb0(ByteBuffer p0)374 static public native void f513bb0(ByteBuffer p0); f514bb0(ByteBuffer p0)375