public class org.hibernate.dialect.unique.DefaultUniqueDelegate implements org.hibernate.dialect.unique.UniqueDelegate
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.dialect.unique.DefaultUniqueDelegate
super_class: java.lang.Object
{
protected final org.hibernate.dialect.Dialect dialect;
descriptor: Lorg/hibernate/dialect/Dialect;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>(org.hibernate.dialect.Dialect);
descriptor: (Lorg/hibernate/dialect/Dialect;)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.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 3 1 dialect Lorg/hibernate/dialect/Dialect;
MethodParameters:
Name Flags
dialect
public java.lang.String getColumnDefinitionUniquenessFragment(org.hibernate.mapping.Column);
descriptor: (Lorg/hibernate/mapping/Column;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 1 1 column Lorg/hibernate/mapping/Column;
MethodParameters:
Name Flags
column
public java.lang.String getTableCreationUniqueConstraintsFragment(org.hibernate.mapping.Table);
descriptor: (Lorg/hibernate/mapping/Table;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: ldc ""
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 1 1 table Lorg/hibernate/mapping/Table;
MethodParameters:
Name Flags
table
public java.lang.String getAlterTableToAddUniqueKeyCommand(org.hibernate.mapping.UniqueKey, org.hibernate.boot.Metadata);
descriptor: (Lorg/hibernate/mapping/UniqueKey;Lorg/hibernate/boot/Metadata;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.hibernate.boot.Metadata.getDatabase:()Lorg/hibernate/boot/model/relational/Database;
invokevirtual org.hibernate.boot.model.relational.Database.getJdbcEnvironment:()Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
astore 3
start local 3 1: aload 3
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getQualifiedObjectNameFormatter:()Lorg/hibernate/engine/jdbc/env/spi/QualifiedObjectNameFormatter;
2: aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getTable:()Lorg/hibernate/mapping/Table;
invokevirtual org.hibernate.mapping.Table.getQualifiedTableName:()Lorg/hibernate/boot/model/relational/QualifiedTableName;
3: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
4: invokeinterface org.hibernate.engine.jdbc.env.spi.QualifiedObjectNameFormatter.format:(Lorg/hibernate/boot/model/relational/QualifiedTableName;Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
astore 4
start local 4 5: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getName:()Ljava/lang/String;
invokevirtual org.hibernate.dialect.Dialect.quote:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 6: new java.lang.StringBuilder
dup
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 4
invokevirtual org.hibernate.dialect.Dialect.getAlterTableString:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: ldc " add constraint "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 1
invokevirtual org.hibernate.dialect.unique.DefaultUniqueDelegate.uniqueConstraintSql:(Lorg/hibernate/mapping/UniqueKey;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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/dialect/unique/DefaultUniqueDelegate;
0 9 1 uniqueKey Lorg/hibernate/mapping/UniqueKey;
0 9 2 metadata Lorg/hibernate/boot/Metadata;
1 9 3 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
5 9 4 tableName Ljava/lang/String;
6 9 5 constraintName Ljava/lang/String;
MethodParameters:
Name Flags
uniqueKey
metadata
protected java.lang.String uniqueConstraintSql(org.hibernate.mapping.UniqueKey);
descriptor: (Lorg/hibernate/mapping/UniqueKey;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 2
ldc "unique ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
invokevirtual org.hibernate.mapping.UniqueKey.columnIterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 10
4: StackMap locals: java.lang.StringBuilder java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.hibernate.mapping.Column
astore 4
start local 4 5: aload 2
aload 4
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.mapping.Column.getQuotedName:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getColumnOrderMap:()Ljava/util/Map;
aload 4
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 8
7: aload 2
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getColumnOrderMap:()Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals: org.hibernate.mapping.Column
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 10
9: aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: aload 2
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 12 1 uniqueKey Lorg/hibernate/mapping/UniqueKey;
1 12 2 sb Ljava/lang/StringBuilder;
3 12 3 columnIterator Ljava/util/Iterator<Lorg/hibernate/mapping/Column;>;
5 10 4 column Lorg/hibernate/mapping/Column;
MethodParameters:
Name Flags
uniqueKey
public java.lang.String getAlterTableToDropUniqueKeyCommand(org.hibernate.mapping.UniqueKey, org.hibernate.boot.Metadata);
descriptor: (Lorg/hibernate/mapping/UniqueKey;Lorg/hibernate/boot/Metadata;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface org.hibernate.boot.Metadata.getDatabase:()Lorg/hibernate/boot/model/relational/Database;
invokevirtual org.hibernate.boot.model.relational.Database.getJdbcEnvironment:()Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
astore 3
start local 3 1: aload 3
invokeinterface org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getQualifiedObjectNameFormatter:()Lorg/hibernate/engine/jdbc/env/spi/QualifiedObjectNameFormatter;
2: aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getTable:()Lorg/hibernate/mapping/Table;
invokevirtual org.hibernate.mapping.Table.getQualifiedTableName:()Lorg/hibernate/boot/model/relational/QualifiedTableName;
3: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
4: invokeinterface org.hibernate.engine.jdbc.env.spi.QualifiedObjectNameFormatter.format:(Lorg/hibernate/boot/model/relational/QualifiedTableName;Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
astore 4
start local 4 5: new java.lang.StringBuilder
dup
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 4
invokevirtual org.hibernate.dialect.Dialect.getAlterTableString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 5
start local 5 6: aload 5
aload 0
invokevirtual org.hibernate.dialect.unique.DefaultUniqueDelegate.getDropUnique:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.supportsIfExistsBeforeConstraintName:()Z
ifeq 9
8: aload 5
ldc "if exists "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals: org.hibernate.engine.jdbc.env.spi.JdbcEnvironment java.lang.String java.lang.StringBuilder
StackMap stack:
aload 5
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getName:()Ljava/lang/String;
invokevirtual org.hibernate.dialect.Dialect.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.supportsIfExistsAfterConstraintName:()Z
ifeq 12
11: aload 5
ldc " if exists"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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 13 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 13 1 uniqueKey Lorg/hibernate/mapping/UniqueKey;
0 13 2 metadata Lorg/hibernate/boot/Metadata;
1 13 3 jdbcEnvironment Lorg/hibernate/engine/jdbc/env/spi/JdbcEnvironment;
5 13 4 tableName Ljava/lang/String;
6 13 5 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
uniqueKey
metadata
protected java.lang.String getDropUnique();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc " drop constraint "
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
}
SourceFile: "DefaultUniqueDelegate.java"