public class org.hibernate.dialect.lock.PessimisticForceIncrementLockingStrategy 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.PessimisticForceIncrementLockingStrategy
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.PessimisticForceIncrementLockingStrategy.lockable:Lorg/hibernate/persister/entity/Lockable;
2: aload 0
aload 2
putfield org.hibernate.dialect.lock.PessimisticForceIncrementLockingStrategy.lockMode:Lorg/hibernate/LockMode;
3: aload 2
getstatic org.hibernate.LockMode.PESSIMISTIC_READ: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.PessimisticForceIncrementLockingStrategy 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/PessimisticForceIncrementLockingStrategy;
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=5, locals=9, 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.PessimisticForceIncrementLockingStrategy.lockable:Lorg/hibernate/persister/entity/Lockable;
invokeinterface org.hibernate.persister.entity.Lockable.isVersioned:()Z
ifne 2
1: new org.hibernate.HibernateException
dup
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.dialect.lock.PessimisticForceIncrementLockingStrategy.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.PessimisticForceIncrementLockingStrategy.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.HibernateException.<init>:(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 6
invokevirtual org.hibernate.engine.spi.EntityEntry.getPersister:()Lorg/hibernate/persister/entity/EntityPersister;
astore 7
start local 7 4: aload 7
aload 6
invokevirtual org.hibernate.engine.spi.EntityEntry.getId:()Ljava/io/Serializable;
aload 6
invokevirtual org.hibernate.engine.spi.EntityEntry.getVersion:()Ljava/lang/Object;
aload 5
invokeinterface org.hibernate.persister.entity.EntityPersister.forceVersionIncrement:(Ljava/io/Serializable;Ljava/lang/Object;Lorg/hibernate/engine/spi/SessionImplementor;)Ljava/lang/Object;
astore 8
start local 8 5: aload 6
aload 3
aload 8
invokevirtual org.hibernate.engine.spi.EntityEntry.forceLocked:(Ljava/lang/Object;Ljava/lang/Object;)V
6: return
end local 8 end local 7 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 7 0 this Lorg/hibernate/dialect/lock/PessimisticForceIncrementLockingStrategy;
0 7 1 id Ljava/io/Serializable;
0 7 2 version Ljava/lang/Object;
0 7 3 object Ljava/lang/Object;
0 7 4 timeout I
0 7 5 session Lorg/hibernate/engine/spi/SessionImplementor;
3 7 6 entry Lorg/hibernate/engine/spi/EntityEntry;
4 7 7 persister Lorg/hibernate/persister/entity/EntityPersister;
5 7 8 nextVersion Ljava/lang/Object;
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.PessimisticForceIncrementLockingStrategy.lockMode:Lorg/hibernate/LockMode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/lock/PessimisticForceIncrementLockingStrategy;
}
SourceFile: "PessimisticForceIncrementLockingStrategy.java"