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, java.lang.String, java.lang.String);
descriptor: (Lorg/hibernate/mapping/UniqueKey;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getTable:()Lorg/hibernate/mapping/Table;
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 2
aload 3
invokevirtual org.hibernate.mapping.Table.getQualifiedName:(Lorg/hibernate/dialect/Dialect;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: 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 2: new java.lang.StringBuilder
dup
ldc "alter table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
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;
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 3 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 3 1 uniqueKey Lorg/hibernate/mapping/UniqueKey;
0 3 2 defaultCatalog Ljava/lang/String;
0 3 3 defaultSchema Ljava/lang/String;
1 3 4 tableName Ljava/lang/String;
2 3 5 constraintName Ljava/lang/String;
MethodParameters:
Name Flags
uniqueKey
defaultCatalog
defaultSchema
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, java.lang.String, java.lang.String);
descriptor: (Lorg/hibernate/mapping/UniqueKey;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.StringBuilder
dup
ldc "alter table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 4
start local 4 1: aload 4
aload 1
invokevirtual org.hibernate.mapping.UniqueKey.getTable:()Lorg/hibernate/mapping/Table;
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 2
aload 3
invokevirtual org.hibernate.mapping.Table.getQualifiedName:(Lorg/hibernate/dialect/Dialect;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 4
ldc " drop constraint "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.supportsIfExistsBeforeConstraintName:()Z
ifeq 5
4: aload 4
ldc "if exists "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 4
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
6: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokevirtual org.hibernate.dialect.Dialect.supportsIfExistsAfterConstraintName:()Z
ifeq 8
7: aload 4
ldc " if exists"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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 defaultCatalog Ljava/lang/String;
0 9 3 defaultSchema Ljava/lang/String;
1 9 4 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
uniqueKey
defaultCatalog
defaultSchema
public java.lang.String getColumnDefinitionUniquenessFragment(org.hibernate.metamodel.relational.Column);
descriptor: (Lorg/hibernate/metamodel/relational/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/metamodel/relational/Column;
MethodParameters:
Name Flags
column
public java.lang.String getTableCreationUniqueConstraintsFragment(org.hibernate.metamodel.relational.Table);
descriptor: (Lorg/hibernate/metamodel/relational/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/metamodel/relational/Table;
MethodParameters:
Name Flags
table
public java.lang.String getAlterTableToAddUniqueKeyCommand(org.hibernate.metamodel.relational.UniqueKey);
descriptor: (Lorg/hibernate/metamodel/relational/UniqueKey;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.metamodel.relational.UniqueKey.getTable:()Lorg/hibernate/metamodel/relational/TableSpecification;
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokeinterface org.hibernate.metamodel.relational.TableSpecification.getQualifiedName:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 1
invokevirtual org.hibernate.metamodel.relational.UniqueKey.getName:()Ljava/lang/String;
invokevirtual org.hibernate.dialect.Dialect.quote:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: new java.lang.StringBuilder
dup
ldc "alter table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " add constraint "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 1
invokevirtual org.hibernate.dialect.unique.DefaultUniqueDelegate.uniqueConstraintSql:(Lorg/hibernate/metamodel/relational/UniqueKey;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 3 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 3 1 uniqueKey Lorg/hibernate/metamodel/relational/UniqueKey;
1 3 2 tableName Ljava/lang/String;
2 3 3 constraintName Ljava/lang/String;
MethodParameters:
Name Flags
uniqueKey
protected java.lang.String uniqueConstraintSql(org.hibernate.metamodel.relational.UniqueKey);
descriptor: (Lorg/hibernate/metamodel/relational/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
ldc " unique ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 1
invokevirtual org.hibernate.metamodel.relational.UniqueKey.getColumns:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 7
3: 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 4: 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
5: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 7
6: aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: 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 9 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 9 1 uniqueKey Lorg/hibernate/metamodel/relational/UniqueKey;
1 9 2 sb Ljava/lang/StringBuilder;
2 9 3 columnIterator Ljava/util/Iterator;
4 7 4 column Lorg/hibernate/mapping/Column;
MethodParameters:
Name Flags
uniqueKey
public java.lang.String getAlterTableToDropUniqueKeyCommand(org.hibernate.metamodel.relational.UniqueKey);
descriptor: (Lorg/hibernate/metamodel/relational/UniqueKey;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.hibernate.metamodel.relational.UniqueKey.getTable:()Lorg/hibernate/metamodel/relational/TableSpecification;
aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
invokeinterface org.hibernate.metamodel.relational.TableSpecification.getQualifiedName:(Lorg/hibernate/dialect/Dialect;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.hibernate.dialect.unique.DefaultUniqueDelegate.dialect:Lorg/hibernate/dialect/Dialect;
aload 1
invokevirtual org.hibernate.metamodel.relational.UniqueKey.getName:()Ljava/lang/String;
invokevirtual org.hibernate.dialect.Dialect.quote:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: new java.lang.StringBuilder
dup
ldc "alter table "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " drop constraint "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 3 0 this Lorg/hibernate/dialect/unique/DefaultUniqueDelegate;
0 3 1 uniqueKey Lorg/hibernate/metamodel/relational/UniqueKey;
1 3 2 tableName Ljava/lang/String;
2 3 3 constraintName Ljava/lang/String;
MethodParameters:
Name Flags
uniqueKey
}
SourceFile: "DefaultUniqueDelegate.java"