com.waveset.object
Interface QueryResult

All Known Implementing Classes:
QueryResultAdapter

public interface QueryResult

An interface for an object that encapsulates the result of an ObjectSource query.


Method Summary
 boolean hasNext()
          Returns true if there is another row in the result.
 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 attribute)
          Returns all values of one attribute in the result as a list.
 

Method Detail

hasNext

public boolean hasNext()
                throws WavesetException
Returns true if there is another row in the result.

Throws:
WavesetException

next

public QueryResultRow next()
                    throws java.util.NoSuchElementException,
                           WavesetException
Returns the next row in the result.

Throws:
java.util.NoSuchElementException
WavesetException

remove

public void remove()
            throws WavesetException
Removes the current row from the result.

Throws:
WavesetException

resetIteration

public void resetIteration()
Seeks to the first row in the result.


toList

public java.util.List toList()
                      throws WavesetException
Returns all of the results as a list. If the result contains objects, a list of those objects is returned. If the result contained only selected attribute values, a list of Map objects containing those attributes is returned.

Throws:
WavesetException

toList

public java.util.List toList(java.lang.String attribute)
                      throws WavesetException
Returns all values of one attribute in the result as a list.

Throws:
WavesetException