com.mchange.v1.db.sql
Class SimpleCursor

java.lang.Object
  extended by com.mchange.v1.db.sql.SimpleCursor
All Implemented Interfaces:
ClosableResource, UIterator
Direct Known Subclasses:
CBPCursor

public abstract class SimpleCursor
extends Object
implements UIterator


Constructor Summary
SimpleCursor(ResultSet rs)
           
 
Method Summary
 void close()
          forces the release of any resources that might be associated with this object.
 void finalize()
           
 boolean hasNext()
           
 Object next()
           
protected abstract  Object objectFromResultSet(ResultSet rs)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCursor

public SimpleCursor(ResultSet rs)
Method Detail

hasNext

public boolean hasNext()
                throws SQLException
Specified by:
hasNext in interface UIterator
Throws:
SQLException

next

public Object next()
            throws SQLException
Specified by:
next in interface UIterator
Throws:
SQLException

remove

public void remove()
Specified by:
remove in interface UIterator

close

public void close()
           throws Exception
Description copied from interface: ClosableResource
forces the release of any resources that might be associated with this object.

Specified by:
close in interface ClosableResource
Specified by:
close in interface UIterator
Throws:
Exception

finalize

public void finalize()
              throws Exception
Overrides:
finalize in class Object
Throws:
Exception

objectFromResultSet

protected abstract Object objectFromResultSet(ResultSet rs)
                                       throws SQLException
Throws:
SQLException