com.evanmclean.evlib.velocity
Class RowSetMethodizer

java.lang.Object
  extended by com.evanmclean.evlib.velocity.AbstractResultSetMethodizer
      extended by 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.)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.evanmclean.evlib.velocity.AbstractResultSetMethodizer
AbstractResultSetMethodizer.Row
 
Constructor Summary
RowSetMethodizer(ResultSet rs)
           
 
Method Summary
 boolean hasNext()
           
 AbstractResultSetMethodizer.Row next()
           
 
Methods inherited from class com.evanmclean.evlib.velocity.AbstractResultSetMethodizer
getPropertyNames, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowSetMethodizer

public RowSetMethodizer(ResultSet rs)
                 throws SQLException
Throws:
SQLException
Method Detail

hasNext

public boolean hasNext()

next

public AbstractResultSetMethodizer.Row next()