public class org.hibernate.dialect.pagination.TopLimitHandler extends org.hibernate.dialect.pagination.AbstractLimitHandler
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.hibernate.dialect.pagination.TopLimitHandler
  super_class: org.hibernate.dialect.pagination.AbstractLimitHandler
{
  private final boolean supportsVariableLimit;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean bindLimitParametersFirst;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(boolean, boolean);
    descriptor: (ZZ)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
        start local 1 // boolean supportsVariableLimit
        start local 2 // boolean bindLimitParametersFirst
         0: .line 23
            aload 0 /* this */
            invokespecial org.hibernate.dialect.pagination.AbstractLimitHandler.<init>:()V
         1: .line 24
            aload 0 /* this */
            iload 1 /* supportsVariableLimit */
            putfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
         2: .line 25
            aload 0 /* this */
            iload 2 /* bindLimitParametersFirst */
            putfield org.hibernate.dialect.pagination.TopLimitHandler.bindLimitParametersFirst:Z
         3: .line 26
            return
        end local 2 // boolean bindLimitParametersFirst
        end local 1 // boolean supportsVariableLimit
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot                      Name  Signature
            0    4     0                      this  Lorg/hibernate/dialect/pagination/TopLimitHandler;
            0    4     1     supportsVariableLimit  Z
            0    4     2  bindLimitParametersFirst  Z
    MethodParameters:
                          Name  Flags
      supportsVariableLimit     
      bindLimitParametersFirst  

  public boolean supportsLimit();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
         0: .line 30
            iconst_1
            ireturn
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/hibernate/dialect/pagination/TopLimitHandler;

  public boolean useMaxForLimit();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
         0: .line 35
            iconst_1
            ireturn
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/hibernate/dialect/pagination/TopLimitHandler;

  public boolean supportsLimitOffset();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
         0: .line 40
            aload 0 /* this */
            getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
            ireturn
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/hibernate/dialect/pagination/TopLimitHandler;

  public boolean supportsVariableLimit();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
         0: .line 45
            aload 0 /* this */
            getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
            ireturn
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/hibernate/dialect/pagination/TopLimitHandler;

  public boolean bindLimitParametersFirst();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
         0: .line 50
            aload 0 /* this */
            getfield org.hibernate.dialect.pagination.TopLimitHandler.bindLimitParametersFirst:Z
            ireturn
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/hibernate/dialect/pagination/TopLimitHandler;

  public java.lang.String processSql(java.lang.String, org.hibernate.engine.spi.RowSelection);
    descriptor: (Ljava/lang/String;Lorg/hibernate/engine/spi/RowSelection;)Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
        start local 1 // java.lang.String sql
        start local 2 // org.hibernate.engine.spi.RowSelection selection
         0: .line 55
            aload 2 /* selection */
            invokestatic org.hibernate.dialect.pagination.LimitHelper.hasFirstRow:(Lorg/hibernate/engine/spi/RowSelection;)Z
            ifeq 2
         1: .line 56
            new java.lang.UnsupportedOperationException
            dup
            ldc "query result offset is not supported"
            invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 59
      StackMap locals:
      StackMap stack:
            aload 1 /* sql */
            getstatic java.util.Locale.ROOT:Ljava/util/Locale;
            invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
            ldc "select"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 3 /* selectIndex */
        start local 3 // int selectIndex
         3: .line 60
            aload 1 /* sql */
            getstatic java.util.Locale.ROOT:Ljava/util/Locale;
            invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
            ldc "select distinct"
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 4 /* selectDistinctIndex */
        start local 4 // int selectDistinctIndex
         4: .line 61
            iload 3 /* selectIndex */
            iload 4 /* selectDistinctIndex */
            iload 3 /* selectIndex */
            if_icmpne 5
            bipush 15
            goto 6
      StackMap locals: org.hibernate.dialect.pagination.TopLimitHandler java.lang.String org.hibernate.engine.spi.RowSelection int int
      StackMap stack: int
         5: bipush 6
      StackMap locals: org.hibernate.dialect.pagination.TopLimitHandler java.lang.String org.hibernate.engine.spi.RowSelection int int
      StackMap stack: int int
         6: iadd
            istore 5 /* insertionPoint */
        start local 5 // int insertionPoint
         7: .line 63
            new java.lang.StringBuilder
            dup
            aload 1 /* sql */
            invokevirtual java.lang.String.length:()I
            bipush 8
            iadd
            invokespecial java.lang.StringBuilder.<init>:(I)V
         8: .line 64
            aload 1 /* sql */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         9: .line 63
            astore 6 /* sb */
        start local 6 // java.lang.StringBuilder sb
        10: .line 66
            aload 0 /* this */
            getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
            ifeq 13
        11: .line 67
            aload 6 /* sb */
            iload 5 /* insertionPoint */
            ldc " TOP ? "
            invokevirtual java.lang.StringBuilder.insert:(ILjava/lang/String;)Ljava/lang/StringBuilder;
            pop
        12: .line 68
            goto 14
        13: .line 70
      StackMap locals: int java.lang.StringBuilder
      StackMap stack:
            aload 6 /* sb */
            iload 5 /* insertionPoint */
            new java.lang.StringBuilder
            dup
            ldc " TOP "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            aload 2 /* selection */
            invokevirtual org.hibernate.dialect.pagination.TopLimitHandler.getMaxOrLimit:(Lorg/hibernate/engine/spi/RowSelection;)I
            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.lang.StringBuilder.insert:(ILjava/lang/String;)Ljava/lang/StringBuilder;
            pop
        14: .line 73
      StackMap locals:
      StackMap stack:
            aload 6 /* sb */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 6 // java.lang.StringBuilder sb
        end local 5 // int insertionPoint
        end local 4 // int selectDistinctIndex
        end local 3 // int selectIndex
        end local 2 // org.hibernate.engine.spi.RowSelection selection
        end local 1 // java.lang.String sql
        end local 0 // org.hibernate.dialect.pagination.TopLimitHandler this
      LocalVariableTable:
        Start  End  Slot                 Name  Signature
            0   15     0                 this  Lorg/hibernate/dialect/pagination/TopLimitHandler;
            0   15     1                  sql  Ljava/lang/String;
            0   15     2            selection  Lorg/hibernate/engine/spi/RowSelection;
            3   15     3          selectIndex  I
            4   15     4  selectDistinctIndex  I
            7   15     5       insertionPoint  I
           10   15     6                   sb  Ljava/lang/StringBuilder;
    MethodParameters:
           Name  Flags
      sql        
      selection  
}
SourceFile: "TopLimitHandler.java"