org.sql2o.Query.newResultSetHandlerFactory()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.sql2o.Query.newResultSetHandlerFactory方法的一些代码示例,展示了Query.newResultSetHandlerFactory的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.newResultSetHandlerFactory方法的具体详情如下:
包路径:org.sql2o.Query
类名称:Query
方法名:newResultSetHandlerFactory

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));
}

相关文章