org.exolab.castor.jdo.engine
Class SimpleQueryExecutor.SimpleQueryResults
java.lang.Object
org.exolab.castor.jdo.engine.SimpleQueryExecutor.SimpleQueryResults
- SimpleQueryExecutor
- Enumeration, QueryResults
public class SimpleQueryExecutor.SimpleQueryResults
extends java.lang.Object
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.
|
SimpleQueryResults
public SimpleQueryResults()
close
public void close()
Closes the result set and releases all resources held by it.
- close in interface QueryResults
finalize
protected void finalize()
throws Throwable
hasMore
public boolean hasMore()
throws PersistenceException
Returns true if there are any more results in the result set.
If an error occured reading the last result, an exception will
be thrown and the result set cannot be used further.
- hasMore in interface QueryResults
- True if there are any more results in the result set
hasMoreElements
public boolean hasMoreElements()
next
public Object next()
throws PersistenceException,
NoSuchElementException
Returns the next result in the result set. If there are no
more results (a previous cal to
QueryResults.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 QueryResults
- The next result in the result set
nextElement
public Object nextElement()
throws NoSuchElementException
size
public int size()
throws PersistenceException
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.
- size in interface QueryResults
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com