public class org.hibernate.dialect.lock.OptimisticLockingStrategy implements org.hibernate.dialect.lock.LockingStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.dialect.lock.OptimisticLockingStrategy
super_class: java.lang.Object
{
private final org.hibernate.persister.entity.Lockable lockable;
descriptor: Lorg/hibernate/persister/entity/Lockable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.LockMode lockMode;
descriptor: Lorg/hibernate/LockMode;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.hibernate.persister.entity.Lockable, org.hibernate.LockMode);
descriptor: (Lorg/hibernate/persister/entity/Lockable;Lorg/hibernate/LockMode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockable:Lorg/hibernate/persister/entity/Lockable;
2: aload 0
aload 2
putfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockMode:Lorg/hibernate/LockMode;
3: aload 2
getstatic org.hibernate.LockMode.OPTIMISTIC:Lorg/hibernate/LockMode;
invokevirtual org.hibernate.LockMode.lessThan:(Lorg/hibernate/LockMode;)Z
ifeq 5
4: new org.hibernate.HibernateException
dup
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] not valid for ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokeinterface org.hibernate.persister.entity.Lockable.getEntityName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: org.hibernate.dialect.lock.OptimisticLockingStrategy org.hibernate.persister.entity.Lockable org.hibernate.LockMode
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/dialect/lock/OptimisticLockingStrategy;
0 6 1 lockable Lorg/hibernate/persister/entity/Lockable;
0 6 2 lockMode Lorg/hibernate/LockMode;
MethodParameters:
Name Flags
lockable
lockMode
public void lock(java.io.Serializable, java.lang.Object, java.lang.Object, int, org.hibernate.engine.spi.SessionImplementor);
descriptor: (Ljava/io/Serializable;Ljava/lang/Object;Ljava/lang/Object;ILorg/hibernate/engine/spi/SessionImplementor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockable:Lorg/hibernate/persister/entity/Lockable;
invokeinterface org.hibernate.persister.entity.Lockable.isVersioned:()Z
ifne 2
1: new org.hibernate.OptimisticLockException
dup
aload 3
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockMode:Lorg/hibernate/LockMode;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] not supported for non-versioned entities ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockable:Lorg/hibernate/persister/entity/Lockable;
invokeinterface org.hibernate.persister.entity.Lockable.getEntityName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.OptimisticLockException.<init>:(Ljava/lang/Object;Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 5
invokeinterface org.hibernate.engine.spi.SessionImplementor.getPersistenceContext:()Lorg/hibernate/engine/spi/PersistenceContext;
aload 3
invokeinterface org.hibernate.engine.spi.PersistenceContext.getEntry:(Ljava/lang/Object;)Lorg/hibernate/engine/spi/EntityEntry;
astore 6
start local 6 3: aload 5
checkcast org.hibernate.event.spi.EventSource
invokeinterface org.hibernate.event.spi.EventSource.getActionQueue:()Lorg/hibernate/engine/spi/ActionQueue;
new org.hibernate.action.internal.EntityVerifyVersionProcess
dup
aload 3
aload 6
invokespecial org.hibernate.action.internal.EntityVerifyVersionProcess.<init>:(Ljava/lang/Object;Lorg/hibernate/engine/spi/EntityEntry;)V
invokevirtual org.hibernate.engine.spi.ActionQueue.registerProcess:(Lorg/hibernate/action/spi/BeforeTransactionCompletionProcess;)V
4: return
end local 6 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/dialect/lock/OptimisticLockingStrategy;
0 5 1 id Ljava/io/Serializable;
0 5 2 version Ljava/lang/Object;
0 5 3 object Ljava/lang/Object;
0 5 4 timeout I
0 5 5 session Lorg/hibernate/engine/spi/SessionImplementor;
3 5 6 entry Lorg/hibernate/engine/spi/EntityEntry;
MethodParameters:
Name Flags
id
version
object
timeout
session
protected org.hibernate.LockMode getLockMode();
descriptor: ()Lorg/hibernate/LockMode;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.dialect.lock.OptimisticLockingStrategy.lockMode:Lorg/hibernate/LockMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/lock/OptimisticLockingStrategy;
}
SourceFile: "OptimisticLockingStrategy.java"