org.sonar.db.dialect.Dialect.getScrollSingleRowFetchSize()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(142)

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

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

相关文章