public class org.hibernate.id.enhanced.OptimizerFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.id.enhanced.OptimizerFactory
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 static final java.lang.Class[] CTOR_SIG;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String NONE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final java.lang.String HILO;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final java.lang.String LEGACY_HILO;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "legacy-hilo"
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final java.lang.String POOL;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "pooled"
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final java.lang.String POOL_LO;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "pooled-lo"
RuntimeVisibleAnnotations:
java.lang.Deprecated()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lorg/hibernate/internal/CoreMessageLogger;
1: ldc Lorg/hibernate/id/enhanced/OptimizerFactory;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
2: invokestatic org.jboss.logging.Logger.getMessageLogger:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.hibernate.internal.CoreMessageLogger
putstatic org.hibernate.id.enhanced.OptimizerFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
3: iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Class;
aastore
dup
iconst_1
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
putstatic org.hibernate.id.enhanced.OptimizerFactory.CTOR_SIG:[Ljava/lang/Class;
4: getstatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.NONE:Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getExternalName:()Ljava/lang/String;
putstatic org.hibernate.id.enhanced.OptimizerFactory.NONE:Ljava/lang/String;
5: getstatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.HILO:Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getExternalName:()Ljava/lang/String;
putstatic org.hibernate.id.enhanced.OptimizerFactory.HILO:Ljava/lang/String;
6: return
LocalVariableTable:
Start End Slot Name Signature
public static boolean isPooledOptimizer(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.fromExternalName:(Ljava/lang/String;)Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.isPooled:()Z
ifeq 2
iconst_1
ireturn
StackMap locals: org.hibernate.id.enhanced.StandardOptimizerDescriptor
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 optimizerName Ljava/lang/String;
1 3 1 standardDescriptor Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
MethodParameters:
Name Flags
optimizerName
public static org.hibernate.id.enhanced.Optimizer buildOptimizer(java.lang.String, java.lang.Class, int);
descriptor: (Ljava/lang/String;Ljava/lang/Class;I)Lorg/hibernate/id/enhanced/Optimizer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.fromExternalName:(Ljava/lang/String;)Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
astore 4
start local 4 1: aload 4
ifnull 4
2: aload 4
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getOptimizerClass:()Ljava/lang/Class;
astore 3
start local 3 3: goto 9
end local 3 4: StackMap locals: java.lang.String java.lang.Class int top org.hibernate.id.enhanced.StandardOptimizerDescriptor
StackMap stack:
aload 0
invokestatic org.hibernate.internal.util.ReflectHelper.classForName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 5: goto 9
end local 3 6: StackMap locals:
StackMap stack: java.lang.Throwable
pop
7: getstatic org.hibernate.id.enhanced.OptimizerFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 0
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToLocateCustomOptimizerClass:(Ljava/lang/String;)V
8: aload 1
iload 2
invokestatic org.hibernate.id.enhanced.OptimizerFactory.buildFallbackOptimizer:(Ljava/lang/Class;I)Lorg/hibernate/id/enhanced/Optimizer;
areturn
start local 3 9: StackMap locals: java.lang.String java.lang.Class int java.lang.Class org.hibernate.id.enhanced.StandardOptimizerDescriptor
StackMap stack:
aload 3
getstatic org.hibernate.id.enhanced.OptimizerFactory.CTOR_SIG:[Ljava/lang/Class;
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
astore 5
start local 5 10: aload 5
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.id.enhanced.Optimizer
11: areturn
end local 5 12: StackMap locals:
StackMap stack: java.lang.Throwable
pop
13: getstatic org.hibernate.id.enhanced.OptimizerFactory.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 0
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToInstantiateOptimizer:(Ljava/lang/String;)V
14: aload 1
iload 2
invokestatic org.hibernate.id.enhanced.OptimizerFactory.buildFallbackOptimizer:(Ljava/lang/Class;I)Lorg/hibernate/id/enhanced/Optimizer;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 type Ljava/lang/String;
0 15 1 returnClass Ljava/lang/Class;
0 15 2 incrementSize I
3 4 3 optimizerClass Ljava/lang/Class<+Lorg/hibernate/id/enhanced/Optimizer;>;
5 6 3 optimizerClass Ljava/lang/Class<+Lorg/hibernate/id/enhanced/Optimizer;>;
9 15 3 optimizerClass Ljava/lang/Class<+Lorg/hibernate/id/enhanced/Optimizer;>;
1 15 4 standardDescriptor Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
10 12 5 ctor Ljava/lang/reflect/Constructor;
Exception table:
from to target type
4 5 6 Class java.lang.Throwable
9 11 12 Class java.lang.Throwable
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
type
returnClass
incrementSize
private static org.hibernate.id.enhanced.Optimizer buildFallbackOptimizer(java.lang.Class, int);
descriptor: (Ljava/lang/Class;I)Lorg/hibernate/id/enhanced/Optimizer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.hibernate.id.enhanced.NoopOptimizer
dup
aload 0
iload 1
invokespecial org.hibernate.id.enhanced.NoopOptimizer.<init>:(Ljava/lang/Class;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 returnClass Ljava/lang/Class;
0 1 1 incrementSize I
MethodParameters:
Name Flags
returnClass
incrementSize
public static org.hibernate.id.enhanced.Optimizer buildOptimizer(java.lang.String, java.lang.Class, int, long);
descriptor: (Ljava/lang/String;Ljava/lang/Class;IJ)Lorg/hibernate/id/enhanced/Optimizer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
invokestatic org.hibernate.id.enhanced.OptimizerFactory.buildOptimizer:(Ljava/lang/String;Ljava/lang/Class;I)Lorg/hibernate/id/enhanced/Optimizer;
astore 5
start local 5 1: ldc Lorg/hibernate/id/enhanced/InitialValueAwareOptimizer;
aload 5
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 3
2: aload 5
checkcast org.hibernate.id.enhanced.InitialValueAwareOptimizer
lload 3
invokeinterface org.hibernate.id.enhanced.InitialValueAwareOptimizer.injectInitialValue:(J)V
3: StackMap locals: org.hibernate.id.enhanced.Optimizer
StackMap stack:
aload 5
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 type Ljava/lang/String;
0 4 1 returnClass Ljava/lang/Class;
0 4 2 incrementSize I
0 4 3 explicitInitialValue J
1 4 5 optimizer Lorg/hibernate/id/enhanced/Optimizer;
MethodParameters:
Name Flags
type
returnClass
incrementSize
explicitInitialValue
public static java.lang.String determineImplicitOptimizerName(int, java.util.Properties);
descriptor: (ILjava/util/Properties;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 0
iconst_1
if_icmpgt 2
1: getstatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.NONE:Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getExternalName:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "hibernate.id.optimizer.pooled.preferred"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
invokestatic org.hibernate.internal.util.StringHelper.isNotEmpty:(Ljava/lang/String;)Z
ifeq 5
4: aload 2
areturn
5: StackMap locals: java.lang.String
StackMap stack:
ldc "hibernate.id.optimizer.pooled.prefer_lo"
aload 1
iconst_0
invokestatic org.hibernate.internal.util.config.ConfigurationHelper.getBoolean:(Ljava/lang/String;Ljava/util/Map;Z)Z
ifeq 7
6: getstatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.POOLED_LO:Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getExternalName:()Ljava/lang/String;
goto 8
7: StackMap locals:
StackMap stack:
getstatic org.hibernate.id.enhanced.StandardOptimizerDescriptor.POOLED:Lorg/hibernate/id/enhanced/StandardOptimizerDescriptor;
invokevirtual org.hibernate.id.enhanced.StandardOptimizerDescriptor.getExternalName:()Ljava/lang/String;
8: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 incrementSize I
0 9 1 configSettings Ljava/util/Properties;
3 9 2 preferredPooledOptimizerStrategy Ljava/lang/String;
MethodParameters:
Name Flags
incrementSize
configSettings
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/id/enhanced/OptimizerFactory;
}
SourceFile: "OptimizerFactory.java"