|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.QueryResultAdapter
Wraps the older RepositoryResult object and provides an implementation of the newer simpler QueryResult interface. The wrapper is necessary because the return value of the next() method is different.
Can also wrap a simple List of objects, such as those returned by ObjectCache.
Field Summary | |
static java.lang.String |
code_id
|
Constructor Summary | |
QueryResultAdapter()
Create an empty result object. |
|
QueryResultAdapter(java.util.List objects)
|
|
QueryResultAdapter(RepositoryResult rr)
|
Method Summary | |
RepositoryResult |
getRepositoryResult()
|
int |
getRowCount()
Return the number of rows in the result (or -1 if unknown). |
boolean |
hasNext()
Returns true if there is another row in the result. |
void |
merge(QueryResultAdapter s,
int limit,
java.util.Set dupsMap)
|
void |
merge(QueryResultAdapter s,
int limit,
java.util.Set dupsMap,
RepositoryResult.RowMerger rowMerger)
|
QueryResultRow |
next()
Returns the next row in the result. |
void |
remove()
Removes the current row from the result. |
void |
resetIteration()
Seeks to the first row in the result. |
java.util.List |
toList()
Returns all of the results as a list. |
java.util.List |
toList(java.lang.String attname)
Returns all values of one attribute in the result as a list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public QueryResultAdapter()
public QueryResultAdapter(RepositoryResult rr)
public QueryResultAdapter(java.util.List objects)
Method Detail |
public boolean hasNext() throws WavesetException
QueryResult
hasNext
in interface QueryResult
WavesetException
public QueryResultRow next() throws java.util.NoSuchElementException, WavesetException
QueryResult
next
in interface QueryResult
java.util.NoSuchElementException
WavesetException
public void remove() throws WavesetException
QueryResult
remove
in interface QueryResult
WavesetException
public void resetIteration()
QueryResult
resetIteration
in interface QueryResult
public RepositoryResult getRepositoryResult()
public java.util.List toList() throws WavesetException
QueryResult
toList
in interface QueryResult
WavesetException
public java.util.List toList(java.lang.String attname) throws WavesetException
QueryResult
toList
in interface QueryResult
WavesetException
public int getRowCount()
public void merge(QueryResultAdapter s, int limit, java.util.Set dupsMap) throws WavesetException
WavesetException
public void merge(QueryResultAdapter s, int limit, java.util.Set dupsMap, RepositoryResult.RowMerger rowMerger) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |