public class org.springframework.jdbc.datasource.init.ResourceDatabasePopulator implements org.springframework.jdbc.datasource.init.DatabasePopulator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
super_class: java.lang.Object
{
java.util.List<org.springframework.core.io.Resource> scripts;
descriptor: Ljava/util/List;
flags: (0x0000)
Signature: Ljava/util/List<Lorg/springframework/core/io/Resource;>;
private java.lang.String sqlScriptEncoding;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.lang.String separator;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean continueOnError;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean ignoreFailedDrops;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
2: aload 0
ldc ";"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.separator:Ljava/lang/String;
3: aload 0
ldc "--"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.commentPrefix:Ljava/lang/String;
4: aload 0
ldc "/*"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentStartDelimiter:Ljava/lang/String;
5: aload 0
ldc "*/"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentEndDelimiter:Ljava/lang/String;
6: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
7: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
public void <init>(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
2: aload 0
ldc ";"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.separator:Ljava/lang/String;
3: aload 0
ldc "--"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.commentPrefix:Ljava/lang/String;
4: aload 0
ldc "/*"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentStartDelimiter:Ljava/lang/String;
5: aload 0
ldc "*/"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentEndDelimiter:Ljava/lang/String;
6: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
7: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
8: aload 0
aload 1
invokevirtual org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.setScripts:([Lorg/springframework/core/io/Resource;)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 10 1 scripts [Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
scripts
public void <init>(boolean, boolean, java.lang.String, org.springframework.core.io.Resource[]);
descriptor: (ZZLjava/lang/String;[Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
2: aload 0
ldc ";"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.separator:Ljava/lang/String;
3: aload 0
ldc "--"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.commentPrefix:Ljava/lang/String;
4: aload 0
ldc "/*"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentStartDelimiter:Ljava/lang/String;
5: aload 0
ldc "*/"
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentEndDelimiter:Ljava/lang/String;
6: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
7: aload 0
iconst_0
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
8: aload 0
iload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
9: aload 0
iload 2
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
10: aload 0
aload 3
invokevirtual org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.setSqlScriptEncoding:(Ljava/lang/String;)V
11: aload 0
aload 4
invokevirtual org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.setScripts:([Lorg/springframework/core/io/Resource;)V
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 13 1 continueOnError Z
0 13 2 ignoreFailedDrops Z
0 13 3 sqlScriptEncoding Ljava/lang/String;
0 13 4 scripts [Lorg/springframework/core/io/Resource;
RuntimeVisibleParameterAnnotations:
0:
1:
2:
org.springframework.lang.Nullable()
3:
MethodParameters:
Name Flags
continueOnError
ignoreFailedDrops
sqlScriptEncoding
scripts
public void addScript(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Script must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 script Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
script
public void addScripts(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.assertContentsOfScriptArray:([Lorg/springframework/core/io/Resource;)V
1: aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 scripts [Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
scripts
public void setScripts(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.assertContentsOfScriptArray:([Lorg/springframework/core/io/Resource;)V
1: aload 0
new java.util.ArrayList
dup
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 scripts [Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
scripts
private void assertContentsOfScriptArray(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Scripts array must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 1
ldc "Scripts array must not contain null elements"
invokestatic org.springframework.util.Assert.noNullElements:([Ljava/lang/Object;Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 scripts [Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
scripts
public void setSqlScriptEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 1
aload 1
goto 2
StackMap locals:
StackMap stack: org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
1: aconst_null
StackMap locals: org.springframework.jdbc.datasource.init.ResourceDatabasePopulator java.lang.String
StackMap stack: org.springframework.jdbc.datasource.init.ResourceDatabasePopulator java.lang.String
2: putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.sqlScriptEncoding:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 4 1 sqlScriptEncoding Ljava/lang/String;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
sqlScriptEncoding
public void setSeparator(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.separator:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 2 1 separator Ljava/lang/String;
MethodParameters:
Name Flags
separator
public void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.commentPrefix:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 2 1 commentPrefix Ljava/lang/String;
MethodParameters:
Name Flags
commentPrefix
public void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "BlockCommentStartDelimiter must not be null or empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentStartDelimiter:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 blockCommentStartDelimiter Ljava/lang/String;
MethodParameters:
Name Flags
blockCommentStartDelimiter
public void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "BlockCommentEndDelimiter must not be null or empty"
invokestatic org.springframework.util.Assert.hasText:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentEndDelimiter:Ljava/lang/String;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 3 1 blockCommentEndDelimiter Ljava/lang/String;
MethodParameters:
Name Flags
blockCommentEndDelimiter
public void setContinueOnError(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 2 1 continueOnError Z
MethodParameters:
Name Flags
continueOnError
public void setIgnoreFailedDrops(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 2 1 ignoreFailedDrops Z
MethodParameters:
Name Flags
ignoreFailedDrops
public void populate(java.sql.Connection);
descriptor: (Ljava/sql/Connection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc "Connection must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.scripts:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.springframework.jdbc.datasource.init.ResourceDatabasePopulator java.sql.Connection top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.core.io.Resource
astore 2
start local 2 3: new org.springframework.core.io.support.EncodedResource
dup
aload 2
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.sqlScriptEncoding:Ljava/lang/String;
invokespecial org.springframework.core.io.support.EncodedResource.<init>:(Lorg/springframework/core/io/Resource;Ljava/lang/String;)V
astore 4
start local 4 4: aload 1
aload 4
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.continueOnError:Z
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.ignoreFailedDrops:Z
5: aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.commentPrefix:Ljava/lang/String;
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.separator:Ljava/lang/String;
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentStartDelimiter:Ljava/lang/String;
aload 0
getfield org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.blockCommentEndDelimiter:Ljava/lang/String;
6: invokestatic org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript:(Ljava/sql/Connection;Lorg/springframework/core/io/support/EncodedResource;ZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
end local 4 end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 9 1 connection Ljava/sql/Connection;
3 7 2 script Lorg/springframework/core/io/Resource;
4 7 4 encodedScript Lorg/springframework/core/io/support/EncodedResource;
Exceptions:
throws org.springframework.jdbc.datasource.init.ScriptException
MethodParameters:
Name Flags
connection
public void execute(javax.sql.DataSource);
descriptor: (Ljavax/sql/DataSource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute:(Lorg/springframework/jdbc/datasource/init/DatabasePopulator;Ljavax/sql/DataSource;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/ResourceDatabasePopulator;
0 2 1 dataSource Ljavax/sql/DataSource;
Exceptions:
throws org.springframework.jdbc.datasource.init.ScriptException
MethodParameters:
Name Flags
dataSource
}
SourceFile: "ResourceDatabasePopulator.java"