com.sap.caf.rt.bol.util

Class Paging

java.lang.Object
  extended by com.sap.caf.rt.bol.util.Paging

public class Paging
extends Object

This objects specifies paging properties for a particular query


Constructor Summary
Paging(int maxResults)
          Constructs a paging option that specifies only the maximum number of results to be returned
Paging(int firstResult, int maxResults)
          Constructs a paging option that specifies the starting index from the result and the the maximum number of results to be returned
 
Method Summary
 int getFirstResult()
          Returns the starting index from the result to be returned
 int getMaxResults()
          Returns the maximum number of results to be returned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paging

public Paging(int maxResults)
Constructs a paging option that specifies only the maximum number of results to be returned

Parameters:
maxResults - the maximum number of results to be returned

Paging

public Paging(int firstResult,
              int maxResults)
Constructs a paging option that specifies the starting index from the result and the the maximum number of results to be returned

Parameters:
firstResult - the starting index from the result
maxResults - the maximum number of results to be returned
Method Detail

getMaxResults

public int getMaxResults()
Returns the maximum number of results to be returned

Returns:
the maximum number of results to be returned

getFirstResult

public int getFirstResult()
Returns the starting index from the result to be returned

Returns:
the starting index from the result to be returned
Access Rights

This class can be accessed from:


SC DC
[sap.com] CAF [sap.com] caf/runtime/ear


Copyright 2010 SAP AG Complete Copyright Notice