com.acsinet_solutions.cetia4.data
Class PagingBlock

java.lang.Object
  extended by com.acsinet_solutions.cetia4.data.PagingBlock
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PagedResults

public class PagingBlock
extends java.lang.Object
implements java.io.Serializable

A paging block instance. This class contains information for a single unit of paging information called a block. A block does not contain information of an actual search, it only contains information on the index at which a given "page" starts, and the size of the given block.

Derechos Reservados

Author:
Santiago Arriaga
See Also:
PagerTag, Serialized Form

Constructor Summary
PagingBlock(int blockIndex, int blockSize)
          Public constructor
 
Method Summary
 int getBlockIndex()
          Return the block 0-based index.
 int getBlockNumber()
          Return the block 1-based number; convenience method
 int getBlockSize()
          Return the block size
 int getFirstResultForBlock()
          Get the first result for the current block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingBlock

public PagingBlock(int blockIndex,
                   int blockSize)
Public constructor

Method Detail

getBlockIndex

public final int getBlockIndex()
Return the block 0-based index.


getBlockNumber

public final int getBlockNumber()
Return the block 1-based number; convenience method


getBlockSize

public final int getBlockSize()
Return the block size


getFirstResultForBlock

public final int getFirstResultForBlock()
Get the first result for the current block. May be different from the first result requested in a filter if the filter was not created on valid boundaries ( which is not a recommended use ).