org.exolab.castor.jdo.engine

Class SimpleQueryExecutor.SimpleQueryResults

Enclosing Class:
SimpleQueryExecutor
Implemented Interfaces:
Enumeration, QueryResults

public class SimpleQueryExecutor.SimpleQueryResults
extends java.lang.Object
implements QueryResults

Constructor Summary

SimpleQueryResults()

Method Summary

boolean
absolute(int row)
use the jdbc 2.0 method to move to an absolute position in the resultset.
void
close()
protected void
finalize()
boolean
hasMore()
boolean
hasMoreElements()
Object
next()
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.

Constructor Details

SimpleQueryResults

public SimpleQueryResults()

Method Details

absolute

public boolean absolute(int row)
            throws PersistenceException
use the jdbc 2.0 method to move to an absolute position in the resultset.
Specified by:
absolute in interface QueryResults

close

public void close()
Specified by:
close in interface QueryResults

finalize

protected void finalize()
            throws Throwable

hasMore

public boolean hasMore()
            throws PersistenceException
Specified by:
hasMore in interface QueryResults

hasMoreElements

public boolean hasMoreElements()

next

public Object next()
            throws PersistenceException,
                   NoSuchElementException
Specified by:
next in interface QueryResults

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.
Specified by:
size in interface QueryResults

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com