public class org.hibernate.id.enhanced.HiLoOptimizer extends org.hibernate.id.enhanced.AbstractOptimizer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.id.enhanced.HiLoOptimizer
super_class: org.hibernate.id.enhanced.AbstractOptimizer
{
private static final org.jboss.logging.Logger log;
descriptor: Lorg/jboss/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.hibernate.id.enhanced.HiLoOptimizer$GenerationState noTenantState;
descriptor: Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<java.lang.String, org.hibernate.id.enhanced.HiLoOptimizer$GenerationState> tenantSpecificState;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/id/enhanced/HiLoOptimizer;
invokestatic org.jboss.logging.Logger.getLogger:(Ljava/lang/Class;)Lorg/jboss/logging/Logger;
putstatic org.hibernate.id.enhanced.HiLoOptimizer.log:Lorg/jboss/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Class, int);
descriptor: (Ljava/lang/Class;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.hibernate.id.enhanced.AbstractOptimizer.<init>:(Ljava/lang/Class;I)V
1: iload 2
iconst_1
if_icmpge 3
2: new org.hibernate.HibernateException
dup
ldc "increment size cannot be less than 1"
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.hibernate.id.enhanced.HiLoOptimizer java.lang.Class int
StackMap stack:
getstatic org.hibernate.id.enhanced.HiLoOptimizer.log:Lorg/jboss/logging/Logger;
invokevirtual org.jboss.logging.Logger.isTraceEnabled:()Z
ifeq 5
4: getstatic org.hibernate.id.enhanced.HiLoOptimizer.log:Lorg/jboss/logging/Logger;
ldc "Creating hilo optimizer with [incrementSize={0}; returnClass={1}]"
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual org.jboss.logging.Logger.tracev:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
0 6 1 returnClass Ljava/lang/Class;
0 6 2 incrementSize I
MethodParameters:
Name Flags
returnClass
incrementSize
public synchronized java.io.Serializable generate(org.hibernate.id.enhanced.AccessCallback);
descriptor: (Lorg/hibernate/id/enhanced/AccessCallback;)Ljava/io/Serializable;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.hibernate.id.enhanced.AccessCallback.getTenantIdentifier:()Ljava/lang/String;
invokevirtual org.hibernate.id.enhanced.HiLoOptimizer.locateGenerationState:(Ljava/lang/String;)Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
astore 2
start local 2 1: aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
ifnonnull 9
2: aload 2
aload 1
invokeinterface org.hibernate.id.enhanced.AccessCallback.getNextValue:()Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
3: goto 5
4: StackMap locals: org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
StackMap stack:
aload 2
aload 1
invokeinterface org.hibernate.id.enhanced.AccessCallback.getNextValue:()Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
5: StackMap locals:
StackMap stack:
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
lconst_1
invokeinterface org.hibernate.id.IntegralDataTypeHolder.lt:(J)Z
ifne 4
6: aload 2
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.copy:()Lorg/hibernate/id/IntegralDataTypeHolder;
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.incrementSize:I
i2l
invokeinterface org.hibernate.id.IntegralDataTypeHolder.multiplyBy:(J)Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.increment:()Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
7: aload 2
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.copy:()Lorg/hibernate/id/IntegralDataTypeHolder;
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.incrementSize:I
i2l
invokeinterface org.hibernate.id.IntegralDataTypeHolder.subtract:(J)Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.value:Lorg/hibernate/id/IntegralDataTypeHolder;
8: goto 13
9: StackMap locals:
StackMap stack:
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.value:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.gt:(Lorg/hibernate/id/IntegralDataTypeHolder;)Z
ifne 13
10: aload 2
aload 1
invokeinterface org.hibernate.id.enhanced.AccessCallback.getNextValue:()Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
11: aload 2
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.copy:()Lorg/hibernate/id/IntegralDataTypeHolder;
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.incrementSize:I
i2l
invokeinterface org.hibernate.id.IntegralDataTypeHolder.multiplyBy:(J)Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.increment:()Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
12: aload 2
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.copy:()Lorg/hibernate/id/IntegralDataTypeHolder;
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.incrementSize:I
i2l
invokeinterface org.hibernate.id.IntegralDataTypeHolder.subtract:(J)Lorg/hibernate/id/IntegralDataTypeHolder;
putfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.value:Lorg/hibernate/id/IntegralDataTypeHolder;
13: StackMap locals:
StackMap stack:
aload 2
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.value:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.makeValueThenIncrement:()Ljava/lang/Number;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
0 14 1 callback Lorg/hibernate/id/enhanced/AccessCallback;
1 14 2 generationState Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
MethodParameters:
Name Flags
callback
private org.hibernate.id.enhanced.HiLoOptimizer$GenerationState locateGenerationState(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 4
1: aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.noTenantState:Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
ifnonnull 3
2: aload 0
new org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
dup
invokespecial org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.<init>:()V
putfield org.hibernate.id.enhanced.HiLoOptimizer.noTenantState:Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
3: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.noTenantState:Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.tenantSpecificState:Ljava/util/Map;
ifnonnull 9
5: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.hibernate.id.enhanced.HiLoOptimizer.tenantSpecificState:Ljava/util/Map;
6: new org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
dup
invokespecial org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.<init>:()V
astore 2
start local 2 7: aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.tenantSpecificState:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: goto 13
end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.tenantSpecificState:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
astore 2
start local 2 10: aload 2
ifnonnull 13
11: new org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
dup
invokespecial org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.<init>:()V
astore 2
12: aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.tenantSpecificState:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: StackMap locals: org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
0 14 1 tenantIdentifier Ljava/lang/String;
7 9 2 state Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
10 14 2 state Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
MethodParameters:
Name Flags
tenantIdentifier
private org.hibernate.id.enhanced.HiLoOptimizer$GenerationState noTenantGenerationState();
descriptor: ()Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.noTenantState:Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "Could not locate previous generation state for no-tenant"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.id.enhanced.HiLoOptimizer.noTenantState:Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
public synchronized org.hibernate.id.IntegralDataTypeHolder getLastSourceValue();
descriptor: ()Lorg/hibernate/id/IntegralDataTypeHolder;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.id.enhanced.HiLoOptimizer.noTenantGenerationState:()Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.lastSourceValue:Lorg/hibernate/id/IntegralDataTypeHolder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
public boolean applyIncrementSizeToSourceValues();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
public synchronized org.hibernate.id.IntegralDataTypeHolder getLastValue();
descriptor: ()Lorg/hibernate/id/IntegralDataTypeHolder;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.id.enhanced.HiLoOptimizer.noTenantGenerationState:()Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.value:Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.copy:()Lorg/hibernate/id/IntegralDataTypeHolder;
invokeinterface org.hibernate.id.IntegralDataTypeHolder.decrement:()Lorg/hibernate/id/IntegralDataTypeHolder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
public synchronized org.hibernate.id.IntegralDataTypeHolder getHiValue();
descriptor: ()Lorg/hibernate/id/IntegralDataTypeHolder;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.id.enhanced.HiLoOptimizer.noTenantGenerationState:()Lorg/hibernate/id/enhanced/HiLoOptimizer$GenerationState;
getfield org.hibernate.id.enhanced.HiLoOptimizer$GenerationState.upperLimit:Lorg/hibernate/id/IntegralDataTypeHolder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/enhanced/HiLoOptimizer;
}
SourceFile: "HiLoOptimizer.java"
NestMembers:
org.hibernate.id.enhanced.HiLoOptimizer$GenerationState
InnerClasses:
private GenerationState = org.hibernate.id.enhanced.HiLoOptimizer$GenerationState of org.hibernate.id.enhanced.HiLoOptimizer