com.evanmclean.evlib.velocity
Class RowSetMethodizer
java.lang.Object
com.evanmclean.evlib.velocity.AbstractResultSetMethodizer
com.evanmclean.evlib.velocity.RowSetMethodizer
- All Implemented Interfaces:
- Iterator<AbstractResultSetMethodizer.Row>
public class RowSetMethodizer
- extends AbstractResultSetMethodizer
A wrapper around the JDBC ResultSet that allows Velicoty templates to access
the columns in a template friendly way.
This class reads and stores the entire result set from within the
constructor, so you can close the result set after instantiation. You do not
need to keep the result set (or the statement it came from) open while
templates are merged.
See ResultSetMethodizer
for more details.
- Author:
- Evan McLean McLean Computer Services (see the
overview for copyright and licensing.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowSetMethodizer
public RowSetMethodizer(ResultSet rs)
throws SQLException
- Throws:
SQLException
hasNext
public boolean hasNext()
next
public AbstractResultSetMethodizer.Row next()