com.mchange.v1.db.sql
Class SimpleCursor
java.lang.Object
com.mchange.v1.db.sql.SimpleCursor
- All Implemented Interfaces:
- ClosableResource, UIterator
- Direct Known Subclasses:
- CBPCursor
public abstract class SimpleCursor
- extends Object
- implements UIterator
SimpleCursor
public SimpleCursor(ResultSet rs)
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