gov.nih.nci.caarray.external.v1_0.query
Class LimitOffset

java.lang.Object
  extended by gov.nih.nci.caarray.external.v1_0.query.LimitOffset
All Implemented Interfaces:
java.io.Serializable

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

Bean for specifying paging and sorting constraints for a query.

Author:
dkokotov
See Also:
Serialized Form

Constructor Summary
LimitOffset()
          Empty constructor, for serialization.
LimitOffset(int limit, int offset)
          Constructor.
 
Method Summary
 int getLimit()
           
 int getOffset()
           
 void setLimit(int limit)
           
 void setOffset(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitOffset

public LimitOffset(int limit,
                   int offset)
Constructor.

Parameters:
limit - the maximum number of results to return. A negative number indicates no limit.
offset - the index (0-based) of the first result to return.

LimitOffset

public LimitOffset()
Empty constructor, for serialization.

Method Detail

getLimit

public int getLimit()
Returns:
the maximum number of results to return. A negative number indicates no limit.

setLimit

public void setLimit(int limit)
Parameters:
limit - the maximum number of results to return. A negative number indicates no limit.

getOffset

public int getOffset()
Returns:
the index (0-based) of the first result to return.

setOffset

public void setOffset(int offset)
Parameters:
offset - the index (0-based) of the first result to return.