Package 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 java.lang.Object implements UIterator
-
-
Constructor Summary
Constructors Constructor Description SimpleCursor(java.sql.ResultSet rs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()forces the release of any resources that might be associated with this object.voidfinalize()booleanhasNext()java.lang.Objectnext()protected abstract java.lang.ObjectobjectFromResultSet(java.sql.ResultSet rs)voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext() throws java.sql.SQLException
-
next
public java.lang.Object next() throws java.sql.SQLException
-
close
public void close() throws java.lang.ExceptionDescription copied from interface:ClosableResourceforces the release of any resources that might be associated with this object.- Specified by:
closein interfaceClosableResource- Specified by:
closein interfaceUIterator- Throws:
java.lang.Exception
-
finalize
public void finalize() throws java.lang.Exception- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Exception
-
objectFromResultSet
protected abstract java.lang.Object objectFromResultSet(java.sql.ResultSet rs) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-