public class org.hibernate.dialect.lock.SelectLockingStrategy extends org.hibernate.dialect.lock.AbstractSelectLockingStrategy
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.hibernate.dialect.lock.SelectLockingStrategy
  super_class: org.hibernate.dialect.lock.AbstractSelectLockingStrategy
{
  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=3, locals=3, args_size=3
        start local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
        start local 1 // org.hibernate.persister.entity.Lockable lockable
        start local 2 // org.hibernate.LockMode lockMode
         0: .line 61
            aload 0 /* this */
            aload 1 /* lockable */
            aload 2 /* lockMode */
            invokespecial org.hibernate.dialect.lock.AbstractSelectLockingStrategy.<init>:(Lorg/hibernate/persister/entity/Lockable;Lorg/hibernate/LockMode;)V
         1: .line 62
            return
        end local 2 // org.hibernate.LockMode lockMode
        end local 1 // org.hibernate.persister.entity.Lockable lockable
        end local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lorg/hibernate/dialect/lock/SelectLockingStrategy;
            0    2     1  lockable  Lorg/hibernate/persister/entity/Lockable;
            0    2     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=12, args_size=6
        start local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
        start local 1 // java.io.Serializable id
        start local 2 // java.lang.Object version
        start local 3 // java.lang.Object object
        start local 4 // int timeout
        start local 5 // org.hibernate.engine.spi.SessionImplementor session
         0: .line 71
            aload 0 /* this */
            iload 4 /* timeout */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.determineSql:(I)Ljava/lang/String;
            astore 6 /* sql */
        start local 6 // java.lang.String sql
         1: .line 72
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            astore 7 /* factory */
        start local 7 // org.hibernate.engine.spi.SessionFactoryImplementor factory
         2: .line 74
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getStatementPreparer:()Lorg/hibernate/engine/jdbc/spi/StatementPreparer;
            aload 6 /* sql */
            invokeinterface org.hibernate.engine.jdbc.spi.StatementPreparer.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
            astore 8 /* st */
        start local 8 // java.sql.PreparedStatement st
         3: .line 76
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getIdentifierType:()Lorg/hibernate/type/Type;
            aload 8 /* st */
            aload 1 /* id */
            iconst_1
            aload 5 /* session */
            invokeinterface org.hibernate.type.Type.nullSafeSet:(Ljava/sql/PreparedStatement;Ljava/lang/Object;ILorg/hibernate/engine/spi/SessionImplementor;)V
         4: .line 77
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.isVersioned:()Z
            ifeq 11
         5: .line 78
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getVersionType:()Lorg/hibernate/type/VersionType;
         6: .line 79
            aload 8 /* st */
         7: .line 80
            aload 2 /* version */
         8: .line 81
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getIdentifierType:()Lorg/hibernate/type/Type;
            aload 7 /* factory */
            invokeinterface org.hibernate.type.Type.getColumnSpan:(Lorg/hibernate/engine/spi/Mapping;)I
            iconst_1
            iadd
         9: .line 82
            aload 5 /* session */
        10: .line 78
            invokeinterface org.hibernate.type.VersionType.nullSafeSet:(Ljava/sql/PreparedStatement;Ljava/lang/Object;ILorg/hibernate/engine/spi/SessionImplementor;)V
        11: .line 86
      StackMap locals: java.lang.String org.hibernate.engine.spi.SessionFactoryImplementor java.sql.PreparedStatement
      StackMap stack:
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.getResultSetReturn:()Lorg/hibernate/engine/jdbc/spi/ResultSetReturn;
            aload 8 /* st */
            invokeinterface org.hibernate.engine.jdbc.spi.ResultSetReturn.extract:(Ljava/sql/PreparedStatement;)Ljava/sql/ResultSet;
            astore 9 /* rs */
        start local 9 // java.sql.ResultSet rs
        12: .line 88
            aload 9 /* rs */
            invokeinterface java.sql.ResultSet.next:()Z
            ifne 20
        13: .line 89
            aload 7 /* factory */
            invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getStatistics:()Lorg/hibernate/stat/Statistics;
            invokeinterface org.hibernate.stat.Statistics.isStatisticsEnabled:()Z
            ifeq 16
        14: .line 90
            aload 7 /* factory */
            invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getStatisticsImplementor:()Lorg/hibernate/stat/spi/StatisticsImplementor;
        15: .line 91
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getEntityName:()Ljava/lang/String;
            invokeinterface org.hibernate.stat.spi.StatisticsImplementor.optimisticFailure:(Ljava/lang/String;)V
        16: .line 93
      StackMap locals: java.sql.ResultSet
      StackMap stack:
            new org.hibernate.StaleObjectStateException
            dup
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getEntityName:()Ljava/lang/String;
            aload 1 /* id */
            invokespecial org.hibernate.StaleObjectStateException.<init>:(Ljava/lang/String;Ljava/io/Serializable;)V
            athrow
        17: .line 96
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 10
        18: .line 97
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            aload 9 /* rs */
            aload 8 /* st */
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.release:(Ljava/sql/ResultSet;Ljava/sql/Statement;)V
        19: .line 98
            aload 10
            athrow
        20: .line 97
      StackMap locals:
      StackMap stack:
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            aload 9 /* rs */
            aload 8 /* st */
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.release:(Ljava/sql/ResultSet;Ljava/sql/Statement;)V
        end local 9 // java.sql.ResultSet rs
        21: .line 99
            goto 25
        22: .line 100
      StackMap locals: org.hibernate.dialect.lock.SelectLockingStrategy java.io.Serializable java.lang.Object java.lang.Object int org.hibernate.engine.spi.SessionImplementor java.lang.String org.hibernate.engine.spi.SessionFactoryImplementor java.sql.PreparedStatement
      StackMap stack: java.lang.Throwable
            astore 11
        23: .line 101
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            aload 8 /* st */
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.release:(Ljava/sql/Statement;)V
        24: .line 102
            aload 11
            athrow
        25: .line 101
      StackMap locals:
      StackMap stack:
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getTransactionCoordinator:()Lorg/hibernate/engine/transaction/spi/TransactionCoordinator;
            invokeinterface org.hibernate.engine.transaction.spi.TransactionCoordinator.getJdbcCoordinator:()Lorg/hibernate/engine/jdbc/spi/JdbcCoordinator;
            aload 8 /* st */
            invokeinterface org.hibernate.engine.jdbc.spi.JdbcCoordinator.release:(Ljava/sql/Statement;)V
        end local 8 // java.sql.PreparedStatement st
        26: .line 104
            goto 33
        27: .line 105
      StackMap locals: org.hibernate.dialect.lock.SelectLockingStrategy java.io.Serializable java.lang.Object java.lang.Object int org.hibernate.engine.spi.SessionImplementor java.lang.String org.hibernate.engine.spi.SessionFactoryImplementor
      StackMap stack: java.sql.SQLException
            astore 8 /* sqle */
        start local 8 // java.sql.SQLException sqle
        28: .line 106
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getSQLExceptionHelper:()Lorg/hibernate/engine/jdbc/spi/SqlExceptionHelper;
        29: .line 107
            aload 8 /* sqle */
        30: .line 108
            new java.lang.StringBuilder
            dup
            ldc "could not lock: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            aload 1 /* id */
            aload 5 /* session */
            invokeinterface org.hibernate.engine.spi.SessionImplementor.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            invokestatic org.hibernate.pretty.MessageHelper.infoString:(Lorg/hibernate/persister/entity/EntityPersister;Ljava/lang/Object;Lorg/hibernate/engine/spi/SessionFactoryImplementor;)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        31: .line 109
            aload 6 /* sql */
        32: .line 106
            invokevirtual org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert:(Ljava/sql/SQLException;Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/JDBCException;
            athrow
        end local 8 // java.sql.SQLException sqle
        33: .line 112
      StackMap locals:
      StackMap stack:
            return
        end local 7 // org.hibernate.engine.spi.SessionFactoryImplementor factory
        end local 6 // java.lang.String sql
        end local 5 // org.hibernate.engine.spi.SessionImplementor session
        end local 4 // int timeout
        end local 3 // java.lang.Object object
        end local 2 // java.lang.Object version
        end local 1 // java.io.Serializable id
        end local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   34     0     this  Lorg/hibernate/dialect/lock/SelectLockingStrategy;
            0   34     1       id  Ljava/io/Serializable;
            0   34     2  version  Ljava/lang/Object;
            0   34     3   object  Ljava/lang/Object;
            0   34     4  timeout  I
            0   34     5  session  Lorg/hibernate/engine/spi/SessionImplementor;
            1   34     6      sql  Ljava/lang/String;
            2   34     7  factory  Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            3   26     8       st  Ljava/sql/PreparedStatement;
           12   21     9       rs  Ljava/sql/ResultSet;
           28   33     8     sqle  Ljava/sql/SQLException;
      Exception table:
        from    to  target  type
          12    17      17  any
           3    22      22  any
           2    26      27  Class java.sql.SQLException
    Exceptions:
      throws org.hibernate.StaleObjectStateException, org.hibernate.JDBCException
    MethodParameters:
         Name  Flags
      id       
      version  
      object   
      timeout  
      session  

  protected java.lang.String generateLockString(int);
    descriptor: (I)Ljava/lang/String;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=5, args_size=2
        start local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
        start local 1 // int timeout
         0: .line 115
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getFactory:()Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            astore 2 /* factory */
        start local 2 // org.hibernate.engine.spi.SessionFactoryImplementor factory
         1: .line 116
            new org.hibernate.LockOptions
            dup
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockMode:()Lorg/hibernate/LockMode;
            invokespecial org.hibernate.LockOptions.<init>:(Lorg/hibernate/LockMode;)V
            astore 3 /* lockOptions */
        start local 3 // org.hibernate.LockOptions lockOptions
         2: .line 117
            aload 3 /* lockOptions */
            iload 1 /* timeout */
            invokevirtual org.hibernate.LockOptions.setTimeOut:(I)Lorg/hibernate/LockOptions;
            pop
         3: .line 118
            new org.hibernate.sql.SimpleSelect
            dup
            aload 2 /* factory */
            invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getDialect:()Lorg/hibernate/dialect/Dialect;
            invokespecial org.hibernate.sql.SimpleSelect.<init>:(Lorg/hibernate/dialect/Dialect;)V
         4: .line 119
            aload 3 /* lockOptions */
            invokevirtual org.hibernate.sql.SimpleSelect.setLockOptions:(Lorg/hibernate/LockOptions;)Lorg/hibernate/sql/SimpleSelect;
         5: .line 120
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getRootTableName:()Ljava/lang/String;
            invokevirtual org.hibernate.sql.SimpleSelect.setTableName:(Ljava/lang/String;)Lorg/hibernate/sql/SimpleSelect;
         6: .line 121
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getRootTableIdentifierColumnNames:()[Ljava/lang/String;
            iconst_0
            aaload
            invokevirtual org.hibernate.sql.SimpleSelect.addColumn:(Ljava/lang/String;)Lorg/hibernate/sql/SimpleSelect;
         7: .line 122
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getRootTableIdentifierColumnNames:()[Ljava/lang/String;
            ldc "=?"
            invokevirtual org.hibernate.sql.SimpleSelect.addCondition:([Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/sql/SimpleSelect;
         8: .line 118
            astore 4 /* select */
        start local 4 // org.hibernate.sql.SimpleSelect select
         9: .line 123
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.isVersioned:()Z
            ifeq 11
        10: .line 124
            aload 4 /* select */
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()Lorg/hibernate/persister/entity/Lockable;
            invokeinterface org.hibernate.persister.entity.Lockable.getVersionColumnName:()Ljava/lang/String;
            ldc "=?"
            invokevirtual org.hibernate.sql.SimpleSelect.addCondition:(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/sql/SimpleSelect;
            pop
        11: .line 126
      StackMap locals: org.hibernate.engine.spi.SessionFactoryImplementor org.hibernate.LockOptions org.hibernate.sql.SimpleSelect
      StackMap stack:
            aload 2 /* factory */
            invokeinterface org.hibernate.engine.spi.SessionFactoryImplementor.getSettings:()Lorg/hibernate/cfg/Settings;
            invokevirtual org.hibernate.cfg.Settings.isCommentsEnabled:()Z
            ifeq 13
        12: .line 127
            aload 4 /* select */
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockMode:()Lorg/hibernate/LockMode;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc " lock "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            invokevirtual org.hibernate.dialect.lock.SelectLockingStrategy.getLockable:()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;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual org.hibernate.sql.SimpleSelect.setComment:(Ljava/lang/String;)Lorg/hibernate/sql/SimpleSelect;
            pop
        13: .line 129
      StackMap locals:
      StackMap stack:
            aload 4 /* select */
            invokevirtual org.hibernate.sql.SimpleSelect.toStatementString:()Ljava/lang/String;
            areturn
        end local 4 // org.hibernate.sql.SimpleSelect select
        end local 3 // org.hibernate.LockOptions lockOptions
        end local 2 // org.hibernate.engine.spi.SessionFactoryImplementor factory
        end local 1 // int timeout
        end local 0 // org.hibernate.dialect.lock.SelectLockingStrategy this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   14     0         this  Lorg/hibernate/dialect/lock/SelectLockingStrategy;
            0   14     1      timeout  I
            1   14     2      factory  Lorg/hibernate/engine/spi/SessionFactoryImplementor;
            2   14     3  lockOptions  Lorg/hibernate/LockOptions;
            9   14     4       select  Lorg/hibernate/sql/SimpleSelect;
    MethodParameters:
         Name  Flags
      timeout  
}
SourceFile: "SelectLockingStrategy.java"