public abstract class org.hibernate.dialect.pagination.AbstractLimitHandler implements org.hibernate.dialect.pagination.LimitHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.hibernate.dialect.pagination.AbstractLimitHandler
super_class: java.lang.Object
{
protected final java.lang.String sql;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.hibernate.engine.spi.RowSelection selection;
descriptor: Lorg/hibernate/engine/spi/RowSelection;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>(java.lang.String, org.hibernate.engine.spi.RowSelection);
descriptor: (Ljava/lang/String;Lorg/hibernate/engine/spi/RowSelection;)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 java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.hibernate.dialect.pagination.AbstractLimitHandler.sql:Ljava/lang/String;
2: aload 0
aload 2
putfield org.hibernate.dialect.pagination.AbstractLimitHandler.selection:Lorg/hibernate/engine/spi/RowSelection;
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/AbstractLimitHandler;
0 4 1 sql Ljava/lang/String;
0 4 2 selection Lorg/hibernate/engine/spi/RowSelection;
MethodParameters:
Name Flags
sql
selection
public boolean supportsLimit();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean supportsLimitOffset();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.supportsLimit:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean supportsVariableLimit();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.supportsLimit:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean bindLimitParametersInReverseOrder();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean bindLimitParametersFirst();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean useMaxForLimit();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public boolean forceLimitUsage();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public int convertToFirstRowValue(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
0 1 1 zeroBasedFirstResult I
MethodParameters:
Name Flags
zeroBasedFirstResult
public java.lang.String getProcessedSql();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Paged queries not supported by "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
public int bindLimitParametersAtStartOfQuery(java.sql.PreparedStatement, int);
descriptor: (Ljava/sql/PreparedStatement;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersFirst:()Z
ifeq 1
aload 0
aload 1
iload 2
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParameters:(Ljava/sql/PreparedStatement;I)I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
0 3 1 statement Ljava/sql/PreparedStatement;
0 3 2 index I
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
statement
index
public int bindLimitParametersAtEndOfQuery(java.sql.PreparedStatement, int);
descriptor: (Ljava/sql/PreparedStatement;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersFirst:()Z
ifne 1
aload 0
aload 1
iload 2
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParameters:(Ljava/sql/PreparedStatement;I)I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
0 3 1 statement Ljava/sql/PreparedStatement;
0 3 2 index I
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
statement
index
public void setMaxRows(java.sql.PreparedStatement);
descriptor: (Ljava/sql/PreparedStatement;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
0 1 1 statement Ljava/sql/PreparedStatement;
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
statement
protected int bindLimitParameters(java.sql.PreparedStatement, int);
descriptor: (Ljava/sql/PreparedStatement;I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.supportsVariableLimit:()Z
ifeq 1
aload 0
getfield org.hibernate.dialect.pagination.AbstractLimitHandler.selection:Lorg/hibernate/engine/spi/RowSelection;
invokestatic org.hibernate.dialect.pagination.LimitHelper.hasMaxRows:(Lorg/hibernate/engine/spi/RowSelection;)Z
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.hibernate.dialect.pagination.AbstractLimitHandler.selection:Lorg/hibernate/engine/spi/RowSelection;
invokestatic org.hibernate.dialect.pagination.LimitHelper.getFirstRow:(Lorg/hibernate/engine/spi/RowSelection;)I
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.convertToFirstRowValue:(I)I
istore 3
start local 3 3: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.getMaxOrLimit:()I
istore 4
start local 4 4: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.supportsLimitOffset:()Z
ifeq 6
iload 3
ifgt 5
aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.forceLimitUsage:()Z
ifeq 6
StackMap locals: int int
StackMap stack:
5: iconst_1
goto 7
StackMap locals:
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 5
start local 5 8: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersInReverseOrder:()Z
istore 6
start local 6 9: iload 5
ifeq 13
10: aload 1
iload 2
iload 6
ifeq 11
iconst_1
goto 12
StackMap locals: org.hibernate.dialect.pagination.AbstractLimitHandler java.sql.PreparedStatement int int int int int
StackMap stack: java.sql.PreparedStatement int
11: iconst_0
StackMap locals: org.hibernate.dialect.pagination.AbstractLimitHandler java.sql.PreparedStatement int int int int int
StackMap stack: java.sql.PreparedStatement int int
12: iadd
iload 3
invokeinterface java.sql.PreparedStatement.setInt:(II)V
13: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 6
ifne 14
iload 5
ifne 15
StackMap locals: org.hibernate.dialect.pagination.AbstractLimitHandler java.sql.PreparedStatement int int int int int
StackMap stack: java.sql.PreparedStatement int
14: iconst_0
goto 16
StackMap locals: org.hibernate.dialect.pagination.AbstractLimitHandler java.sql.PreparedStatement int int int int int
StackMap stack: java.sql.PreparedStatement int
15: iconst_1
StackMap locals: org.hibernate.dialect.pagination.AbstractLimitHandler java.sql.PreparedStatement int int int int int
StackMap stack: java.sql.PreparedStatement int int
16: iadd
iload 4
invokeinterface java.sql.PreparedStatement.setInt:(II)V
17: iload 5
ifeq 18
iconst_2
goto 19
StackMap locals:
StackMap stack:
18: iconst_1
StackMap locals:
StackMap stack: int
19: ireturn
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 20 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
0 20 1 statement Ljava/sql/PreparedStatement;
0 20 2 index I
3 20 3 firstRow I
4 20 4 lastRow I
8 20 5 hasFirstRow Z
9 20 6 reverse Z
Exceptions:
throws java.sql.SQLException
MethodParameters:
Name Flags
statement
index
protected int getMaxOrLimit();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield org.hibernate.dialect.pagination.AbstractLimitHandler.selection:Lorg/hibernate/engine/spi/RowSelection;
invokestatic org.hibernate.dialect.pagination.LimitHelper.getFirstRow:(Lorg/hibernate/engine/spi/RowSelection;)I
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.convertToFirstRowValue:(I)I
istore 1
start local 1 1: aload 0
getfield org.hibernate.dialect.pagination.AbstractLimitHandler.selection:Lorg/hibernate/engine/spi/RowSelection;
invokevirtual org.hibernate.engine.spi.RowSelection.getMaxRows:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 2
start local 2 2: aload 0
invokevirtual org.hibernate.dialect.pagination.AbstractLimitHandler.useMaxForLimit:()Z
ifeq 3
iload 2
iload 1
iadd
goto 4
StackMap locals: int int
StackMap stack:
3: iload 2
StackMap locals:
StackMap stack: int
4: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/hibernate/dialect/pagination/AbstractLimitHandler;
1 5 1 firstRow I
2 5 2 lastRow I
}
SourceFile: "AbstractLimitHandler.java"