/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link org.sql2o.ResultSetIterable#close()} when you are done iterating. * * @param resultSetHandler ResultSetHandler * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final ResultSetHandler<T> resultSetHandler) { final ResultSetHandlerFactory<T> factory = newResultSetHandlerFactory(resultSetHandler); return executeAndFetchLazy(factory); }
/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link org.sql2o.ResultSetIterable#close()} when you are done iterating. * * @param returnType type of each row * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final Class<T> returnType) { final ResultSetHandlerFactory<T> resultSetHandlerFactory = newResultSetHandlerFactory(returnType); return executeAndFetchLazy(resultSetHandlerFactory); }
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler){ return executeAndFetch(newResultSetHandlerFactory(resultSetHandler)); }
public <T> List<T> executeAndFetch(Class<T> returnType){ return executeAndFetch(newResultSetHandlerFactory(returnType)); }
public <T> T executeAndFetchFirst(Class<T> returnType){ return executeAndFetchFirst(newResultSetHandlerFactory(returnType)); }
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler){ return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler)); }
/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link org.sql2o.ResultSetIterable#close()} when you are done iterating. * * @param resultSetHandler ResultSetHandler * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final ResultSetHandler<T> resultSetHandler) { final ResultSetHandlerFactory<T> factory = newResultSetHandlerFactory(resultSetHandler); return executeAndFetchLazy(factory); }
/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link ResultSetIterable#close()} when you are done iterating. * * @param resultSetHandler ResultSetHandler * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final ResultSetHandler<T> resultSetHandler) { final ResultSetHandlerFactory<T> factory = newResultSetHandlerFactory(resultSetHandler); return executeAndFetchLazy(factory); }
/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link org.sql2o.ResultSetIterable#close()} when you are done iterating. * * @param returnType type of each row * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final Class<T> returnType) { final ResultSetHandlerFactory<T> resultSetHandlerFactory = newResultSetHandlerFactory(returnType); return executeAndFetchLazy(resultSetHandlerFactory); }
/** * Read a collection lazily. Generally speaking, this should only be used if you are reading MANY * results and keeping them all in a Collection would cause memory issues. You MUST call * {@link ResultSetIterable#close()} when you are done iterating. * * @param returnType type of each row * @return iterable results */ public <T> ResultSetIterable<T> executeAndFetchLazy(final Class<T> returnType) { final ResultSetHandlerFactory<T> resultSetHandlerFactory = newResultSetHandlerFactory(returnType); return executeAndFetchLazy(resultSetHandlerFactory); }
public <T> T executeAndFetchFirst(Class<T> returnType) { return executeAndFetchFirst(newResultSetHandlerFactory(returnType)); }
public <T> List<T> executeAndFetch(Class<T> returnType) { return executeAndFetch(newResultSetHandlerFactory(returnType)); }
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler) { return executeAndFetch(newResultSetHandlerFactory(resultSetHandler)); }
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler){ return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler)); }
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler) { return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler)); }
public <T> List<T> executeAndFetch(Class<T> returnType){ return executeAndFetch(newResultSetHandlerFactory(returnType)); }
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler){ return executeAndFetch(newResultSetHandlerFactory(resultSetHandler)); }
public <T> T executeAndFetchFirst(Class<T> returnType){ return executeAndFetchFirst(newResultSetHandlerFactory(returnType)); }