jimm.datavision.source.sql
Class ResultSetRow

java.lang.Object
  extended by jimm.datavision.source.DataCursor
      extended by jimm.datavision.source.sql.ResultSetRow

public class ResultSetRow
extends DataCursor

A concrete subclass of DataCursor that wraps a JDBC result set.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  boolean noMoreData
           
protected  int numSelectables
           
protected  java.sql.ResultSet rset
           
protected  java.sql.PreparedStatement stmt
           
 
Fields inherited from class jimm.datavision.source.DataCursor
currRowData, currRowNumber, lastRowData, lastRowNumber, nextRowData, prevRowData
 
Constructor Summary
ResultSetRow(java.sql.Connection conn, SQLQuery query)
           
 
Method Summary
 void close()
           
 java.util.List readRowData()
           
 
Methods inherited from class jimm.datavision.source.DataCursor
getObject, getRow, isFirst, isLast, last, next, previous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stmt

protected java.sql.PreparedStatement stmt

rset

protected java.sql.ResultSet rset

numSelectables

protected int numSelectables

noMoreData

protected boolean noMoreData
Constructor Detail

ResultSetRow

ResultSetRow(java.sql.Connection conn,
             SQLQuery query)
       throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

readRowData

public java.util.List readRowData()
Specified by:
readRowData in class DataCursor

close

public void close()
Overrides:
close in class DataCursor