java.lang.Object | |
↳ | com.atlassian.jira.ofbiz.PagedDatabaseIterable<E, K> |
A abstract implementation of EnclosedIterable
that takes a list of ids and
then pages them by opening an OfBizListIterator
for each page.
This implementation supports preserving the order of the elements in the returned list but will load all the elements into memory in order to do so.
This implementation uses the DatabaseIterator but implements paging and sorting on top of it.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Use where the order of the result is not important.
| |||||||||||
Use where the order of the result is important.
| |||||||||||
Use where the order of the result is important.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new iterator from the subset of ids.
| |||||||||||
Used to turn generic values into Domain objects
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||
From interface com.atlassian.jira.util.collect.EnclosedIterable | |||||||||||
From interface com.atlassian.jira.util.collect.Sized |
Use where the order of the result is not important.
ids | a List |
---|
Use where the order of the result is important.
ids | a List |
---|---|
keyResolver | to get a domain object's key (ie. the element in the ids list). Null if sort order is unimportant |
Use where the order of the result is important.
ids | a List |
---|---|
keyResolver | to get a domain object's key (ie. the element in the ids list). Null if sort order is unimportant |
pageSize | the size of the pages to use |
Create a new iterator from the subset of ids.
ids | list of ids |
---|
Used to turn generic values into Domain objects