public class io.vertx.ext.jdbc.impl.actions.JDBCUpdate extends io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction<io.vertx.ext.sql.UpdateResult>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.jdbc.impl.actions.JDBCUpdate
super_class: io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction
{
private final java.lang.String sql;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.json.JsonArray in;
descriptor: Lio/vertx/core/json/JsonArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean generateKeys;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(io.vertx.core.Vertx, io.vertx.ext.jdbc.impl.actions.JDBCStatementHelper, io.vertx.ext.sql.SQLOptions, io.vertx.core.impl.ContextInternal, java.lang.String, io.vertx.core.json.JsonArray);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/jdbc/impl/actions/JDBCStatementHelper;Lio/vertx/ext/sql/SQLOptions;Lio/vertx/core/impl/ContextInternal;Ljava/lang/String;Lio/vertx/core/json/JsonArray;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial io.vertx.ext.jdbc.impl.actions.AbstractJDBCAction.<init>:(Lio/vertx/core/Vertx;Lio/vertx/ext/jdbc/impl/actions/JDBCStatementHelper;Lio/vertx/ext/sql/SQLOptions;Lio/vertx/core/impl/ContextInternal;)V
1: aload 0
aload 5
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
2: aload 0
aload 6
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.in:Lio/vertx/core/json/JsonArray;
3: return
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 4 0 this Lio/vertx/ext/jdbc/impl/actions/JDBCUpdate;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 helper Lio/vertx/ext/jdbc/impl/actions/JDBCStatementHelper;
0 4 3 options Lio/vertx/ext/sql/SQLOptions;
0 4 4 ctx Lio/vertx/core/impl/ContextInternal;
0 4 5 sql Ljava/lang/String;
0 4 6 in Lio/vertx/core/json/JsonArray;
MethodParameters:
Name Flags
vertx
helper
options
ctx
sql
in
private java.sql.PreparedStatement prepareStatement(java.sql.Connection);
descriptor: (Ljava/sql/Connection;)Ljava/sql/PreparedStatement;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
ifnonnull 3
1: aload 0
iconst_1
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
2: aload 1
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
iconst_1
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.isAutoGeneratedKeys:()Z
ifne 6
4: aload 0
iconst_0
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
5: aload 1
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
iconst_2
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
ifnonnull 9
7: aload 0
iconst_1
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
8: aload 1
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
iconst_1
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
areturn
9: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
iconst_0
invokevirtual io.vertx.core.json.JsonArray.getValue:(I)Ljava/lang/Object;
instanceof java.lang.String
ifeq 18
10: aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
invokevirtual io.vertx.core.json.JsonArray.size:()I
anewarray java.lang.String
astore 2
start local 2 11: iconst_0
istore 3
start local 3 12: goto 15
13: StackMap locals: java.lang.String[] int
StackMap stack:
aload 2
iload 3
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
iload 3
invokevirtual io.vertx.core.json.JsonArray.getString:(I)Ljava/lang/String;
aastore
14: iinc 3 1
StackMap locals:
StackMap stack:
15: iload 3
aload 2
arraylength
if_icmplt 13
end local 3 16: aload 0
iconst_1
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
17: aload 1
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
aload 2
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;[Ljava/lang/String;)Ljava/sql/PreparedStatement;
areturn
end local 2 18: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
iconst_0
invokevirtual io.vertx.core.json.JsonArray.getValue:(I)Ljava/lang/Object;
instanceof java.lang.Number
ifeq 27
19: aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
invokevirtual io.vertx.core.json.JsonArray.size:()I
newarray 10
astore 2
start local 2 20: iconst_0
istore 3
start local 3 21: goto 24
22: StackMap locals: int[] int
StackMap stack:
aload 2
iload 3
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.options:Lio/vertx/ext/sql/SQLOptions;
invokevirtual io.vertx.ext.sql.SQLOptions.getAutoGeneratedKeysIndexes:()Lio/vertx/core/json/JsonArray;
iload 3
invokevirtual io.vertx.core.json.JsonArray.getInteger:(I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iastore
23: iinc 3 1
StackMap locals:
StackMap stack:
24: iload 3
aload 2
arraylength
if_icmplt 22
end local 3 25: aload 0
iconst_1
putfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
26: aload 1
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.sql:Ljava/lang/String;
aload 2
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;[I)Ljava/sql/PreparedStatement;
areturn
end local 2 27: StackMap locals:
StackMap stack:
new java.sql.SQLException
dup
ldc "Invalid type for auto generated keys"
invokespecial java.sql.SQLException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lio/vertx/ext/jdbc/impl/actions/JDBCUpdate;
0 28 1 conn Ljava/sql/Connection;
11 18 2 columnNames [Ljava/lang/String;
12 16 3 i I
20 27 2 columnIndexes [I
21 25 3 i I
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
conn
public io.vertx.ext.sql.UpdateResult execute(java.sql.Connection);
descriptor: (Ljava/sql/Connection;)Lio/vertx/ext/sql/UpdateResult;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=13, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 0
aload 1
invokevirtual io.vertx.ext.jdbc.impl.actions.JDBCUpdate.prepareStatement:(Ljava/sql/Connection;)Ljava/sql/PreparedStatement;
astore 4
start local 4 2: aload 0
aload 4
invokevirtual io.vertx.ext.jdbc.impl.actions.JDBCUpdate.applyStatementOptions:(Ljava/sql/Statement;)V
3: aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.helper:Lio/vertx/ext/jdbc/impl/actions/JDBCStatementHelper;
aload 4
aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.in:Lio/vertx/core/json/JsonArray;
invokevirtual io.vertx.ext.jdbc.impl.actions.JDBCStatementHelper.fillStatement:(Ljava/sql/PreparedStatement;Lio/vertx/core/json/JsonArray;)V
4: aload 4
invokeinterface java.sql.PreparedStatement.executeUpdate:()I
istore 5
start local 5 5: new io.vertx.core.json.JsonArray
dup
invokespecial io.vertx.core.json.JsonArray.<init>:()V
astore 6
start local 6 6: aload 0
getfield io.vertx.ext.jdbc.impl.actions.JDBCUpdate.generateKeys:Z
ifeq 41
7: aconst_null
astore 7
start local 7 8: aload 4
invokeinterface java.sql.PreparedStatement.getGeneratedKeys:()Ljava/sql/ResultSet;
astore 7
9: aload 7
ifnull 37
10: aload 7
invokeinterface java.sql.ResultSet.getMetaData:()Ljava/sql/ResultSetMetaData;
astore 8
start local 8 11: aload 8
ifnull 12
aload 8
invokeinterface java.sql.ResultSetMetaData.getColumnCount:()I
goto 13
StackMap locals: io.vertx.ext.jdbc.impl.actions.JDBCUpdate java.sql.Connection java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement int io.vertx.core.json.JsonArray java.sql.ResultSet java.sql.ResultSetMetaData
StackMap stack:
12: iconst_1
StackMap locals:
StackMap stack: int
13: istore 9
start local 9 14: goto 24
15: StackMap locals: int
StackMap stack:
iconst_1
istore 10
start local 10 16: goto 23
17: StackMap locals: int
StackMap stack:
aload 7
iload 10
invokeinterface java.sql.ResultSet.getObject:(I)Ljava/lang/Object;
astore 11
start local 11 18: aload 11
ifnonnull 21
19: aload 6
invokevirtual io.vertx.core.json.JsonArray.addNull:()Lio/vertx/core/json/JsonArray;
pop
20: goto 22
21: StackMap locals: java.lang.Object
StackMap stack:
aload 6
aload 11
invokestatic io.vertx.ext.jdbc.impl.actions.JDBCStatementHelper.convertSqlValue:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual io.vertx.core.json.JsonArray.add:(Ljava/lang/Object;)Lio/vertx/core/json/JsonArray;
pop
end local 11 22: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
23: iload 10
iload 9
if_icmple 17
end local 10 24: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.sql.ResultSet.next:()Z
ifne 15
end local 9 end local 8 25: goto 37
StackMap locals: io.vertx.ext.jdbc.impl.actions.JDBCUpdate java.sql.Connection java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement int io.vertx.core.json.JsonArray java.sql.ResultSet
StackMap stack: java.sql.SQLException
26: pop
27: aload 7
ifnull 41
28: aload 7
invokeinterface java.sql.ResultSet.close:()V
29: goto 41
StackMap locals:
StackMap stack: java.sql.SQLException
30: pop
goto 41
31: StackMap locals:
StackMap stack: java.lang.Throwable
astore 12
32: aload 7
ifnull 36
33: aload 7
invokeinterface java.sql.ResultSet.close:()V
34: goto 36
StackMap locals: io.vertx.ext.jdbc.impl.actions.JDBCUpdate java.sql.Connection java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement int io.vertx.core.json.JsonArray java.sql.ResultSet top top top top java.lang.Throwable
StackMap stack: java.sql.SQLException
35: pop
36: StackMap locals:
StackMap stack:
aload 12
athrow
37: StackMap locals: io.vertx.ext.jdbc.impl.actions.JDBCUpdate java.sql.Connection java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement int io.vertx.core.json.JsonArray java.sql.ResultSet
StackMap stack:
aload 7
ifnull 41
38: aload 7
invokeinterface java.sql.ResultSet.close:()V
39: goto 41
StackMap locals:
StackMap stack: java.sql.SQLException
40: pop
end local 7 41: StackMap locals:
StackMap stack:
new io.vertx.ext.sql.UpdateResult
dup
iload 5
aload 6
invokespecial io.vertx.ext.sql.UpdateResult.<init>:(ILio/vertx/core/json/JsonArray;)V
42: aload 4
ifnull 43
aload 4
invokeinterface java.sql.PreparedStatement.close:()V
43: StackMap locals:
StackMap stack: io.vertx.ext.sql.UpdateResult
areturn
end local 6 end local 5 StackMap locals: io.vertx.ext.jdbc.impl.actions.JDBCUpdate java.sql.Connection java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement
StackMap stack: java.lang.Throwable
44: astore 2
45: aload 4
ifnull 46
aload 4
invokeinterface java.sql.PreparedStatement.close:()V
end local 4 StackMap locals:
StackMap stack:
46: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
47: astore 3
aload 2
ifnonnull 48
aload 3
astore 2
goto 49
StackMap locals:
StackMap stack:
48: aload 2
aload 3
if_acmpeq 49
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
49: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 this Lio/vertx/ext/jdbc/impl/actions/JDBCUpdate;
0 50 1 conn Ljava/sql/Connection;
2 46 4 statement Ljava/sql/PreparedStatement;
5 44 5 updated I
6 44 6 keys Lio/vertx/core/json/JsonArray;
8 41 7 rs Ljava/sql/ResultSet;
11 25 8 metaData Ljava/sql/ResultSetMetaData;
14 25 9 columns I
16 24 10 i I
18 22 11 key Ljava/lang/Object;
Exception table:
from to target type
8 25 26 Class java.sql.SQLException
28 29 30 Class java.sql.SQLException
8 27 31 any
33 34 35 Class java.sql.SQLException
38 39 40 Class java.sql.SQLException
2 42 44 any
1 43 47 any
44 47 47 any
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
conn
protected java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "update"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/jdbc/impl/actions/JDBCUpdate;
public java.lang.Object execute(java.sql.Connection);
descriptor: (Ljava/sql/Connection;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual io.vertx.ext.jdbc.impl.actions.JDBCUpdate.execute:(Ljava/sql/Connection;)Lio/vertx/ext/sql/UpdateResult;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.sql.SQLException
}
Signature: Lio/vertx/ext/jdbc/impl/actions/AbstractJDBCAction<Lio/vertx/ext/sql/UpdateResult;>;
SourceFile: "JDBCUpdate.java"