Class ModelPaging

java.lang.Object
com.onenetwork.platform.data.model.ModelPaging
All Implemented Interfaces:
ModelQueryComponent

public class ModelPaging
extends java.lang.Object
implements ModelQueryComponent
Used to define the "Paging" clause of a Model query. Create through ModelQuery.
  • Constructor Summary

    Constructors 
    Constructor Description
    ModelPaging​(long page, long pageSize)
    Supply the page and pageSize of the levels of the Model to be retrieved;
    ModelPaging​(long page, long pageSize, boolean checkNextPage)
    Supply the page and pageSize of the levels of the Model to be retrieved;
  • Method Summary

    Modifier and Type Method Description
    long getFirstRowNum()  
    long getLastRowNum()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelPaging

      public ModelPaging​(long page, long pageSize)
      Supply the page and pageSize of the levels of the Model to be retrieved;
      Parameters:
      page - page number, starts with 1.
      pageSize - desired number of rows per page
    • ModelPaging

      public ModelPaging​(long page, long pageSize, boolean checkNextPage)
      Supply the page and pageSize of the levels of the Model to be retrieved;
      Parameters:
      page - page number, starts with 1.
      pageSize - desired number of rows per page
      checkNextPage - set true to also include first row in next page if available. Useful for clients to identify if next page exists.
  • Method Details

    • getFirstRowNum

      public long getFirstRowNum()
      Returns:
      the firstRowNum
    • getLastRowNum

      public long getLastRowNum()
      Returns:
      the lastRowNum