class OQLQueryImpl.OQLEnumeration extends java.lang.Object implements QueryResults, java.util.Enumeration
Enumeration implementation to traverse the result as returned by the
execution of the OQL query.| Constructor and Description |
|---|
OQLEnumeration(QueryResults results) |
OQLEnumeration(QueryResults results,
java.util.Vector pathInfo,
JDOClassDescriptor clsDesc)
Creates an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
hasMore(boolean skipError) |
boolean |
hasMoreElements() |
java.lang.Object |
next()
Returns the next result in the result set.
|
java.lang.Object |
nextElement() |
int |
size()
finds the size of the resulting resultset from the query.
|
OQLEnumeration(QueryResults results, java.util.Vector pathInfo, JDOClassDescriptor clsDesc)
results - pathInfo - clsDesc - OQLEnumeration(QueryResults results)
public boolean absolute(int row)
throws PersistenceException
QueryResultsabsolute in interface QueryResultsrow - The row to move toPersistenceException - A persistence error occuredQueryResults.absolute(int)public int size()
throws PersistenceException
QueryResultssize in interface QueryResultsPersistenceException - A persistence error occuredQueryResults.size()public boolean hasMoreElements()
hasMoreElements in interface java.util.EnumerationEnumeration.hasMoreElements()public boolean hasMore()
throws PersistenceException
QueryResultshasMore in interface QueryResultsPersistenceException - An error with the persistence
engineQueryResults.hasMore()public boolean hasMore(boolean skipError)
throws PersistenceException
PersistenceExceptionpublic java.lang.Object nextElement()
throws java.util.NoSuchElementException
nextElement in interface java.util.Enumerationjava.util.NoSuchElementExceptionEnumeration.nextElement()public java.lang.Object next()
throws PersistenceException,
java.util.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
enginejava.util.NoSuchElementException - There are no more results in
the result setQueryResults.next()public void close()
QueryResultsclose in interface QueryResultsQueryResults.close()Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com