org.melati.util
Class DumbPagedEnumeration<T>
java.lang.Object
org.melati.util.PagedEnumerationBase<T>
org.melati.util.DumbPagedEnumeration<T>
- All Implemented Interfaces:
- Enumeration<T>, PagedEnumeration<T>
public class DumbPagedEnumeration<T>
- extends PagedEnumerationBase<T>
A PagedEnumeration
which doesn't know how big it is.
Ideally SQL would allow you to start at an offset.
Methods inherited from class org.melati.util.PagedEnumerationBase |
getCurrentPosition, getNextPosition, getPageEnd, getPages, getPageSize, getPageStart, getPrevPageStart, getTotalCount, hasMoreElements, nextElement, nextElementOnThisPage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumbPagedEnumeration
public DumbPagedEnumeration(Enumeration<T> base,
int pageStart,
int pageSize,
int countHorizon)
- Constructor.
- Parameters:
base
- underlying EnumerationpageStart
- index of start of pagepageSize
- how many Elements to include upon a pagecountHorizon
- where to count to, may be less than total size of underlying Enumeration
getNextPageStart
public Integer getNextPageStart()
-
- Returns:
- the start record of the next page, indexed from 1.
- See Also:
org.melati.poem.util.PagedEnumerationBase#getNextPageStart()
getTotalCountIsMinimum
public boolean getTotalCountIsMinimum()
- Returns:
- whether there are more elements to come beyond horizon
getPageStartList
public Vector<Page> getPageStartList()
Copyright © 2000-2010 PanEris. All Rights Reserved.