public class examples.JDBCExamples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.JDBCExamples
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/JDBCExamples;
public void exampleCreateDefault(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic io.vertx.ext.jdbc.JDBCClient.createShared:(Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)Lio/vertx/ext/jdbc/JDBCClient;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/JDBCExamples;
0 2 1 vertx Lio/vertx/core/Vertx;
0 2 2 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
config
public void exampleCreateDataSourceName(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
ldc "MyDataSource"
invokestatic io.vertx.ext.jdbc.JDBCClient.createShared:(Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;Ljava/lang/String;)Lio/vertx/ext/jdbc/JDBCClient;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/JDBCExamples;
0 2 1 vertx Lio/vertx/core/Vertx;
0 2 2 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
config
public void exampleCreateWithDataSource(io.vertx.core.Vertx, javax.sql.DataSource);
descriptor: (Lio/vertx/core/Vertx;Ljavax/sql/DataSource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic io.vertx.ext.jdbc.JDBCClient.create:(Lio/vertx/core/Vertx;Ljavax/sql/DataSource;)Lio/vertx/ext/jdbc/JDBCClient;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/JDBCExamples;
0 2 1 vertx Lio/vertx/core/Vertx;
0 2 2 dataSource Ljavax/sql/DataSource;
MethodParameters:
Name Flags
vertx
dataSource
public void exampleCreateNonShared(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic io.vertx.ext.jdbc.JDBCClient.createNonShared:(Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)Lio/vertx/ext/jdbc/JDBCClient;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/JDBCExamples;
0 2 1 vertx Lio/vertx/core/Vertx;
0 2 2 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
config
public void example4(io.vertx.ext.jdbc.JDBCClient);
descriptor: (Lio/vertx/ext/jdbc/JDBCClient;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokedynamic handle()Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
examples/JDBCExamples.lambda$0(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.ext.jdbc.JDBCClient.getConnection:(Lio/vertx/core/Handler;)Lio/vertx/ext/sql/SQLClient;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/JDBCExamples;
0 2 1 client Lio/vertx/ext/jdbc/JDBCClient;
MethodParameters:
Name Flags
client
public void example5(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
1: ldc "url"
ldc "jdbc:hsqldb:mem:test?shutdown=true"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
2: ldc "driver_class"
ldc "org.hsqldb.jdbcDriver"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
3: ldc "max_pool_size"
bipush 30
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Integer;)Lio/vertx/core/json/JsonObject;
4: astore 2
start local 2 5: aload 1
aload 2
invokestatic io.vertx.ext.jdbc.JDBCClient.createShared:(Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)Lio/vertx/ext/jdbc/JDBCClient;
pop
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lexamples/JDBCExamples;
0 7 1 vertx Lio/vertx/core/Vertx;
5 7 2 config Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
private static void lambda$0(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.ext.sql.SQLConnection
astore 1
start local 1 2: aload 1
ldc "SELECT * FROM some_table"
invokedynamic handle()Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
examples/JDBCExamples.lambda$1(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.ext.sql.SQLConnection.query:(Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/ext/sql/SQLConnection;
pop
end local 1 3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 res Lio/vertx/core/AsyncResult<Lio/vertx/ext/sql/SQLConnection;>;
2 3 1 connection Lio/vertx/ext/sql/SQLConnection;
private static void lambda$1(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 2
1: aload 0
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.ext.sql.ResultSet
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 res2 Lio/vertx/core/AsyncResult<Lio/vertx/ext/sql/ResultSet;>;
}
SourceFile: "JDBCExamples.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
RuntimeInvisibleAnnotations:
io.vertx.docgen.Source()