|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectca.uhn.cache.impl.CommonsLangObject
ca.uhn.cache.impl.QueryResult
TODO complete javadoc for TODO in future versions these might not be full when they are returned (although this isn't supported now). At that time we will have to account for exceptions that arise during iteration, and also for add() called while iterating. One solution would be to use a typed iterator that throws an exception on next(), if there has been an exception in the underlying data retrieval. Another is to use NoSuchElementException and/or getException() on this class.
| Constructor Summary | |
QueryResult()
Constructs an empty query result. |
|
QueryResult(java.util.Set theItems)
Constructs query result with the specified data items. |
|
| Method Summary | |
void |
add(IDataItem theItem)
Adds a new item to the data set. |
IQueryResult |
append(IQueryResult theQueryResult)
Appends the specified query result to the end of this query result. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
size()
Returns the number of elements in this query result. |
| Methods inherited from class ca.uhn.cache.impl.CommonsLangObject |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryResult()
public QueryResult(java.util.Set theItems)
theItems - The data items.
java.lang.ClassCastException - If any of the elements of theItems is not an IDataItem.| Method Detail |
public IQueryResult append(IQueryResult theQueryResult)
IQueryResult
If the argument query result is empty, the this query result is returned.
Otherwise a new IQueryResult is created, containing the
query result items of this query result and the ones of the argument one.
append in interface IQueryResulttheQueryResult - The query result to be appended.
ca.uhn.cache.IQueryResult#append(biz.mobiled.cache.IQueryResult)public java.util.Iterator iterator()
iterator in interface IQueryResultIDataItem s in this data
setIQueryResult.iterator()public void add(IDataItem theItem)
IQueryResult
add in interface IQueryResulttheItem - the IDataItem to addIQueryResult.add(ca.uhn.cache.IDataItem)public boolean isEmpty()
isEmpty in interface IQueryResultIQueryResult.isEmpty()public int size()
IQueryResult
size in interface IQueryResultIQueryResult.size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||