com.semarchy.mdm.runtime.commons
Class PageCriteria

java.lang.Object
  extended by com.semarchy.mdm.runtime.commons.PageCriteria
All Implemented Interfaces:
Serializable

public class PageCriteria
extends Object
implements Serializable

Defines the scope of a data page.

This class is used to limit a query to a subset of the rows. Indexes starts at 0. This class is immutable

Author:
sarod
See Also:
Serialized Form

Constructor Summary
PageCriteria(long pStartIndex, int pPageSize)
           
 
Method Summary
protected  PageCriteria clone()
           
 boolean equals(Object obj)
           
 long getEndIndex()
          Index of the last element included in the page if the page is full.
 int getPageSize()
          Number of element in the page.
 long getStartIndex()
          Index of the first element included in the page.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageCriteria

public PageCriteria(long pStartIndex,
                    int pPageSize)
Method Detail

getStartIndex

public long getStartIndex()
Index of the first element included in the page.

Returns:

getPageSize

public int getPageSize()
Number of element in the page.

Returns:

getEndIndex

public long getEndIndex()
Index of the last element included in the page if the page is full.

Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

protected PageCriteria clone()
Overrides:
clone in class Object


Copyright © 2015. All Rights Reserved.