public class io.vertx.sqlclient.impl.CursorImpl implements io.vertx.sqlclient.Cursor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.sqlclient.impl.CursorImpl
super_class: java.lang.Object
{
private final io.vertx.sqlclient.impl.Connection conn;
descriptor: Lio/vertx/sqlclient/impl/Connection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.sqlclient.impl.tracing.QueryTracer tracer;
descriptor: Lio/vertx/sqlclient/impl/tracing/QueryTracer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.spi.metrics.ClientMetrics metrics;
descriptor: Lio/vertx/core/spi/metrics/ClientMetrics;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.sqlclient.impl.PreparedStatementImpl ps;
descriptor: Lio/vertx/sqlclient/impl/PreparedStatementImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.ContextInternal context;
descriptor: Lio/vertx/core/impl/ContextInternal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean autoCommit;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.sqlclient.impl.TupleInternal params;
descriptor: Lio/vertx/sqlclient/impl/TupleInternal;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String id;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.vertx.sqlclient.impl.QueryResultBuilder<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>, io.vertx.sqlclient.impl.RowSetImpl<io.vertx.sqlclient.Row>, io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>> result;
descriptor: Lio/vertx/sqlclient/impl/QueryResultBuilder;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/sqlclient/impl/QueryResultBuilder<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;Lio/vertx/sqlclient/impl/RowSetImpl<Lio/vertx/sqlclient/Row;>;Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;
void <init>(io.vertx.sqlclient.impl.PreparedStatementImpl, io.vertx.sqlclient.impl.Connection, io.vertx.sqlclient.impl.tracing.QueryTracer, io.vertx.core.spi.metrics.ClientMetrics, io.vertx.core.impl.ContextInternal, boolean, io.vertx.sqlclient.impl.TupleInternal);
descriptor: (Lio/vertx/sqlclient/impl/PreparedStatementImpl;Lio/vertx/sqlclient/impl/Connection;Lio/vertx/sqlclient/impl/tracing/QueryTracer;Lio/vertx/core/spi/metrics/ClientMetrics;Lio/vertx/core/impl/ContextInternal;ZLio/vertx/sqlclient/impl/TupleInternal;)V
flags: (0x0000)
Code:
stack=2, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.sqlclient.impl.CursorImpl.ps:Lio/vertx/sqlclient/impl/PreparedStatementImpl;
2: aload 0
aload 2
putfield io.vertx.sqlclient.impl.CursorImpl.conn:Lio/vertx/sqlclient/impl/Connection;
3: aload 0
aload 3
putfield io.vertx.sqlclient.impl.CursorImpl.tracer:Lio/vertx/sqlclient/impl/tracing/QueryTracer;
4: aload 0
aload 4
putfield io.vertx.sqlclient.impl.CursorImpl.metrics:Lio/vertx/core/spi/metrics/ClientMetrics;
5: aload 0
aload 5
putfield io.vertx.sqlclient.impl.CursorImpl.context:Lio/vertx/core/impl/ContextInternal;
6: aload 0
iload 6
putfield io.vertx.sqlclient.impl.CursorImpl.autoCommit:Z
7: aload 0
aload 7
putfield io.vertx.sqlclient.impl.CursorImpl.params:Lio/vertx/sqlclient/impl/TupleInternal;
8: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 9 1 ps Lio/vertx/sqlclient/impl/PreparedStatementImpl;
0 9 2 conn Lio/vertx/sqlclient/impl/Connection;
0 9 3 tracer Lio/vertx/sqlclient/impl/tracing/QueryTracer;
0 9 4 metrics Lio/vertx/core/spi/metrics/ClientMetrics;
0 9 5 context Lio/vertx/core/impl/ContextInternal;
0 9 6 autoCommit Z
0 9 7 params Lio/vertx/sqlclient/impl/TupleInternal;
MethodParameters:
Name Flags
ps
conn
tracer
metrics
context
autoCommit
params
public synchronized boolean hasMore();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "No current cursor read"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
invokevirtual io.vertx.sqlclient.impl.QueryResultBuilder.isSuspended:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/sqlclient/impl/CursorImpl;
public void read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>);
descriptor: (ILio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual io.vertx.sqlclient.impl.CursorImpl.read:(I)Lio/vertx/core/Future;
astore 3
start local 3 1: aload 2
ifnull 3
2: aload 3
aload 2
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
3: StackMap locals: io.vertx.core.Future
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 4 1 count I
0 4 2 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;>;
1 4 3 fut Lio/vertx/core/Future<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;
Signature: (ILio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;>;)V
MethodParameters:
Name Flags
count
handler
public synchronized io.vertx.core.Future<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>> read(int);
descriptor: (I)Lio/vertx/core/Future;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 2
start local 2 1: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.ps:Lio/vertx/sqlclient/impl/PreparedStatementImpl;
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.params:Lio/vertx/sqlclient/impl/TupleInternal;
aload 0
iload 1
aload 2
invokedynamic handle(Lio/vertx/sqlclient/impl/CursorImpl;ILio/vertx/core/impl/future/PromiseInternal;)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
io/vertx/sqlclient/impl/CursorImpl.lambda$0(ILio/vertx/core/impl/future/PromiseInternal;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.sqlclient.impl.PreparedStatementImpl.withPreparedStatement:(Lio/vertx/sqlclient/Tuple;Lio/vertx/core/Handler;)V
2: aload 2
invokeinterface io.vertx.core.impl.future.PromiseInternal.future:()Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 3 1 count I
1 3 2 promise Lio/vertx/core/impl/future/PromiseInternal<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;
Signature: (I)Lio/vertx/core/Future<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;
MethodParameters:
Name Flags
count
public synchronized boolean isClosed();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.closed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/sqlclient/impl/CursorImpl;
public synchronized void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.context:Lio/vertx/core/impl/ContextInternal;
aload 1
invokeinterface io.vertx.core.impl.ContextInternal.promise:(Lio/vertx/core/Handler;)Lio/vertx/core/impl/future/PromiseInternal;
invokevirtual io.vertx.sqlclient.impl.CursorImpl.close:(Lio/vertx/core/Promise;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 2 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
completionHandler
public synchronized io.vertx.core.Future<java.lang.Void> close();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.context:Lio/vertx/core/impl/ContextInternal;
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 1
start local 1 1: aload 0
aload 1
invokevirtual io.vertx.sqlclient.impl.CursorImpl.close:(Lio/vertx/core/Promise;)V
2: aload 1
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/sqlclient/impl/CursorImpl;
1 3 1 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
Signature: ()Lio/vertx/core/Future<Ljava/lang/Void;>;
private synchronized void close(io.vertx.core.Promise<java.lang.Void>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.closed:Z
ifne 9
1: aload 0
iconst_1
putfield io.vertx.sqlclient.impl.CursorImpl.closed:Z
2: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
ifnonnull 5
3: aload 1
invokeinterface io.vertx.core.Promise.complete:()V
4: goto 9
5: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
astore 2
start local 2 6: aload 0
aconst_null
putfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
7: aload 0
aconst_null
putfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
8: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.ps:Lio/vertx/sqlclient/impl/PreparedStatementImpl;
aload 2
aload 1
invokevirtual io.vertx.sqlclient.impl.PreparedStatementImpl.closeCursor:(Ljava/lang/String;Lio/vertx/core/Promise;)V
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 10 1 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
6 9 2 id Ljava/lang/String;
Signature: (Lio/vertx/core/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
promise
private void lambda$0(int, io.vertx.core.impl.future.PromiseInternal, io.vertx.core.AsyncResult);
descriptor: (ILio/vertx/core/impl/future/PromiseInternal;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=10, locals=6, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 11
1: aload 3
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.sqlclient.impl.PreparedStatement
astore 4
start local 4 2: new io.vertx.sqlclient.impl.QueryExecutor
dup
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.tracer:Lio/vertx/sqlclient/impl/tracing/QueryTracer;
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.metrics:Lio/vertx/core/spi/metrics/ClientMetrics;
getstatic io.vertx.sqlclient.impl.RowSetImpl.FACTORY:Ljava/util/function/Function;
getstatic io.vertx.sqlclient.impl.RowSetImpl.COLLECTOR:Ljava/util/stream/Collector;
invokespecial io.vertx.sqlclient.impl.QueryExecutor.<init>:(Lio/vertx/sqlclient/impl/tracing/QueryTracer;Lio/vertx/core/spi/metrics/ClientMetrics;Ljava/util/function/Function;Ljava/util/stream/Collector;)V
astore 5
start local 5 3: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
ifnonnull 7
4: aload 0
invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
putfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
5: aload 0
aload 5
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.conn:Lio/vertx/sqlclient/impl/Connection;
aload 4
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.autoCommit:Z
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.params:Lio/vertx/sqlclient/impl/TupleInternal;
iload 1
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
iconst_0
aload 2
invokevirtual io.vertx.sqlclient.impl.QueryExecutor.executeExtendedQuery:(Lio/vertx/sqlclient/impl/command/CommandScheduler;Lio/vertx/sqlclient/impl/PreparedStatement;ZLio/vertx/sqlclient/Tuple;ILjava/lang/String;ZLio/vertx/core/impl/future/PromiseInternal;)Lio/vertx/sqlclient/impl/QueryResultBuilder;
putfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
6: goto 12
StackMap locals: io.vertx.sqlclient.impl.PreparedStatement io.vertx.sqlclient.impl.QueryExecutor
StackMap stack:
7: aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
invokevirtual io.vertx.sqlclient.impl.QueryResultBuilder.isSuspended:()Z
ifeq 10
8: aload 0
aload 5
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.conn:Lio/vertx/sqlclient/impl/Connection;
aload 4
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.autoCommit:Z
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.params:Lio/vertx/sqlclient/impl/TupleInternal;
iload 1
aload 0
getfield io.vertx.sqlclient.impl.CursorImpl.id:Ljava/lang/String;
iconst_1
aload 2
invokevirtual io.vertx.sqlclient.impl.QueryExecutor.executeExtendedQuery:(Lio/vertx/sqlclient/impl/command/CommandScheduler;Lio/vertx/sqlclient/impl/PreparedStatement;ZLio/vertx/sqlclient/Tuple;ILjava/lang/String;ZLio/vertx/core/impl/future/PromiseInternal;)Lio/vertx/sqlclient/impl/QueryResultBuilder;
putfield io.vertx.sqlclient.impl.CursorImpl.result:Lio/vertx/sqlclient/impl/QueryResultBuilder;
9: goto 12
10: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.impl.future.PromiseInternal.fail:(Ljava/lang/Throwable;)V
12: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/sqlclient/impl/CursorImpl;
0 13 3 ar Lio/vertx/core/AsyncResult<Lio/vertx/sqlclient/impl/PreparedStatement;>;
2 11 4 preparedStatement Lio/vertx/sqlclient/impl/PreparedStatement;
3 11 5 builder Lio/vertx/sqlclient/impl/QueryExecutor<Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;Lio/vertx/sqlclient/impl/RowSetImpl<Lio/vertx/sqlclient/Row;>;Lio/vertx/sqlclient/RowSet<Lio/vertx/sqlclient/Row;>;>;
}
SourceFile: "CursorImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles