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 void
close()
forces the release of any resources that might be associated with this object.void
finalize()
boolean
hasNext()
java.lang.Object
next()
protected abstract java.lang.Object
objectFromResultSet(java.sql.ResultSet rs)
void
remove()
-
-
-
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.Exception
Description copied from interface:ClosableResource
forces the release of any resources that might be associated with this object.- Specified by:
close
in interfaceClosableResource
- Specified by:
close
in interfaceUIterator
- Throws:
java.lang.Exception
-
finalize
public void finalize() throws java.lang.Exception
- Overrides:
finalize
in 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
-
-