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 start local 1 start local 2 0: aload 0
invokespecial org.hibernate.dialect.pagination.AbstractLimitHandler.<init>:()V
1: aload 0
iload 1
putfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
2: aload 0
iload 2
putfield org.hibernate.dialect.pagination.TopLimitHandler.bindLimitParametersFirst:Z
3: return
end local 2 end local 1 end local 0 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 0: iconst_1
ireturn
end local 0 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 0: iconst_1
ireturn
end local 0 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 0: aload 0
getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
ireturn
end local 0 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 0: aload 0
getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
ireturn
end local 0 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 0: aload 0
getfield org.hibernate.dialect.pagination.TopLimitHandler.bindLimitParametersFirst:Z
ireturn
end local 0 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 start local 1 start local 2 0: aload 2
invokestatic org.hibernate.dialect.pagination.LimitHelper.hasFirstRow:(Lorg/hibernate/engine/spi/RowSelection;)Z
ifeq 2
1: new java.lang.UnsupportedOperationException
dup
ldc "query result offset is not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
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
start local 3 3: aload 1
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
start local 4 4: iload 3
iload 4
iload 3
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
start local 5 7: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.String.length:()I
bipush 8
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
8: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: astore 6
start local 6 10: aload 0
getfield org.hibernate.dialect.pagination.TopLimitHandler.supportsVariableLimit:Z
ifeq 13
11: aload 6
iload 5
ldc " TOP ? "
invokevirtual java.lang.StringBuilder.insert:(ILjava/lang/String;)Ljava/lang/StringBuilder;
pop
12: goto 14
13: StackMap locals: int java.lang.StringBuilder
StackMap stack:
aload 6
iload 5
new java.lang.StringBuilder
dup
ldc " TOP "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
aload 2
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: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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 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"