public class org.hibernate.tool.hbm2ddl.SchemaValidator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.tool.hbm2ddl.SchemaValidator
super_class: java.lang.Object
{
private static final org.hibernate.internal.CoreMessageLogger LOG;
descriptor: Lorg/hibernate/internal/CoreMessageLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.hibernate.tool.hbm2ddl.ConnectionHelper connectionHelper;
descriptor: Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
flags: (0x0002) ACC_PRIVATE
private org.hibernate.cfg.Configuration configuration;
descriptor: Lorg/hibernate/cfg/Configuration;
flags: (0x0002) ACC_PRIVATE
private org.hibernate.dialect.Dialect dialect;
descriptor: Lorg/hibernate/dialect/Dialect;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/hibernate/internal/CoreMessageLogger;
ldc Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic org.jboss.logging.Logger.getMessageLogger:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.hibernate.internal.CoreMessageLogger
putstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.hibernate.cfg.Configuration);
descriptor: (Lorg/hibernate/cfg/Configuration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual org.hibernate.cfg.Configuration.getProperties:()Ljava/util/Properties;
invokespecial org.hibernate.tool.hbm2ddl.SchemaValidator.<init>:(Lorg/hibernate/cfg/Configuration;Ljava/util/Properties;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
0 2 1 cfg Lorg/hibernate/cfg/Configuration;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
cfg
public void <init>(org.hibernate.cfg.Configuration, java.util.Properties);
descriptor: (Lorg/hibernate/cfg/Configuration;Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.configuration:Lorg/hibernate/cfg/Configuration;
2: aload 0
aload 2
invokestatic org.hibernate.dialect.Dialect.getDialect:(Ljava/util/Properties;)Lorg/hibernate/dialect/Dialect;
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.dialect:Lorg/hibernate/dialect/Dialect;
3: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 3
start local 3 4: aload 3
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.getDefaultProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
5: aload 3
aload 2
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
6: aload 0
new org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper
dup
aload 3
invokespecial org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper.<init>:(Ljava/util/Properties;)V
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
0 8 1 cfg Lorg/hibernate/cfg/Configuration;
0 8 2 connectionProperties Ljava/util/Properties;
4 8 3 props Ljava/util/Properties;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
cfg
connectionProperties
public void <init>(org.hibernate.service.ServiceRegistry, org.hibernate.cfg.Configuration);
descriptor: (Lorg/hibernate/service/ServiceRegistry;Lorg/hibernate/cfg/Configuration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.configuration:Lorg/hibernate/cfg/Configuration;
2: aload 1
ldc Lorg/hibernate/engine/jdbc/spi/JdbcServices;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.jdbc.spi.JdbcServices
astore 3
start local 3 3: aload 0
aload 3
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getDialect:()Lorg/hibernate/dialect/Dialect;
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.dialect:Lorg/hibernate/dialect/Dialect;
4: aload 0
new org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper
dup
aload 3
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getConnectionProvider:()Lorg/hibernate/engine/jdbc/connections/spi/ConnectionProvider;
invokespecial org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.<init>:(Lorg/hibernate/engine/jdbc/connections/spi/ConnectionProvider;)V
putfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
0 6 1 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
0 6 2 cfg Lorg/hibernate/cfg/Configuration;
3 6 3 jdbcServices Lorg/hibernate/engine/jdbc/spi/JdbcServices;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
serviceRegistry
cfg
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 static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: new org.hibernate.cfg.Configuration
dup
invokespecial org.hibernate.cfg.Configuration.<init>:()V
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 30
6: StackMap locals: java.lang.String[] org.hibernate.cfg.Configuration java.lang.String int int int
StackMap stack:
aload 0
iload 5
aaload
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 28
7: aload 0
iload 5
aaload
ldc "--properties="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
iload 5
aaload
bipush 13
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
9: goto 29
10: StackMap locals:
StackMap stack:
aload 0
iload 5
aaload
ldc "--config="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
11: aload 1
aload 0
iload 5
aaload
bipush 9
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.hibernate.cfg.Configuration.configure:(Ljava/lang/String;)Lorg/hibernate/cfg/Configuration;
pop
12: goto 29
13: StackMap locals:
StackMap stack:
aload 0
iload 5
aaload
ldc "--naming="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 20
14: iconst_1
istore 3
15: iload 3
iload 4
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.checkNamingAndNamingDelegatorNotBothSpecified:(ZZ)V
16: aload 1
17: aload 0
iload 5
aaload
bipush 9
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.hibernate.internal.util.ReflectHelper.classForName:(Ljava/lang/String;)Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.hibernate.cfg.NamingStrategy
18: invokevirtual org.hibernate.cfg.Configuration.setNamingStrategy:(Lorg/hibernate/cfg/NamingStrategy;)Lorg/hibernate/cfg/Configuration;
pop
19: goto 29
20: StackMap locals:
StackMap stack:
aload 0
iload 5
aaload
ldc "--namingdelegator="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 29
21: iconst_1
istore 4
22: iload 3
iload 4
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.checkNamingAndNamingDelegatorNotBothSpecified:(ZZ)V
23: aload 1
24: aload 0
iload 5
aaload
bipush 18
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic org.hibernate.internal.util.ReflectHelper.classForName:(Ljava/lang/String;)Ljava/lang/Class;
25: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.hibernate.cfg.naming.NamingStrategyDelegator
26: invokevirtual org.hibernate.cfg.Configuration.setNamingStrategyDelegator:(Lorg/hibernate/cfg/naming/NamingStrategyDelegator;)Lorg/hibernate/cfg/Configuration;
pop
27: goto 29
28: StackMap locals:
StackMap stack:
aload 1
aload 0
iload 5
aaload
invokevirtual org.hibernate.cfg.Configuration.addFile:(Ljava/lang/String;)Lorg/hibernate/cfg/Configuration;
pop
29: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
30: iload 5
aload 0
arraylength
if_icmplt 6
end local 5 31: aload 2
ifnull 36
32: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 5
start local 5 33: aload 5
aload 1
invokevirtual org.hibernate.cfg.Configuration.getProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
34: aload 5
new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
35: aload 1
aload 5
invokevirtual org.hibernate.cfg.Configuration.setProperties:(Ljava/util/Properties;)Lorg/hibernate/cfg/Configuration;
pop
end local 5 36: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.hibernate.cfg.Configuration.getProperties:()Ljava/util/Properties;
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.createServiceRegistry:(Ljava/util/Properties;)Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
astore 5
start local 5 37: new org.hibernate.tool.hbm2ddl.SchemaValidator
dup
aload 5
aload 1
invokespecial org.hibernate.tool.hbm2ddl.SchemaValidator.<init>:(Lorg/hibernate/service/ServiceRegistry;Lorg/hibernate/cfg/Configuration;)V
invokevirtual org.hibernate.tool.hbm2ddl.SchemaValidator.validate:()V
38: goto 42
39: StackMap locals: java.lang.String[] org.hibernate.cfg.Configuration java.lang.String int int org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
StackMap stack: java.lang.Throwable
astore 6
40: aload 5
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy:()V
41: aload 6
athrow
42: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy:()V
end local 5 end local 4 end local 3 end local 2 end local 1 43: goto 47
44: StackMap locals: java.lang.String[]
StackMap stack: java.lang.Exception
astore 1
start local 1 45: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 1
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToRunSchemaUpdate:(Ljava/lang/Exception;)V
46: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
end local 1 47: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 args [Ljava/lang/String;
1 43 1 cfg Lorg/hibernate/cfg/Configuration;
2 43 2 propFile Ljava/lang/String;
3 43 3 hasNaming Z
4 43 4 hasNamingDelegator Z
5 31 5 i I
33 36 5 props Ljava/util/Properties;
37 43 5 serviceRegistry Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
45 47 1 e Ljava/lang/Exception;
Exception table:
from to target type
37 39 39 any
0 43 44 Class java.lang.Exception
MethodParameters:
Name Flags
args
private static void checkNamingAndNamingDelegatorNotBothSpecified(boolean, boolean);
descriptor: (ZZ)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 0
ifeq 2
iload 1
ifeq 2
1: new org.hibernate.HibernateException
dup
ldc "--naming=<naming_strategy> and --namingdelegator=<naming_strategy_delegator> cannot be used together."
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 namingSpecified Z
0 3 1 namingDelegatorSpecified Z
MethodParameters:
Name Flags
namingSpecified
namingDelegatorSpecified
public void validate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.runningSchemaValidator:()V
1: aconst_null
astore 1
start local 1 2: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.fetchingDatabaseMetadata:()V
3: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
iconst_0
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.prepare:(Z)V
4: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.getConnection:()Ljava/sql/Connection;
astore 1
5: new org.hibernate.tool.hbm2ddl.DatabaseMetadata
dup
aload 1
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.dialect:Lorg/hibernate/dialect/Dialect;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.configuration:Lorg/hibernate/cfg/Configuration;
iconst_0
invokespecial org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>:(Ljava/sql/Connection;Lorg/hibernate/dialect/Dialect;Lorg/hibernate/cfg/Configuration;Z)V
astore 2
start local 2 6: goto 10
end local 2 7: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator java.sql.Connection
StackMap stack: java.sql.SQLException
astore 3
start local 3 8: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 3
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToGetDatabaseMetadata:(Ljava/sql/SQLException;)V
9: aload 3
athrow
end local 3 start local 2 10: StackMap locals: org.hibernate.tool.hbm2ddl.DatabaseMetadata
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.configuration:Lorg/hibernate/cfg/Configuration;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.dialect:Lorg/hibernate/dialect/Dialect;
aload 2
invokevirtual org.hibernate.cfg.Configuration.validateSchema:(Lorg/hibernate/dialect/Dialect;Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;)V
end local 2 11: goto 25
12: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator java.sql.Connection
StackMap stack: java.sql.SQLException
astore 2
start local 2 13: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 2
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCompleteSchemaValidation:(Ljava/sql/SQLException;)V
end local 2 14: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
15: goto 29
16: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 17: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 5
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 5 18: goto 29
19: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
20: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
21: goto 24
22: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator java.sql.Connection top top java.lang.Throwable
StackMap stack: java.lang.Exception
astore 5
start local 5 23: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 5
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 5 24: StackMap locals:
StackMap stack:
aload 4
athrow
25: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator java.sql.Connection
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
26: goto 29
27: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 28: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 5
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 5 29: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
2 30 1 connection Ljava/sql/Connection;
6 7 2 meta Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;
10 11 2 meta Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;
8 10 3 sqle Ljava/sql/SQLException;
13 14 2 e Ljava/sql/SQLException;
17 18 5 e Ljava/lang/Exception;
23 24 5 e Ljava/lang/Exception;
28 29 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 6 7 Class java.sql.SQLException
2 11 12 Class java.sql.SQLException
14 15 16 Class java.lang.Exception
2 14 19 any
20 21 22 Class java.lang.Exception
25 26 27 Class java.lang.Exception
}
SourceFile: "SchemaValidator.java"