com.waveset.object
Interface QueryResult


public interface QueryResult

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


Field Summary
static java.lang.String code_id
           
 
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.
 

Field Detail

code_id

static final java.lang.String code_id
See Also:
Constant Field Values
Method Detail

hasNext

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

Throws:
com.waveset.util.WavesetException

next

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

Throws:
java.util.NoSuchElementException
com.waveset.util.WavesetException

remove

void remove()
            throws com.waveset.util.WavesetException
Removes the current row from the result.

Throws:
com.waveset.util.WavesetException

resetIteration

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


toList

java.util.List toList()
                      throws com.waveset.util.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:
com.waveset.util.WavesetException

toList

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

Throws:
com.waveset.util.WavesetException