public class DatabaseIssuesIterable extends Object implements IssuesIterable
EnclosedIterable
is used to iterate over all issues in the database.
This implementation is superseded by the more flexible DatabaseIterable
or
PagedDatabaseIterable
.
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T>
Constructor and Description |
---|
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory) |
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory,
org.ofbiz.core.entity.EntityCondition condition) |
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory,
org.ofbiz.core.entity.EntityCondition condition,
org.ofbiz.core.entity.EntityFindOptions findOptions) |
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory,
org.ofbiz.core.entity.EntityCondition condition,
List<String> orderBy,
org.ofbiz.core.entity.EntityFindOptions findOptions) |
Modifier and Type | Method and Description |
---|---|
void |
foreach(Consumer<Issue> sink)
Apply the sink to all elements in the Collection.
|
boolean |
isEmpty() |
int |
size()
You cannot rely on this size after you have started iterating through the issues
|
protected void |
spy(Issue next)
Allows for IssuesIterable implementations that spy on each iterated issue.
|
String |
toString()
Return a user friendly message that identifies which issues this iterable holds.
|
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory)
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory, @Nullable org.ofbiz.core.entity.EntityCondition condition)
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory, @Nullable org.ofbiz.core.entity.EntityCondition condition, @Nullable org.ofbiz.core.entity.EntityFindOptions findOptions)
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory, @Nullable org.ofbiz.core.entity.EntityCondition condition, @Nullable List<String> orderBy, @Nullable org.ofbiz.core.entity.EntityFindOptions findOptions)
public void foreach(Consumer<Issue> sink)
EnclosedIterable
foreach
in interface EnclosedIterable<Issue>
public int size()
size
in interface EnclosedIterable<Issue>
size
in interface Sized
EnclosedIterable.foreach(Consumer)
. Be careful depending on this size
being exact, as in many cases its best efforts value or may be unstable due to concurrent changes.public boolean isEmpty()
isEmpty
in interface EnclosedIterable<Issue>
isEmpty
in interface Sized
public String toString()
IssuesIterable
For example, if there is a problem locking the Lucene index this method is used to log which issues could not be reindexed.
Hence, it is important to provide a useful implementation for this method.
toString
in interface IssuesIterable
toString
in class Object
protected void spy(Issue next)
next
- an Issue that is about to be iterated throughCopyright © 2002-2018 Atlassian. All Rights Reserved.