public abstract class org.springframework.jdbc.datasource.init.DatabasePopulatorUtils
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.jdbc.datasource.init.DatabasePopulatorUtils
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 // org.springframework.jdbc.datasource.init.DatabasePopulatorUtils this
0: .line 34
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.springframework.jdbc.datasource.init.DatabasePopulatorUtils this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/jdbc/datasource/init/DatabasePopulatorUtils;
public static void execute(org.springframework.jdbc.datasource.init.DatabasePopulator, javax.sql.DataSource);
descriptor: (Lorg/springframework/jdbc/datasource/init/DatabasePopulator;Ljavax/sql/DataSource;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 // org.springframework.jdbc.datasource.init.DatabasePopulator populator
start local 1 // javax.sql.DataSource dataSource
0: .line 43
aload 0 /* populator */
ldc "DatabasePopulator must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: .line 44
aload 1 /* dataSource */
ldc "DataSource must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: .line 46
aload 1 /* dataSource */
invokestatic org.springframework.jdbc.datasource.DataSourceUtils.getConnection:(Ljavax/sql/DataSource;)Ljava/sql/Connection;
astore 2 /* connection */
start local 2 // java.sql.Connection connection
3: .line 48
aload 0 /* populator */
aload 2 /* connection */
invokeinterface org.springframework.jdbc.datasource.init.DatabasePopulator.populate:(Ljava/sql/Connection;)V
4: .line 49
goto 8
5: .line 50
StackMap locals: org.springframework.jdbc.datasource.init.DatabasePopulator javax.sql.DataSource java.sql.Connection
StackMap stack: java.lang.Throwable
astore 3
6: .line 51
aload 2 /* connection */
aload 1 /* dataSource */
invokestatic org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection:(Ljava/sql/Connection;Ljavax/sql/DataSource;)V
7: .line 52
aload 3
athrow
8: .line 51
StackMap locals:
StackMap stack:
aload 2 /* connection */
aload 1 /* dataSource */
invokestatic org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection:(Ljava/sql/Connection;Ljavax/sql/DataSource;)V
end local 2 // java.sql.Connection connection
9: .line 53
goto 14
10: .line 54
StackMap locals: org.springframework.jdbc.datasource.init.DatabasePopulator javax.sql.DataSource
StackMap stack: java.lang.Throwable
astore 2 /* ex */
start local 2 // java.lang.Throwable ex
11: .line 55
aload 2 /* ex */
instanceof org.springframework.jdbc.datasource.init.ScriptException
ifeq 13
12: .line 56
aload 2 /* ex */
checkcast org.springframework.jdbc.datasource.init.ScriptException
athrow
13: .line 58
StackMap locals: java.lang.Throwable
StackMap stack:
new org.springframework.jdbc.datasource.init.UncategorizedScriptException
dup
ldc "Failed to execute database script"
aload 2 /* ex */
invokespecial org.springframework.jdbc.datasource.init.UncategorizedScriptException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 // java.lang.Throwable ex
14: .line 60
StackMap locals:
StackMap stack:
return
end local 1 // javax.sql.DataSource dataSource
end local 0 // org.springframework.jdbc.datasource.init.DatabasePopulator populator
LocalVariableTable:
Start End Slot Name Signature
0 15 0 populator Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
0 15 1 dataSource Ljavax/sql/DataSource;
3 9 2 connection Ljava/sql/Connection;
11 14 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
3 5 5 any
2 9 10 Class java.lang.Throwable
Exceptions:
throws org.springframework.dao.DataAccessException
MethodParameters:
Name Flags
populator
dataSource
}
SourceFile: "DatabasePopulatorUtils.java"