com.sage.orion.sdata.servlet
Class PagingInfo

java.lang.Object
  extended by com.sage.orion.sdata.servlet.PagingInfo
Direct Known Subclasses:
IndexedPagingInfo, KeyedPagingInfo, SDataExternalPagingInfo

public abstract class PagingInfo
extends java.lang.Object

An interface responsible for helping out in creating paging links.

This sits between the ResourceKindImpl and the ResponseGenerator.

The ResourceKindImpl knows the data that it is placing into the PagingInfo. It knows if it understands indexed paging or only query-based paging. It knows if it can get the number of records for a Last link or not. Etc. However it does not know what a URL looks like; that is why we have a marshaling layer.

The ResponseGenerator is part of the marshaling layer and so understands URLS etc. but does not know the implementation.

So the pattern I am going to use for now is as follows:


Field Summary
protected  java.lang.String resourceSetURL
          The basic URL for the resource set
 
Constructor Summary
PagingInfo()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceSetURL

protected java.lang.String resourceSetURL
The basic URL for the resource set

Constructor Detail

PagingInfo

public PagingInfo()


Copyright © 2011 Sage Software, Inc. All rights reserved.