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
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCursor
public SimpleCursor(java.sql.ResultSet rs)
hasNext
public boolean hasNext()
throws java.sql.SQLException
- Specified by:
hasNext in interface UIterator
- Throws:
java.sql.SQLException
next
public java.lang.Object next()
throws java.sql.SQLException
- Specified by:
next in interface UIterator
- Throws:
java.sql.SQLException
remove
public void remove()
- Specified by:
remove in interface UIterator
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 interface ClosableResource- Specified by:
close in interface UIterator
- Throws:
java.lang.Exception
finalize
public void finalize()
throws java.lang.Exception
- Overrides:
finalize in class java.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