class org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper implements org.hibernate.tool.hbm2ddl.ConnectionHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper
super_class: java.lang.Object
{
private java.util.Properties cfgProperties;
descriptor: Ljava/util/Properties;
flags: (0x0002) ACC_PRIVATE
private org.hibernate.boot.registry.internal.StandardServiceRegistryImpl serviceRegistry;
descriptor: Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
flags: (0x0002) ACC_PRIVATE
private java.sql.Connection connection;
descriptor: Ljava/sql/Connection;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.cfgProperties:Ljava/util/Properties;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
0 3 1 cfgProperties Ljava/util/Properties;
MethodParameters:
Name Flags
cfgProperties
public void prepare(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.cfgProperties:Ljava/util/Properties;
invokestatic org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.createServiceRegistry:(Ljava/util/Properties;)Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
1: aload 0
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
ldc Lorg/hibernate/engine/jdbc/connections/spi/ConnectionProvider;
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
invokeinterface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider.getConnection:()Ljava/sql/Connection;
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
2: iload 1
ifeq 5
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
invokeinterface java.sql.Connection.getAutoCommit:()Z
ifne 5
3: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
invokeinterface java.sql.Connection.commit:()V
4: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
iconst_1
invokeinterface java.sql.Connection.setAutoCommit:(Z)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
0 6 1 needsAutoCommit Z
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
needsAutoCommit
private static org.hibernate.boot.registry.internal.StandardServiceRegistryImpl createServiceRegistry(java.util.Properties);
descriptor: (Ljava/util/Properties;)Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.hibernate.cfg.Environment.verifyProperties:(Ljava/util/Map;)V
1: aload 0
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.resolvePlaceHolders:(Ljava/util/Map;)V
2: new org.hibernate.boot.registry.StandardServiceRegistryBuilder
dup
invokespecial org.hibernate.boot.registry.StandardServiceRegistryBuilder.<init>:()V
aload 0
invokevirtual org.hibernate.boot.registry.StandardServiceRegistryBuilder.applySettings:(Ljava/util/Map;)Lorg/hibernate/boot/registry/StandardServiceRegistryBuilder;
invokevirtual org.hibernate.boot.registry.StandardServiceRegistryBuilder.build:()Lorg/hibernate/boot/registry/StandardServiceRegistry;
checkcast org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 properties Ljava/util/Properties;
MethodParameters:
Name Flags
properties
public java.sql.Connection getConnection();
descriptor: ()Ljava/sql/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
Exceptions:
throws java.sql.SQLException
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.releaseConnection:()V
1: goto 5
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
3: aload 0
invokevirtual org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.releaseServiceRegistry:()V
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.releaseServiceRegistry:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
Exception table:
from to target type
0 2 2 any
Exceptions:
throws java.sql.SQLException
private void releaseConnection();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
ifnull 19
1: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
ldc Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.env.spi.JdbcEnvironment
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getSqlExceptionHelper:()Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
2: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
3: invokevirtual org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logAndClearWarnings:(Ljava/sql/Connection;)V
4: goto 13
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
6: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
ldc Lorg/hibernate/engine/jdbc/connections/spi/ConnectionProvider;
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
invokeinterface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider.closeConnection:(Ljava/sql/Connection;)V
7: goto 11
8: StackMap locals: org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper java.lang.Throwable
StackMap stack: java.lang.Throwable
astore 2
9: aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
12: aload 1
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
ldc Lorg/hibernate/engine/jdbc/connections/spi/ConnectionProvider;
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
invokeinterface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider.closeConnection:(Ljava/sql/Connection;)V
14: goto 18
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
16: aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
17: aload 2
athrow
18: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.connection:Ljava/sql/Connection;
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
Exception table:
from to target type
1 5 5 any
6 8 8 any
13 15 15 any
Exceptions:
throws java.sql.SQLException
private void releaseServiceRegistry();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
ifnull 7
1: aload 0
getfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy:()V
2: goto 6
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
4: aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.serviceRegistry:Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/tool/hbm2ddl/ManagedProviderConnectionHelper;
Exception table:
from to target type
1 3 3 any
}
SourceFile: "ManagedProviderConnectionHelper.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()