org.jumpmind.db.sql
Class JdbcSqlReadCursor<T>

java.lang.Object
  extended by org.jumpmind.db.sql.JdbcSqlReadCursor<T>
All Implemented Interfaces:
ISqlReadCursor<T>

public class JdbcSqlReadCursor<T>
extends Object
implements ISqlReadCursor<T>


Field Summary
protected  boolean autoCommitFlag
           
protected  Connection c
           
protected  ISqlRowMapper<T> mapper
           
protected  int originalIsolationLevel
           
protected  int rowNumber
           
protected  ResultSet rs
           
protected  JdbcSqlTemplate sqlTemplate
           
protected  Statement st
           
 
Constructor Summary
JdbcSqlReadCursor()
           
JdbcSqlReadCursor(JdbcSqlTemplate sqlTemplate, ISqlRowMapper<T> mapper, String sql, Object[] values, int[] types)
           
 
Method Summary
 void close()
           
protected static Row getMapForRow(ResultSet rs)
           
 T next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

c

protected Connection c

rs

protected ResultSet rs

st

protected Statement st

autoCommitFlag

protected boolean autoCommitFlag

mapper

protected ISqlRowMapper<T> mapper

sqlTemplate

protected JdbcSqlTemplate sqlTemplate

rowNumber

protected int rowNumber

originalIsolationLevel

protected int originalIsolationLevel
Constructor Detail

JdbcSqlReadCursor

public JdbcSqlReadCursor()

JdbcSqlReadCursor

public JdbcSqlReadCursor(JdbcSqlTemplate sqlTemplate,
                         ISqlRowMapper<T> mapper,
                         String sql,
                         Object[] values,
                         int[] types)
Method Detail

next

public T next()
Specified by:
next in interface ISqlReadCursor<T>

getMapForRow

protected static Row getMapForRow(ResultSet rs)
                           throws SQLException
Throws:
SQLException

close

public void close()
Specified by:
close in interface ISqlReadCursor<T>


Copyright © 2007-2013 JumpMind, Inc.. All Rights Reserved.