java.util.Enumeration<java.lang.Object>
, QueryResults
public class SimpleQueryExecutor.SimpleQueryResults extends java.lang.Object implements QueryResults
Constructor | Description |
---|---|
SimpleQueryResults() |
Modifier and Type | Method | Description |
---|---|---|
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() |
|
java.lang.Object |
next() |
Returns the next result in the result set.
|
java.lang.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.
|
public boolean absolute(int row) throws PersistenceException
absolute
in interface QueryResults
row
- The row to move toPersistenceException
- A persistence error occuredpublic int size() throws PersistenceException
size
in interface QueryResults
PersistenceException
- A persistence error occuredpublic boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration<java.lang.Object>
public boolean hasMore() throws PersistenceException
QueryResults
hasMore
in interface QueryResults
PersistenceException
- An error with the persistence enginepublic java.lang.Object nextElement() throws java.util.NoSuchElementException
nextElement
in interface java.util.Enumeration<java.lang.Object>
java.util.NoSuchElementException
public java.lang.Object next() throws PersistenceException, java.util.NoSuchElementException
QueryResults
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
PersistenceException
- An error with the persistence
enginejava.util.NoSuchElementException
- There are no more results in
the result setpublic void close()
QueryResults
close
in interface QueryResults
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com