本文整理了Java中org.sql2o.Query.newResultSetHandlerFactory
方法的一些代码示例,展示了Query.newResultSetHandlerFactory
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.newResultSetHandlerFactory
方法的具体详情如下:
包路径:org.sql2o.Query
类名称:Query
方法名:newResultSetHandlerFactory
暂无
代码示例来源:origin: aaberg/sql2o
/**
* 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);
}
代码示例来源:origin: aaberg/sql2o
/**
* 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);
}
代码示例来源:origin: aaberg/sql2o
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler){
return executeAndFetch(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: aaberg/sql2o
public <T> List<T> executeAndFetch(Class<T> returnType){
return executeAndFetch(newResultSetHandlerFactory(returnType));
}
代码示例来源:origin: aaberg/sql2o
public <T> T executeAndFetchFirst(Class<T> returnType){
return executeAndFetchFirst(newResultSetHandlerFactory(returnType));
}
代码示例来源:origin: aaberg/sql2o
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler){
return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: org.sql2o/sql2o
/**
* 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);
}
代码示例来源:origin: biezhi/anima
/**
* 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);
}
代码示例来源:origin: org.sql2o/sql2o
/**
* 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);
}
代码示例来源:origin: biezhi/anima
/**
* 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);
}
代码示例来源:origin: biezhi/anima
public <T> T executeAndFetchFirst(Class<T> returnType) {
return executeAndFetchFirst(newResultSetHandlerFactory(returnType));
}
代码示例来源:origin: biezhi/anima
public <T> List<T> executeAndFetch(Class<T> returnType) {
return executeAndFetch(newResultSetHandlerFactory(returnType));
}
代码示例来源:origin: biezhi/anima
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler) {
return executeAndFetch(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: org.sql2o/sql2o
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler){
return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: biezhi/anima
public <T> T executeAndFetchFirst(ResultSetHandler<T> resultSetHandler) {
return executeAndFetchFirst(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: org.sql2o/sql2o
public <T> List<T> executeAndFetch(Class<T> returnType){
return executeAndFetch(newResultSetHandlerFactory(returnType));
}
代码示例来源:origin: org.sql2o/sql2o
public <T> List<T> executeAndFetch(ResultSetHandler<T> resultSetHandler){
return executeAndFetch(newResultSetHandlerFactory(resultSetHandler));
}
代码示例来源:origin: org.sql2o/sql2o
public <T> T executeAndFetchFirst(Class<T> returnType){
return executeAndFetchFirst(newResultSetHandlerFactory(returnType));
}
内容来源于网络,如有侵权,请联系作者删除!