|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.DefaultPagingControl
com.sage.orion.sdata.servlet.KeyedPagingControl
public class KeyedPagingControl
A structure to hold the elements of any keyed paging control request.
This holds the paging information as Objects rather than primitives, with null references used if they were not specified.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sage.orion.sdata.servlet.PagingControl |
---|
PagingControl.PagingMethod |
Constructor Summary | |
---|---|
KeyedPagingControl(java.lang.Integer count,
java.lang.String startKey,
SDataConstants.KeyDirection keyDirection)
Constructs an instance of the KeyedPagingControl class based upon
the given arguments. |
Method Summary | |
---|---|
SDataConstants.KeyDirection |
getKeyDirection()
Gets the SDataConstants.KeyDirection for the paging request. |
PagingControl.PagingMethod |
getMethod()
Gets the paging method used. |
java.lang.String |
getStartKey()
Gets the startKey value for paging. |
Methods inherited from class com.sage.orion.sdata.servlet.DefaultPagingControl |
---|
getCount, getStartIndex, isLastPage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyedPagingControl(java.lang.Integer count, java.lang.String startKey, SDataConstants.KeyDirection keyDirection)
KeyedPagingControl
class based upon
the given arguments.
The startKey and keyDirection parameters cannot both be missing, currently.
count
- either a null reference if the count is not specified, or an
Integer containing the number of records being requested.startKey
- either a null reference if no key is provided or else the key
value provided, in the SData form. The caller is responsible for
removing any quotation marks required and performing any
decoding associated with the transport mechanism. However the
application-specific decoding of a possibly multi-part key must
not have been done.keyDirection
- either a null reference if no direction is specified or else the
appropriate direction enumeration value if a direction was
specified or defaulted (e.g. on error)Method Detail |
---|
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
getStartKey
in class DefaultPagingControl
public SDataConstants.KeyDirection getKeyDirection()
PagingControl
SDataConstants.KeyDirection
for the paging request.
getKeyDirection
in interface PagingControl
getKeyDirection
in class DefaultPagingControl
SDataConstants.KeyDirection
or null if no keyDirection
existspublic PagingControl.PagingMethod getMethod()
PagingControl
getMethod
in interface PagingControl
getMethod
in class DefaultPagingControl
PagingControl.PagingMethod
used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |