|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.util.DatabaseIssuesIterable
public class DatabaseIssuesIterable
This EnclosedIterable
is used to iterate over all issues in the database.
This implementation is superseded by the more flexible DatabaseIterable
or
PagedDatabaseIterable
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.collect.EnclosedIterable |
---|
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T> |
Constructor Summary | |
---|---|
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory)
|
|
DatabaseIssuesIterable(OfBizDelegator delegator,
IssueFactory issueFactory,
org.ofbiz.core.entity.EntityCondition condition)
|
Method Summary | |
---|---|
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 |
String |
toString()
Return a user friendly message that identifies which issues this iterable holds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory)
public DatabaseIssuesIterable(OfBizDelegator delegator, IssueFactory issueFactory, org.ofbiz.core.entity.EntityCondition condition)
Method Detail |
---|
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 stable 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |