|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryResults
An iteration of the results of a query. This interface provides the ability to move forward only in the result set and pick the next result and close it.
Method Summary | |
---|---|
boolean |
absolute(int row)
moves the result of the query to the absolute position in the resultset |
void |
close()
Closes the result set and releases all resources held by it. |
boolean |
hasMore()
Returns true if there are any more results in the result set. |
java.lang.Object |
next()
Returns the next result in the result set. |
int |
size()
finds the size of the resulting resultset from the query. |
Methods inherited from interface java.util.Enumeration |
---|
hasMoreElements, nextElement |
Method Detail |
---|
boolean hasMore() throws PersistenceException
PersistenceException
- An error with the persistence
enginejava.lang.Object next() throws PersistenceException, java.util.NoSuchElementException
hasMore()
returns
false) this method will throw an exceptin. If an error
occured reading the last result, an exception will be
thrown and the result set cannot be used further.
PersistenceException
- An error with the persistence
engine
java.util.NoSuchElementException
- There are no more results in
the result setvoid close()
boolean absolute(int row) throws PersistenceException
row
- The row to move to
PersistenceException
- A persistence error occuredint size() throws PersistenceException
PersistenceException
- A persistence error occured
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |