本文整理了Java中org.jdbi.v3.core.statement.Query.addCustomizer
方法的一些代码示例,展示了Query.addCustomizer
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.addCustomizer
方法的具体详情如下:
包路径:org.jdbi.v3.core.statement.Query
类名称:Query
方法名:addCustomizer
暂无
代码示例来源:origin: jdbi/jdbi
/**
* Specify the maximum number of rows the query is to return. This uses the underlying JDBC
* {@link Statement#setMaxRows(int)}}.
*
* @param maxRows maximum number of rows to return
*
* @return modified query
*/
public Query setMaxRows(final int maxRows) {
return addCustomizer(StatementCustomizers.maxRows(maxRows));
}
代码示例来源:origin: jdbi/jdbi
/**
* Specify the maximum field size in the result set. This uses the underlying JDBC
* {@link Statement#setMaxFieldSize(int)}
*
* @param maxFields maximum field size
*
* @return modified query
*/
public Query setMaxFieldSize(final int maxFields) {
return addCustomizer(StatementCustomizers.maxFieldSize(maxFields));
}
代码示例来源:origin: jdbi/jdbi
/**
* Specify the fetch size for the query. This should cause the results to be
* fetched from the underlying RDBMS in groups of rows equal to the number passed.
* This is useful for doing chunked streaming of results when exhausting memory
* could be a problem.
*
* @param fetchSize the number of rows to fetch in a bunch
*
* @return the modified query
*/
public Query setFetchSize(final int fetchSize) {
return addCustomizer(StatementCustomizers.fetchSize(fetchSize));
}
代码示例来源:origin: org.jdbi/jdbi3
/**
* Specify the maximum number of rows the query is to return. This uses the underlying JDBC
* {@link Statement#setMaxRows(int)}}.
*
* @param maxRows maximum number of rows to return
*
* @return modified query
*/
public Query setMaxRows(final int maxRows)
{
return addCustomizer(StatementCustomizers.maxRows(maxRows));
}
代码示例来源:origin: org.jdbi/jdbi3
/**
* Specify the maximum field size in the result set. This uses the underlying JDBC
* {@link Statement#setMaxFieldSize(int)}
*
* @param maxFields maximum field size
*
* @return modified query
*/
public Query setMaxFieldSize(final int maxFields)
{
return addCustomizer(StatementCustomizers.maxFieldSize(maxFields));
}
代码示例来源:origin: org.jdbi/jdbi3
/**
* Specify the fetch size for the query. This should cause the results to be
* fetched from the underlying RDBMS in groups of rows equal to the number passed.
* This is useful for doing chunked streaming of results when exhausting memory
* could be a problem.
*
* @param fetchSize the number of rows to fetch in a bunch
*
* @return the modified query
*/
public Query setFetchSize(final int fetchSize)
{
return addCustomizer(StatementCustomizers.fetchSize(fetchSize));
}
内容来源于网络,如有侵权,请联系作者删除!