public class org.hibernate.id.uuid.CustomVersionOneStrategy implements org.hibernate.id.UUIDGenerationStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.id.uuid.CustomVersionOneStrategy
super_class: java.lang.Object
{
private final long mostSignificantBits;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public int getGeneratedVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/uuid/CustomVersionOneStrategy;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: bipush 8
newarray 8
astore 1
start local 1 2: invokestatic org.hibernate.id.uuid.Helper.getAddressBytes:()[B
iconst_0
aload 1
iconst_0
iconst_4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: invokestatic org.hibernate.id.uuid.Helper.getJvmIdentifierBytes:()[B
iconst_0
aload 1
iconst_4
iconst_4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 1
bipush 6
dup2
baload
bipush 15
iand
i2b
bastore
5: aload 1
bipush 6
dup2
baload
bipush 16
ior
i2b
bastore
6: aload 0
aload 1
invokestatic org.hibernate.internal.util.BytesHelper.asLong:([B)J
putfield org.hibernate.id.uuid.CustomVersionOneStrategy.mostSignificantBits:J
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/id/uuid/CustomVersionOneStrategy;
2 8 1 hiBits [B
public java.util.UUID generateUUID(org.hibernate.engine.spi.SharedSessionContractImplementor);
descriptor: (Lorg/hibernate/engine/spi/SharedSessionContractImplementor;)Ljava/util/UUID;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.currentTimeMillis:()J
invokestatic org.hibernate.id.uuid.CustomVersionOneStrategy.generateLeastSignificantBits:(J)J
lstore 2
start local 2 1: new java.util.UUID
dup
aload 0
getfield org.hibernate.id.uuid.CustomVersionOneStrategy.mostSignificantBits:J
lload 2
invokespecial java.util.UUID.<init>:(JJ)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/id/uuid/CustomVersionOneStrategy;
0 2 1 session Lorg/hibernate/engine/spi/SharedSessionContractImplementor;
1 2 2 leastSignificantBits J
MethodParameters:
Name Flags
session
public long getMostSignificantBits();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.id.uuid.CustomVersionOneStrategy.mostSignificantBits:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/id/uuid/CustomVersionOneStrategy;
public static long generateLeastSignificantBits(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: bipush 8
newarray 8
astore 2
start local 2 1: lload 0
bipush 32
lushr
l2i
i2s
istore 3
start local 3 2: lload 0
l2i
istore 4
start local 4 3: iload 3
invokestatic org.hibernate.internal.util.BytesHelper.fromShort:(I)[B
iconst_0
aload 2
iconst_0
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: iload 4
invokestatic org.hibernate.internal.util.BytesHelper.fromInt:(I)[B
iconst_0
aload 2
iconst_2
iconst_4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: invokestatic org.hibernate.id.uuid.Helper.getCountBytes:()[B
iconst_0
aload 2
bipush 6
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 2
iconst_0
dup2
baload
bipush 63
iand
i2b
bastore
7: aload 2
iconst_0
dup2
baload
sipush 128
ior
i2b
bastore
8: aload 2
invokestatic org.hibernate.internal.util.BytesHelper.asLong:([B)J
lreturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 seed J
1 9 2 loBits [B
2 9 3 hiTime S
3 9 4 loTime I
MethodParameters:
Name Flags
seed
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=11, args_size=1
start local 0 0: new org.hibernate.id.uuid.CustomVersionOneStrategy
dup
invokespecial org.hibernate.id.uuid.CustomVersionOneStrategy.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 30
3: StackMap locals: org.hibernate.id.uuid.CustomVersionOneStrategy int
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Generation # "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: bipush 8
newarray 8
astore 3
start local 3 5: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 6: invokestatic java.lang.System.currentTimeMillis:()J
bipush 32
lushr
l2i
i2s
istore 6
start local 6 7: lload 4
l2i
istore 7
start local 7 8: iload 6
invokestatic org.hibernate.internal.util.BytesHelper.fromShort:(I)[B
iconst_0
aload 3
iconst_0
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: iload 7
invokestatic org.hibernate.internal.util.BytesHelper.fromInt:(I)[B
iconst_0
aload 3
iconst_2
iconst_4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: invokestatic org.hibernate.id.uuid.Helper.getCountBytes:()[B
iconst_0
aload 3
bipush 6
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " before bit setting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " loBits[0] : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iconst_0
baload
invokestatic org.hibernate.internal.util.BytesHelper.toBinaryString:(B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " lsb : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokestatic org.hibernate.internal.util.BytesHelper.asLong:([B)J
invokestatic org.hibernate.internal.util.BytesHelper.toBinaryString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: aload 3
iconst_0
dup2
baload
bipush 63
iand
i2b
bastore
16: aload 3
iconst_0
dup2
baload
sipush 128
ior
i2b
bastore
17: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " after bit setting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " loBits[0] : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
iconst_0
baload
invokestatic org.hibernate.internal.util.BytesHelper.toBinaryString:(B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
19: aload 3
invokestatic org.hibernate.internal.util.BytesHelper.asLong:([B)J
lstore 8
start local 8 20: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " lsb : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 8
invokestatic org.hibernate.internal.util.BytesHelper.toBinaryString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
21: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
22: new java.util.UUID
dup
aload 1
getfield org.hibernate.id.uuid.CustomVersionOneStrategy.mostSignificantBits:J
lload 8
invokespecial java.util.UUID.<init>:(JJ)V
astore 10
start local 10 23: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " uuid : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " variant : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual java.util.UUID.variant:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
25: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " version : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokevirtual java.util.UUID.version:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
26: aload 10
invokevirtual java.util.UUID.variant:()I
iconst_2
if_icmpeq 28
27: new java.lang.RuntimeException
dup
ldc "bad variant"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals: java.lang.String[] org.hibernate.id.uuid.CustomVersionOneStrategy int byte[] long int int long java.util.UUID
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 10 end local 8 end local 7 end local 6 end local 4 end local 3 29: iinc 2 1
StackMap locals: java.lang.String[] org.hibernate.id.uuid.CustomVersionOneStrategy int
StackMap stack:
30: iload 2
sipush 1000
if_icmplt 3
end local 2 31: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 args [Ljava/lang/String;
1 32 1 strategy Lorg/hibernate/id/uuid/CustomVersionOneStrategy;
2 31 2 i I
5 29 3 loBits [B
6 29 4 sysTime J
7 29 6 hiTime S
8 29 7 loTime I
20 29 8 leastSignificantBits J
23 29 10 uuid Ljava/util/UUID;
RuntimeInvisibleAnnotations:
org.hibernate.internal.build.AllowSysOut()
MethodParameters:
Name Flags
args
}
SourceFile: "CustomVersionOneStrategy.java"