|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.jdo.engine.OQLQueryImpl.OQLEnumeration
class OQLQueryImpl.OQLEnumeration
Constructor Summary | |
---|---|
OQLQueryImpl.OQLEnumeration(QueryResults results)
|
|
OQLQueryImpl.OQLEnumeration(QueryResults results,
java.util.Vector pathInfo,
JDOClassDescriptor clsDesc)
|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
OQLQueryImpl.OQLEnumeration(QueryResults results, java.util.Vector pathInfo, JDOClassDescriptor clsDesc)
OQLQueryImpl.OQLEnumeration(QueryResults results)
Method Detail |
---|
public boolean absolute(int row) throws PersistenceException
QueryResults
absolute
in interface QueryResults
row
- The row to move to
PersistenceException
- A persistence error occuredpublic int size() throws PersistenceException
QueryResults
size
in interface QueryResults
PersistenceException
- A persistence error occuredpublic boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public boolean hasMore() throws PersistenceException
QueryResults
hasMore
in interface QueryResults
PersistenceException
- An error with the persistence
enginepublic boolean hasMore(boolean skipError) throws PersistenceException
PersistenceException
public java.lang.Object nextElement() throws java.util.NoSuchElementException
nextElement
in interface java.util.Enumeration
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
engine
java.util.NoSuchElementException
- There are no more results in
the result setpublic void close()
QueryResults
close
in interface QueryResults
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |