public class org.hibernate.cfg.ImprovedNamingStrategy implements org.hibernate.cfg.NamingStrategy, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.cfg.ImprovedNamingStrategy
super_class: java.lang.Object
{
public static final org.hibernate.cfg.NamingStrategy INSTANCE;
descriptor: Lorg/hibernate/cfg/NamingStrategy;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.hibernate.cfg.ImprovedNamingStrategy
dup
invokespecial org.hibernate.cfg.ImprovedNamingStrategy.<init>:()V
putstatic org.hibernate.cfg.ImprovedNamingStrategy.INSTANCE:Lorg/hibernate/cfg/NamingStrategy;
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/cfg/ImprovedNamingStrategy;
public java.lang.String classToTableName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.hibernate.cfg.ImprovedNamingStrategy.addUnderscores:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 className Ljava/lang/String;
MethodParameters:
Name Flags
className
public java.lang.String propertyToColumnName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(Ljava/lang/String;)Ljava/lang/String;
invokestatic org.hibernate.cfg.ImprovedNamingStrategy.addUnderscores:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 propertyName Ljava/lang/String;
MethodParameters:
Name Flags
propertyName
public java.lang.String tableName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.hibernate.cfg.ImprovedNamingStrategy.addUnderscores:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 tableName Ljava/lang/String;
MethodParameters:
Name Flags
tableName
public java.lang.String columnName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.hibernate.cfg.ImprovedNamingStrategy.addUnderscores:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 columnName Ljava/lang/String;
MethodParameters:
Name Flags
columnName
protected static java.lang.String addUnderscores(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
bipush 46
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: iconst_1
istore 2
start local 2 2: goto 8
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 2
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
invokestatic java.lang.Character.isLowerCase:(C)Z
ifeq 7
4: aload 1
iload 2
invokevirtual java.lang.StringBuilder.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 7
5: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.StringBuilder.charAt:(I)C
invokestatic java.lang.Character.isLowerCase:(C)Z
ifeq 7
6: aload 1
iload 2
iinc 2 1
bipush 95
invokevirtual java.lang.StringBuilder.insert:(IC)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
if_icmplt 3
end local 2 9: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
1 10 1 buf Ljava/lang/StringBuilder;
2 9 2 i I
MethodParameters:
Name Flags
name
public java.lang.String collectionTableName(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
aload 5
invokevirtual org.hibernate.cfg.ImprovedNamingStrategy.propertyToColumnName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.hibernate.cfg.ImprovedNamingStrategy.tableName:(Ljava/lang/String;)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 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 ownerEntity Ljava/lang/String;
0 1 2 ownerEntityTable Ljava/lang/String;
0 1 3 associatedEntity Ljava/lang/String;
0 1 4 associatedEntityTable Ljava/lang/String;
0 1 5 propertyName Ljava/lang/String;
MethodParameters:
Name Flags
ownerEntity
ownerEntityTable
associatedEntity
associatedEntityTable
propertyName
public java.lang.String joinKeyColumnName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.hibernate.cfg.ImprovedNamingStrategy.columnName:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 1 1 joinedColumn Ljava/lang/String;
0 1 2 joinedTable Ljava/lang/String;
MethodParameters:
Name Flags
joinedColumn
joinedTable
public java.lang.String foreignKeyColumnName(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnull 1
aload 1
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(Ljava/lang/String;)Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: aload 3
StackMap locals:
StackMap stack: java.lang.String
2: astore 5
start local 5 3: aload 5
ifnonnull 4
new org.hibernate.AssertionFailure
dup
ldc "NamingStrategy not properly filled"
invokespecial org.hibernate.AssertionFailure.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 5
invokevirtual org.hibernate.cfg.ImprovedNamingStrategy.columnName:(Ljava/lang/String;)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 5 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 5 1 propertyName Ljava/lang/String;
0 5 2 propertyEntityName Ljava/lang/String;
0 5 3 propertyTableName Ljava/lang/String;
0 5 4 referencedColumnName Ljava/lang/String;
3 5 5 header Ljava/lang/String;
MethodParameters:
Name Flags
propertyName
propertyEntityName
propertyTableName
referencedColumnName
public java.lang.String logicalColumnName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.hibernate.internal.util.StringHelper.isNotEmpty:(Ljava/lang/String;)Z
ifeq 1
aload 1
goto 2
StackMap locals:
StackMap stack:
1: aload 2
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(Ljava/lang/String;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 3 1 columnName Ljava/lang/String;
0 3 2 propertyName Ljava/lang/String;
MethodParameters:
Name Flags
columnName
propertyName
public java.lang.String logicalCollectionTableName(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnull 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuffer
dup
aload 2
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
ldc "_"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
3: aload 3
ifnull 5
4: aload 3
goto 6
5: StackMap locals:
StackMap stack: java.lang.StringBuffer
aload 4
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(Ljava/lang/String;)Ljava/lang/String;
6: StackMap locals: org.hibernate.cfg.ImprovedNamingStrategy java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: java.lang.StringBuffer java.lang.String
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
7: invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
8: 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/cfg/ImprovedNamingStrategy;
0 9 1 tableName Ljava/lang/String;
0 9 2 ownerEntityTable Ljava/lang/String;
0 9 3 associatedEntityTable Ljava/lang/String;
0 9 4 propertyName Ljava/lang/String;
MethodParameters:
Name Flags
tableName
ownerEntityTable
associatedEntityTable
propertyName
public java.lang.String logicalCollectionColumnName(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.hibernate.internal.util.StringHelper.isNotEmpty:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
goto 3
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
invokestatic org.hibernate.internal.util.StringHelper.unqualify:(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
ldc "_"
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;
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/cfg/ImprovedNamingStrategy;
0 4 1 columnName Ljava/lang/String;
0 4 2 propertyName Ljava/lang/String;
0 4 3 referencedColumn Ljava/lang/String;
MethodParameters:
Name Flags
columnName
propertyName
referencedColumn
}
SourceFile: "ImprovedNamingStrategy.java"