本文整理了Java中org.sonar.db.dialect.Dialect.getScrollSingleRowFetchSize()
方法的一些代码示例,展示了Dialect.getScrollSingleRowFetchSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialect.getScrollSingleRowFetchSize()
方法的具体详情如下:
包路径:org.sonar.db.dialect.Dialect
类名称:Dialect
方法名:getScrollSingleRowFetchSize
[英]Fetch size to scroll one row at a time. It sounds strange because obviously value is 1 in most cases, but it's different on MySQL...
[中]获取大小以一次滚动一行。这听起来很奇怪,因为在大多数情况下,值显然是1,但在MySQL上是不同的。。。
代码示例来源:origin: SonarSource/sonarqube
/**
* Create a PreparedStatement for SELECT requests with scrolling of results row by row (only one row
* in memory at a time)
*/
public PreparedStatement newScrollingSingleRowSelectStatement(DbSession session, String sql) {
int fetchSize = database.getDialect().getScrollSingleRowFetchSize();
return newScrollingSelectStatement(session, sql, fetchSize);
}
代码示例来源:origin: org.sonarsource.sonarqube/sonar-db
/**
* Create a PreparedStatement for SELECT requests with scrolling of results row by row (only one row
* in memory at a time)
*/
public PreparedStatement newScrollingSingleRowSelectStatement(DbSession session, String sql) {
int fetchSize = database.getDialect().getScrollSingleRowFetchSize();
return newScrollingSelectStatement(session, sql, fetchSize);
}
内容来源于网络,如有侵权,请联系作者删除!