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
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
invokestatic org.hibernate.internal.CoreLogging.messageLogger:(Ljava/lang/Class;)Lorg/hibernate/internal/CoreMessageLogger;
putstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
public void validate(org.hibernate.boot.Metadata);
descriptor: (Lorg/hibernate/boot/Metadata;)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
checkcast org.hibernate.boot.spi.MetadataImplementor
invokeinterface org.hibernate.boot.spi.MetadataImplementor.getMetadataBuildingOptions:()Lorg/hibernate/boot/spi/MetadataBuildingOptions;
invokeinterface org.hibernate.boot.spi.MetadataBuildingOptions.getServiceRegistry:()Lorg/hibernate/boot/registry/StandardServiceRegistry;
invokevirtual org.hibernate.tool.hbm2ddl.SchemaValidator.validate:(Lorg/hibernate/boot/Metadata;Lorg/hibernate/service/ServiceRegistry;)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 metadata Lorg/hibernate/boot/Metadata;
MethodParameters:
Name Flags
metadata
public void validate(org.hibernate.boot.Metadata, org.hibernate.service.ServiceRegistry);
descriptor: (Lorg/hibernate/boot/Metadata;Lorg/hibernate/service/ServiceRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.runningSchemaValidator:()V
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 2: aload 3
aload 2
ldc Lorg/hibernate/engine/config/spi/ConfigurationService;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.config.spi.ConfigurationService
invokeinterface org.hibernate.engine.config.spi.ConfigurationService.getSettings:()Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 2
ldc Lorg/hibernate/tool/schema/spi/SchemaManagementTool;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.tool.schema.spi.SchemaManagementTool
astore 4
start local 4 4: aload 3
5: getstatic org.hibernate.tool.schema.internal.ExceptionHandlerHaltImpl.INSTANCE:Lorg/hibernate/tool/schema/internal/ExceptionHandlerHaltImpl;
6: invokestatic org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.buildExecutionOptions:(Ljava/util/Map;Lorg/hibernate/tool/schema/spi/ExceptionHandler;)Lorg/hibernate/tool/schema/spi/ExecutionOptions;
astore 5
start local 5 7: aload 4
aload 3
invokeinterface org.hibernate.tool.schema.spi.SchemaManagementTool.getSchemaValidator:(Ljava/util/Map;)Lorg/hibernate/tool/schema/spi/SchemaValidator;
aload 1
aload 5
invokeinterface org.hibernate.tool.schema.spi.SchemaValidator.doValidation:(Lorg/hibernate/boot/Metadata;Lorg/hibernate/tool/schema/spi/ExecutionOptions;)V
8: return
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 9 0 this Lorg/hibernate/tool/hbm2ddl/SchemaValidator;
0 9 1 metadata Lorg/hibernate/boot/Metadata;
0 9 2 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
2 9 3 config Ljava/util/Map;
4 9 4 tool Lorg/hibernate/tool/schema/spi/SchemaManagementTool;
7 9 5 executionOptions Lorg/hibernate/tool/schema/spi/ExecutionOptions;
MethodParameters:
Name Flags
metadata
serviceRegistry
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.parseCommandLineArgs:([Ljava/lang/String;)Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
astore 1
start local 1 1: aload 1
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.buildStandardServiceRegistry:(Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;)Lorg/hibernate/boot/registry/StandardServiceRegistry;
astore 2
start local 2 2: aload 1
aload 2
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.buildMetadata:(Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;Lorg/hibernate/boot/registry/StandardServiceRegistry;)Lorg/hibernate/boot/spi/MetadataImplementor;
astore 3
start local 3 3: new org.hibernate.tool.hbm2ddl.SchemaValidator
dup
invokespecial org.hibernate.tool.hbm2ddl.SchemaValidator.<init>:()V
aload 3
aload 2
invokevirtual org.hibernate.tool.hbm2ddl.SchemaValidator.validate:(Lorg/hibernate/boot/Metadata;Lorg/hibernate/service/ServiceRegistry;)V
end local 3 4: goto 8
5: StackMap locals: java.lang.String[] org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs org.hibernate.boot.registry.StandardServiceRegistry
StackMap stack: java.lang.Throwable
astore 4
6: aload 2
invokestatic org.hibernate.boot.registry.StandardServiceRegistryBuilder.destroy:(Lorg/hibernate/service/ServiceRegistry;)V
7: aload 4
athrow
8: StackMap locals:
StackMap stack:
aload 2
invokestatic org.hibernate.boot.registry.StandardServiceRegistryBuilder.destroy:(Lorg/hibernate/service/ServiceRegistry;)V
end local 2 end local 1 9: goto 12
10: StackMap locals: java.lang.String[]
StackMap stack: java.lang.Exception
astore 1
start local 1 11: getstatic org.hibernate.tool.hbm2ddl.SchemaValidator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 1
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToRunSchemaUpdate:(Ljava/lang/Exception;)V
end local 1 12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 args [Ljava/lang/String;
1 9 1 parsedArgs Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
2 9 2 serviceRegistry Lorg/hibernate/boot/registry/StandardServiceRegistry;
3 4 3 metadata Lorg/hibernate/boot/spi/MetadataImplementor;
11 12 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 5 5 any
0 9 10 Class java.lang.Exception
MethodParameters:
Name Flags
args
private static org.hibernate.boot.registry.StandardServiceRegistry buildStandardServiceRegistry(org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs);
descriptor: (Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;)Lorg/hibernate/boot/registry/StandardServiceRegistry;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new org.hibernate.boot.registry.BootstrapServiceRegistryBuilder
dup
invokespecial org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.<init>:()V
invokevirtual org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build:()Lorg/hibernate/boot/registry/BootstrapServiceRegistry;
astore 1
start local 1 1: new org.hibernate.boot.registry.StandardServiceRegistryBuilder
dup
aload 1
invokespecial org.hibernate.boot.registry.StandardServiceRegistryBuilder.<init>:(Lorg/hibernate/boot/registry/BootstrapServiceRegistry;)V
astore 2
start local 2 2: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.cfgXmlFile:Ljava/lang/String;
ifnull 4
3: aload 2
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.cfgXmlFile:Ljava/lang/String;
invokevirtual org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure:(Ljava/lang/String;)Lorg/hibernate/boot/registry/StandardServiceRegistryBuilder;
pop
4: StackMap locals: org.hibernate.boot.registry.BootstrapServiceRegistry org.hibernate.boot.registry.StandardServiceRegistryBuilder
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.propertiesFile:Ljava/lang/String;
ifnull 8
5: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 3
start local 3 6: aload 3
new java.io.FileInputStream
dup
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.propertiesFile:Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
7: aload 2
aload 3
invokevirtual org.hibernate.boot.registry.StandardServiceRegistryBuilder.applySettings:(Ljava/util/Map;)Lorg/hibernate/boot/registry/StandardServiceRegistryBuilder;
pop
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.hibernate.boot.registry.StandardServiceRegistryBuilder.build:()Lorg/hibernate/boot/registry/StandardServiceRegistry;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 parsedArgs Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
1 9 1 bsr Lorg/hibernate/boot/registry/BootstrapServiceRegistry;
2 9 2 ssrBuilder Lorg/hibernate/boot/registry/StandardServiceRegistryBuilder;
6 8 3 properties Ljava/util/Properties;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
parsedArgs
private static org.hibernate.boot.spi.MetadataImplementor buildMetadata(org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs, org.hibernate.boot.registry.StandardServiceRegistry);
descriptor: (Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;Lorg/hibernate/boot/registry/StandardServiceRegistry;)Lorg/hibernate/boot/spi/MetadataImplementor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new org.hibernate.boot.MetadataSources
dup
aload 1
invokespecial org.hibernate.boot.MetadataSources.<init>:(Lorg/hibernate/service/ServiceRegistry;)V
astore 2
start local 2 1: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.hbmXmlFiles:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs org.hibernate.boot.registry.StandardServiceRegistry org.hibernate.boot.MetadataSources top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 2
aload 3
invokevirtual org.hibernate.boot.MetadataSources.addFile:(Ljava/lang/String;)Lorg/hibernate/boot/MetadataSources;
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.jarFiles:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals:
StackMap stack:
6: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 7: aload 2
new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual org.hibernate.boot.MetadataSources.addJar:(Ljava/io/File;)Lorg/hibernate/boot/MetadataSources;
pop
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
9: aload 2
invokevirtual org.hibernate.boot.MetadataSources.getMetadataBuilder:()Lorg/hibernate/boot/MetadataBuilder;
astore 3
start local 3 10: aload 1
ldc Lorg/hibernate/boot/registry/selector/spi/StrategySelector;
invokeinterface org.hibernate.boot.registry.StandardServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.boot.registry.selector.spi.StrategySelector
astore 4
start local 4 11: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.implicitNamingStrategy:Ljava/lang/String;
ifnull 15
12: aload 3
13: aload 4
ldc Lorg/hibernate/boot/model/naming/ImplicitNamingStrategy;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.implicitNamingStrategy:Ljava/lang/String;
invokeinterface org.hibernate.boot.registry.selector.spi.StrategySelector.resolveStrategy:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.boot.model.naming.ImplicitNamingStrategy
14: invokeinterface org.hibernate.boot.MetadataBuilder.applyImplicitNamingStrategy:(Lorg/hibernate/boot/model/naming/ImplicitNamingStrategy;)Lorg/hibernate/boot/MetadataBuilder;
pop
15: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs org.hibernate.boot.registry.StandardServiceRegistry org.hibernate.boot.MetadataSources org.hibernate.boot.MetadataBuilder org.hibernate.boot.registry.selector.spi.StrategySelector
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.physicalNamingStrategy:Ljava/lang/String;
ifnull 19
16: aload 3
17: aload 4
ldc Lorg/hibernate/boot/model/naming/PhysicalNamingStrategy;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.physicalNamingStrategy:Ljava/lang/String;
invokeinterface org.hibernate.boot.registry.selector.spi.StrategySelector.resolveStrategy:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.boot.model.naming.PhysicalNamingStrategy
18: invokeinterface org.hibernate.boot.MetadataBuilder.applyPhysicalNamingStrategy:(Lorg/hibernate/boot/model/naming/PhysicalNamingStrategy;)Lorg/hibernate/boot/MetadataBuilder;
pop
19: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.hibernate.boot.MetadataBuilder.build:()Lorg/hibernate/boot/Metadata;
checkcast org.hibernate.boot.spi.MetadataImplementor
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 parsedArgs Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
0 20 1 serviceRegistry Lorg/hibernate/boot/registry/StandardServiceRegistry;
1 20 2 metadataSources Lorg/hibernate/boot/MetadataSources;
3 4 3 filename Ljava/lang/String;
7 8 3 filename Ljava/lang/String;
10 20 3 metadataBuilder Lorg/hibernate/boot/MetadataBuilder;
11 20 4 strategySelector Lorg/hibernate/boot/registry/selector/spi/StrategySelector;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
parsedArgs
serviceRegistry
public static org.hibernate.boot.spi.MetadataImplementor buildMetadataFromMainArgs(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Lorg/hibernate/boot/spi/MetadataImplementor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs.parseCommandLineArgs:([Ljava/lang/String;)Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
astore 1
start local 1 1: aload 1
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.buildStandardServiceRegistry:(Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;)Lorg/hibernate/boot/registry/StandardServiceRegistry;
astore 2
start local 2 2: aload 1
aload 2
invokestatic org.hibernate.tool.hbm2ddl.SchemaValidator.buildMetadata:(Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;Lorg/hibernate/boot/registry/StandardServiceRegistry;)Lorg/hibernate/boot/spi/MetadataImplementor;
astore 4
3: aload 2
invokestatic org.hibernate.boot.registry.StandardServiceRegistryBuilder.destroy:(Lorg/hibernate/service/ServiceRegistry;)V
4: aload 4
areturn
5: StackMap locals: java.lang.String[] org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs org.hibernate.boot.registry.StandardServiceRegistry
StackMap stack: java.lang.Throwable
astore 3
6: aload 2
invokestatic org.hibernate.boot.registry.StandardServiceRegistryBuilder.destroy:(Lorg/hibernate/service/ServiceRegistry;)V
7: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 args [Ljava/lang/String;
1 8 1 commandLineArgs Lorg/hibernate/tool/hbm2ddl/SchemaValidator$CommandLineArgs;
2 8 2 serviceRegistry Lorg/hibernate/boot/registry/StandardServiceRegistry;
Exception table:
from to target type
2 3 5 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "SchemaValidator.java"
NestMembers:
org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs
InnerClasses:
private CommandLineArgs = org.hibernate.tool.hbm2ddl.SchemaValidator$CommandLineArgs of org.hibernate.tool.hbm2ddl.SchemaValidator