Search in sources :

Example 1 with TableResultSetIterator

use of org.sql2o.data.TableResultSetIterator in project sql2o by aaberg.

the class Query method executeAndFetchTableLazy.

public LazyTable executeAndFetchTableLazy() {
    final LazyTable lt = new LazyTable();
    lt.setRows(new ResultSetIterableBase<Row>() {

        public Iterator<Row> iterator() {
            return new TableResultSetIterator(rs, isCaseSensitive(), getConnection().getSql2o().getQuirks(), lt);
        }
    });
    return lt;
}
Also used : LazyTable(org.sql2o.data.LazyTable) Iterator(java.util.Iterator) TableResultSetIterator(org.sql2o.data.TableResultSetIterator) Row(org.sql2o.data.Row) TableResultSetIterator(org.sql2o.data.TableResultSetIterator)

Aggregations

Iterator (java.util.Iterator)1 LazyTable (org.sql2o.data.LazyTable)1 Row (org.sql2o.data.Row)1 TableResultSetIterator (org.sql2o.data.TableResultSetIterator)1