public class org.hibernate.tool.hbm2ddl.SchemaUpdate
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.tool.hbm2ddl.SchemaUpdate
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 final org.hibernate.cfg.Configuration configuration;
descriptor: Lorg/hibernate/cfg/Configuration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.tool.hbm2ddl.ConnectionHelper connectionHelper;
descriptor: Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.engine.jdbc.spi.SqlStatementLogger sqlStatementLogger;
descriptor: Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.engine.jdbc.spi.SqlExceptionHelper sqlExceptionHelper;
descriptor: Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.dialect.Dialect dialect;
descriptor: Lorg/hibernate/dialect/Dialect;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.lang.Exception> exceptions;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/Exception;>;
private org.hibernate.engine.jdbc.internal.Formatter formatter;
descriptor: Lorg/hibernate/engine/jdbc/internal/Formatter;
flags: (0x0002) ACC_PRIVATE
private boolean haltOnError;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean format;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String outputFile;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String delimiter;
descriptor: Ljava/lang/String;
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/SchemaUpdate;
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.SchemaUpdate.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.SchemaUpdate.<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/SchemaUpdate;
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=5, 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
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
2: aload 0
iconst_1
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.format:Z
3: aload 0
aload 1
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.configuration:Lorg/hibernate/cfg/Configuration;
4: aload 0
aload 2
invokestatic org.hibernate.dialect.Dialect.getDialect:(Ljava/util/Properties;)Lorg/hibernate/dialect/Dialect;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.dialect:Lorg/hibernate/dialect/Dialect;
5: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 3
start local 3 6: aload 3
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.getDefaultProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
7: aload 3
aload 2
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
8: 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.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
9: aload 0
new org.hibernate.engine.jdbc.spi.SqlExceptionHelper
dup
invokespecial org.hibernate.engine.jdbc.spi.SqlExceptionHelper.<init>:()V
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.sqlExceptionHelper:Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
10: aload 0
new org.hibernate.engine.jdbc.spi.SqlStatementLogger
dup
iconst_0
iconst_1
invokespecial org.hibernate.engine.jdbc.spi.SqlStatementLogger.<init>:(ZZ)V
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.sqlStatementLogger:Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
11: aload 0
getstatic org.hibernate.engine.jdbc.internal.FormatStyle.DDL:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
invokevirtual org.hibernate.engine.jdbc.internal.FormatStyle.getFormatter:()Lorg/hibernate/engine/jdbc/internal/Formatter;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.formatter:Lorg/hibernate/engine/jdbc/internal/Formatter;
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 13 1 configuration Lorg/hibernate/cfg/Configuration;
0 13 2 properties Ljava/util/Properties;
6 13 3 props Ljava/util/Properties;
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
configuration
properties
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
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
2: aload 0
iconst_1
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.format:Z
3: aload 0
aload 2
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.configuration:Lorg/hibernate/cfg/Configuration;
4: 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 5: aload 0
aload 3
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getDialect:()Lorg/hibernate/dialect/Dialect;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.dialect:Lorg/hibernate/dialect/Dialect;
6: 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.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
7: aload 0
new org.hibernate.engine.jdbc.spi.SqlExceptionHelper
dup
invokespecial org.hibernate.engine.jdbc.spi.SqlExceptionHelper.<init>:()V
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.sqlExceptionHelper:Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
8: aload 0
aload 3
invokeinterface org.hibernate.engine.jdbc.spi.JdbcServices.getSqlStatementLogger:()Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.sqlStatementLogger:Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
9: aload 0
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.sqlStatementLogger:Lorg/hibernate/engine/jdbc/spi/SqlStatementLogger;
invokevirtual org.hibernate.engine.jdbc.spi.SqlStatementLogger.isFormat:()Z
ifeq 10
getstatic org.hibernate.engine.jdbc.internal.FormatStyle.DDL:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
goto 11
StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.service.ServiceRegistry org.hibernate.cfg.Configuration org.hibernate.engine.jdbc.spi.JdbcServices
StackMap stack: org.hibernate.tool.hbm2ddl.SchemaUpdate
10: getstatic org.hibernate.engine.jdbc.internal.FormatStyle.NONE:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.service.ServiceRegistry org.hibernate.cfg.Configuration org.hibernate.engine.jdbc.spi.JdbcServices
StackMap stack: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.engine.jdbc.internal.FormatStyle
11: invokevirtual org.hibernate.engine.jdbc.internal.FormatStyle.getFormatter:()Lorg/hibernate/engine/jdbc/internal/Formatter;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.formatter:Lorg/hibernate/engine/jdbc/internal/Formatter;
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 13 1 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
0 13 2 cfg Lorg/hibernate/cfg/Configuration;
5 13 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=11, 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: iconst_1
istore 2
start local 2 2: iconst_1
istore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aconst_null
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: iconst_0
istore 7
start local 7 7: iconst_0
istore 8
start local 8 8: goto 42
9: StackMap locals: java.lang.String[] org.hibernate.cfg.Configuration int int java.lang.String java.lang.String int int int
StackMap stack:
aload 0
iload 8
aaload
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 40
10: aload 0
iload 8
aaload
ldc "--quiet"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
11: iconst_0
istore 2
12: goto 41
13: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--properties="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
14: aload 0
iload 8
aaload
bipush 13
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
15: goto 41
16: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--config="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 19
17: aload 1
aload 0
iload 8
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
18: goto 41
19: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--text"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 22
20: iconst_0
istore 3
21: goto 41
22: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--output="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 25
23: aload 0
iload 8
aaload
bipush 9
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
24: goto 41
25: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--naming="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 32
26: iconst_1
istore 6
27: iload 6
iload 7
invokestatic org.hibernate.tool.hbm2ddl.SchemaUpdate.checkNamingAndNamingDelegatorNotBothSpecified:(ZZ)V
28: aload 1
29: aload 0
iload 8
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
30: invokevirtual org.hibernate.cfg.Configuration.setNamingStrategy:(Lorg/hibernate/cfg/NamingStrategy;)Lorg/hibernate/cfg/Configuration;
pop
31: goto 41
32: StackMap locals:
StackMap stack:
aload 0
iload 8
aaload
ldc "--namingdelegator="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 41
33: iconst_1
istore 7
34: iload 6
iload 7
invokestatic org.hibernate.tool.hbm2ddl.SchemaUpdate.checkNamingAndNamingDelegatorNotBothSpecified:(ZZ)V
35: aload 1
36: aload 0
iload 8
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;
37: invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.hibernate.cfg.naming.NamingStrategyDelegator
38: invokevirtual org.hibernate.cfg.Configuration.setNamingStrategyDelegator:(Lorg/hibernate/cfg/naming/NamingStrategyDelegator;)Lorg/hibernate/cfg/Configuration;
pop
39: goto 41
40: StackMap locals:
StackMap stack:
aload 1
aload 0
iload 8
aaload
invokevirtual org.hibernate.cfg.Configuration.addFile:(Ljava/lang/String;)Lorg/hibernate/cfg/Configuration;
pop
41: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
42: iload 8
aload 0
arraylength
if_icmplt 9
end local 8 43: aload 4
ifnull 48
44: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 8
start local 8 45: aload 8
aload 1
invokevirtual org.hibernate.cfg.Configuration.getProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.putAll:(Ljava/util/Map;)V
46: aload 8
new java.io.FileInputStream
dup
aload 4
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
47: aload 1
aload 8
invokevirtual org.hibernate.cfg.Configuration.setProperties:(Ljava/util/Properties;)Lorg/hibernate/cfg/Configuration;
pop
end local 8 48: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.hibernate.cfg.Configuration.getProperties:()Ljava/util/Properties;
invokestatic org.hibernate.tool.hbm2ddl.SchemaUpdate.createServiceRegistry:(Ljava/util/Properties;)Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
astore 8
start local 8 49: new org.hibernate.tool.hbm2ddl.SchemaUpdate
dup
aload 8
aload 1
invokespecial org.hibernate.tool.hbm2ddl.SchemaUpdate.<init>:(Lorg/hibernate/service/ServiceRegistry;Lorg/hibernate/cfg/Configuration;)V
astore 9
start local 9 50: aload 9
aload 5
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdate.setOutputFile:(Ljava/lang/String;)V
51: aload 9
iload 2
iload 3
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdate.execute:(ZZ)V
end local 9 52: goto 56
53: StackMap locals: java.lang.String[] org.hibernate.cfg.Configuration int int java.lang.String java.lang.String int int org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
StackMap stack: java.lang.Throwable
astore 10
54: aload 8
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy:()V
55: aload 10
athrow
56: StackMap locals:
StackMap stack:
aload 8
invokevirtual org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.destroy:()V
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 57: goto 61
58: StackMap locals: java.lang.String[]
StackMap stack: java.lang.Exception
astore 1
start local 1 59: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 1
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToRunSchemaUpdate:(Ljava/lang/Exception;)V
60: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
end local 1 61: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 62 0 args [Ljava/lang/String;
1 57 1 cfg Lorg/hibernate/cfg/Configuration;
2 57 2 script Z
3 57 3 doUpdate Z
4 57 4 propFile Ljava/lang/String;
5 57 5 outFile Ljava/lang/String;
6 57 6 hasNaming Z
7 57 7 hasNamingDelegator Z
8 43 8 i I
45 48 8 props Ljava/util/Properties;
49 57 8 serviceRegistry Lorg/hibernate/boot/registry/internal/StandardServiceRegistryImpl;
50 52 9 schemaUpdate Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
59 61 1 e Ljava/lang/Exception;
Exception table:
from to target type
49 53 53 any
0 57 58 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 execute(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic org.hibernate.tool.hbm2ddl.Target.interpret:(ZZ)Lorg/hibernate/tool/hbm2ddl/Target;
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdate.execute:(Lorg/hibernate/tool/hbm2ddl/Target;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 2 1 script Z
0 2 2 doUpdate Z
MethodParameters:
Name Flags
script
doUpdate
public void execute(org.hibernate.tool.hbm2ddl.Target);
descriptor: (Lorg/hibernate/tool/hbm2ddl/Target;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.runningHbm2ddlSchemaUpdate:()V
1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
invokeinterface java.util.List.clear:()V
5: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.fetchingDatabaseMetadata:()V
6: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
iconst_1
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.prepare:(Z)V
7: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.getConnection:()Ljava/sql/Connection;
astore 2
8: new org.hibernate.tool.hbm2ddl.DatabaseMetadata
dup
aload 2
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.dialect:Lorg/hibernate/dialect/Dialect;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.configuration:Lorg/hibernate/cfg/Configuration;
invokespecial org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>:(Ljava/sql/Connection;Lorg/hibernate/dialect/Dialect;Lorg/hibernate/cfg/Configuration;)V
astore 5
start local 5 9: aload 2
invokeinterface java.sql.Connection.createStatement:()Ljava/sql/Statement;
astore 3
10: goto 15
end local 5 11: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer
StackMap stack: java.sql.SQLException
astore 6
start local 6 12: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 6
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToGetDatabaseMetadata:(Ljava/sql/SQLException;)V
14: aload 6
athrow
end local 6 start local 5 15: StackMap locals: org.hibernate.tool.hbm2ddl.DatabaseMetadata
StackMap stack:
getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.updatingSchema:()V
16: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.outputFile:Ljava/lang/String;
ifnull 19
17: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.outputFile:Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.writingGeneratedSchemaToFile:(Ljava/lang/String;)V
18: new java.io.FileWriter
dup
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.outputFile:Ljava/lang/String;
invokespecial java.io.FileWriter.<init>:(Ljava/lang/String;)V
astore 4
19: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.configuration:Lorg/hibernate/cfg/Configuration;
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.dialect:Lorg/hibernate/dialect/Dialect;
aload 5
invokevirtual org.hibernate.cfg.Configuration.generateSchemaUpdateScriptList:(Lorg/hibernate/dialect/Dialect;Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;)Ljava/util/List;
astore 6
start local 6 20: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 40
StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer org.hibernate.tool.hbm2ddl.DatabaseMetadata java.util.List top java.util.Iterator
StackMap stack:
21: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.hibernate.tool.hbm2ddl.SchemaUpdateScript
astore 7
start local 7 22: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.formatter:Lorg/hibernate/engine/jdbc/internal/Formatter;
aload 7
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdateScript.getScript:()Ljava/lang/String;
invokeinterface org.hibernate.engine.jdbc.internal.Formatter.format:(Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 23: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.delimiter:Ljava/lang/String;
ifnull 25
24: new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.delimiter:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
25: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer org.hibernate.tool.hbm2ddl.DatabaseMetadata java.util.List org.hibernate.tool.hbm2ddl.SchemaUpdateScript java.util.Iterator java.lang.String
StackMap stack:
aload 1
invokevirtual org.hibernate.tool.hbm2ddl.Target.doScript:()Z
ifeq 27
26: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 9
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
27: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.outputFile:Ljava/lang/String;
ifnull 29
28: aload 4
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
29: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.hibernate.tool.hbm2ddl.Target.doExport:()Z
ifeq 40
30: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 7
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdateScript.getScript:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.debug:(Ljava/lang/Object;)V
31: aload 3
aload 9
invokeinterface java.sql.Statement.executeUpdate:(Ljava/lang/String;)I
pop
32: goto 40
33: StackMap locals:
StackMap stack: java.sql.SQLException
astore 10
start local 10 34: aload 7
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdateScript.isQuiet:()Z
ifne 40
35: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.haltOnError:Z
ifeq 37
36: new org.hibernate.JDBCException
dup
ldc "Error during DDL export"
aload 10
invokespecial org.hibernate.JDBCException.<init>:(Ljava/lang/String;Ljava/sql/SQLException;)V
athrow
37: StackMap locals: java.sql.SQLException
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 10
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
38: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 7
invokevirtual org.hibernate.tool.hbm2ddl.SchemaUpdateScript.getScript:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.unsuccessful:(Ljava/lang/String;)V
39: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 10
invokevirtual java.sql.SQLException.getMessage:()Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.error:(Ljava/lang/Object;)V
end local 10 end local 9 end local 7 40: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer org.hibernate.tool.hbm2ddl.DatabaseMetadata java.util.List top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
41: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
invokeinterface org.hibernate.internal.CoreMessageLogger.schemaUpdateComplete:()V
end local 6 end local 5 42: goto 75
43: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer
StackMap stack: java.lang.Exception
astore 5
start local 5 44: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
45: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 5
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCompleteSchemaUpdate:(Ljava/lang/Exception;)V
end local 5 46: aload 3
ifnull 48
47: aload 3
invokeinterface java.sql.Statement.close:()V
48: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
49: goto 53
50: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 51: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
52: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 53: StackMap locals:
StackMap stack:
aload 4
ifnull 88
54: aload 4
invokevirtual java.io.Writer.close:()V
55: goto 88
56: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 57: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
58: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 59: goto 88
60: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
61: aload 3
ifnull 63
62: aload 3
invokeinterface java.sql.Statement.close:()V
63: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer top top top top top top java.lang.Throwable
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
64: goto 68
65: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 66: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
67: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 68: StackMap locals:
StackMap stack:
aload 4
ifnull 74
69: aload 4
invokevirtual java.io.Writer.close:()V
70: goto 74
71: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 72: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
73: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 74: StackMap locals:
StackMap stack:
aload 11
athrow
75: StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.Target java.sql.Connection java.sql.Statement java.io.Writer
StackMap stack:
aload 3
ifnull 77
76: aload 3
invokeinterface java.sql.Statement.close:()V
77: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.connectionHelper:Lorg/hibernate/tool/hbm2ddl/ConnectionHelper;
invokeinterface org.hibernate.tool.hbm2ddl.ConnectionHelper.release:()V
78: goto 82
79: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 80: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
81: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 82: StackMap locals:
StackMap stack:
aload 4
ifnull 88
83: aload 4
invokevirtual java.io.Writer.close:()V
84: goto 88
85: StackMap locals:
StackMap stack: java.lang.Exception
astore 12
start local 12 86: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
aload 12
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
87: getstatic org.hibernate.tool.hbm2ddl.SchemaUpdate.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 12
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToCloseConnection:(Ljava/lang/Exception;)V
end local 12 88: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 89 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 89 1 target Lorg/hibernate/tool/hbm2ddl/Target;
2 89 2 connection Ljava/sql/Connection;
3 89 3 stmt Ljava/sql/Statement;
4 89 4 outputFileWriter Ljava/io/Writer;
9 11 5 meta Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;
15 42 5 meta Lorg/hibernate/tool/hbm2ddl/DatabaseMetadata;
12 15 6 sqle Ljava/sql/SQLException;
20 42 6 scripts Ljava/util/List<Lorg/hibernate/tool/hbm2ddl/SchemaUpdateScript;>;
22 40 7 script Lorg/hibernate/tool/hbm2ddl/SchemaUpdateScript;
23 40 9 formatted Ljava/lang/String;
34 40 10 e Ljava/sql/SQLException;
44 46 5 e Ljava/lang/Exception;
51 53 12 e Ljava/lang/Exception;
66 68 12 e Ljava/lang/Exception;
80 82 12 e Ljava/lang/Exception;
57 59 12 e Ljava/lang/Exception;
72 74 12 e Ljava/lang/Exception;
86 88 12 e Ljava/lang/Exception;
Exception table:
from to target type
5 10 11 Class java.sql.SQLException
23 32 33 Class java.sql.SQLException
5 42 43 Class java.lang.Exception
46 49 50 Class java.lang.Exception
53 55 56 Class java.lang.Exception
5 46 60 any
61 64 65 Class java.lang.Exception
68 70 71 Class java.lang.Exception
75 78 79 Class java.lang.Exception
82 84 85 Class java.lang.Exception
MethodParameters:
Name Flags
target
public java.util.List getExceptions();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.tool.hbm2ddl.SchemaUpdate.exceptions:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
public void setHaltOnError(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.hibernate.tool.hbm2ddl.SchemaUpdate.haltOnError:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 2 1 haltOnError Z
MethodParameters:
Name Flags
haltOnError
public void setFormat(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
ifeq 1
getstatic org.hibernate.engine.jdbc.internal.FormatStyle.DDL:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
goto 2
StackMap locals:
StackMap stack: org.hibernate.tool.hbm2ddl.SchemaUpdate
1: getstatic org.hibernate.engine.jdbc.internal.FormatStyle.NONE:Lorg/hibernate/engine/jdbc/internal/FormatStyle;
StackMap locals: org.hibernate.tool.hbm2ddl.SchemaUpdate int
StackMap stack: org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.engine.jdbc.internal.FormatStyle
2: invokevirtual org.hibernate.engine.jdbc.internal.FormatStyle.getFormatter:()Lorg/hibernate/engine/jdbc/internal/Formatter;
putfield org.hibernate.tool.hbm2ddl.SchemaUpdate.formatter:Lorg/hibernate/engine/jdbc/internal/Formatter;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 4 1 format Z
MethodParameters:
Name Flags
format
public void setOutputFile(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.hibernate.tool.hbm2ddl.SchemaUpdate.outputFile:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 2 1 outputFile Ljava/lang/String;
MethodParameters:
Name Flags
outputFile
public void setDelimiter(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.hibernate.tool.hbm2ddl.SchemaUpdate.delimiter:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SchemaUpdate;
0 2 1 delimiter Ljava/lang/String;
MethodParameters:
Name Flags
delimiter
}
SourceFile: "SchemaUpdate.java"