|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.DefaultPagingControl
public class DefaultPagingControl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sage.orion.sdata.servlet.PagingControl |
---|
PagingControl.PagingMethod |
Constructor Summary | |
---|---|
DefaultPagingControl(java.lang.Integer count)
Constructor |
Method Summary | |
---|---|
java.lang.Integer |
getCount()
Gets the number of records to be returned. |
SDataConstants.KeyDirection |
getKeyDirection()
Gets the SDataConstants.KeyDirection for the paging request. |
PagingControl.PagingMethod |
getMethod()
Gets the paging method used. |
java.lang.Integer |
getStartIndex()
Gets the starting index of the first record to be returned. |
java.lang.String |
getStartKey()
Gets the startKey value for paging. |
boolean |
isLastPage()
returns whether this request is for the last page or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPagingControl(java.lang.Integer count)
count
- Method Detail |
---|
public java.lang.Integer getCount()
PagingControl
getCount
in interface PagingControl
public java.lang.String getStartKey()
PagingControl
The value returned, if any, is in the SData form, without any surrounding quotes etc. and without any transport-related encoding. However it is still encoded according to the application's method for encoding keys.
getStartKey
in interface PagingControl
public SDataConstants.KeyDirection getKeyDirection()
PagingControl
SDataConstants.KeyDirection
for the paging request.
getKeyDirection
in interface PagingControl
SDataConstants.KeyDirection
or null if no keyDirection
existspublic java.lang.Integer getStartIndex()
PagingControl
Note: This index is 1-based.
getStartIndex
in interface PagingControl
public boolean isLastPage()
PagingControl
isLastPage
in interface PagingControl
public PagingControl.PagingMethod getMethod()
PagingControl
getMethod
in interface PagingControl
PagingControl.PagingMethod
used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |