Package com.atlassian.jira.entity
Class EntityPagedList<E>
java.lang.Object
com.atlassian.jira.entity.EntityPagedList<E>
- All Implemented Interfaces:
PagedList<E>
Wraps an ListIterator in a paged implementation. You can directly retrieve a specific page via get(n) or get an
Iterator
and iterate the results a page at a time.- Since:
- v6.1
-
Constructor Summary
ConstructorsConstructorDescriptionEntityPagedList
(int pageSize, EntityFactory<E> entityFactory, org.ofbiz.core.entity.EntityCondition entityCondition, List<String> orderBy) -
Method Summary
-
Constructor Details
-
EntityPagedList
public EntityPagedList(int pageSize, EntityFactory<E> entityFactory, org.ofbiz.core.entity.EntityCondition entityCondition, List<String> orderBy) - Parameters:
pageSize
- desired pageSize, must be greater than 0entityFactory
- EntityFactory used to return Listfrom a List entityCondition
- Condition to perform search in databaseorderBy
- List of fields to order by
-
-
Method Details
-
getPage
-
iterator
Iterate over the database results a page at a time -
getCompleteList
- Specified by:
getCompleteList
in interfacePagedList<E>
-
getSize
public int getSize() -
getPageSize
public int getPageSize()- Specified by:
getPageSize
in interfacePagedList<E>
-