|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.engine.SimpleQueryExecutor.SimpleQueryResults
public class SimpleQueryExecutor.SimpleQueryResults
| Constructor Summary | |
|---|---|
SimpleQueryExecutor.SimpleQueryResults()
|
|
| Method Summary | |
|---|---|
boolean |
absolute(int row)
use the jdbc 2.0 method to move to an absolute position in the resultset. |
void |
close()
Closes the result set and releases all resources held by it. |
protected void |
finalize()
|
boolean |
hasMore()
Returns true if there are any more results in the result set. |
boolean |
hasMoreElements()
|
Object |
next()
Returns the next result in the result set. |
Object |
nextElement()
|
int |
size()
Uses the underlying db's cursors to most to the last row in the result set, get the row number via getRow(), then move back to where ever the user was positioned in the resultset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleQueryExecutor.SimpleQueryResults()
| Method Detail |
|---|
public boolean absolute(int row)
throws PersistenceException
absolute in interface QueryResultsrow - The row to move to
PersistenceException - A persistence error occured
public int size()
throws PersistenceException
size in interface QueryResultsPersistenceException - A persistence error occuredpublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<Object>
public boolean hasMore()
throws PersistenceException
QueryResults
hasMore in interface QueryResultsPersistenceException - An error with the persistence engine
public Object nextElement()
throws NoSuchElementException
nextElement in interface Enumeration<Object>NoSuchElementException
public Object next()
throws PersistenceException,
NoSuchElementException
QueryResultsQueryResults.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.
next in interface QueryResultsPersistenceException - An error with the persistence
engine
NoSuchElementException - There are no more results in
the result setpublic void close()
QueryResults
close in interface QueryResults
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||