本文整理了Java中java.sql.ResultSet.getConcurrency
方法的一些代码示例,展示了ResultSet.getConcurrency
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.getConcurrency
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:getConcurrency
[英]Gets the concurrency mode of this ResultSet.
[中]
代码示例来源:origin: querydsl/querydsl
@Override
public int getConcurrency() throws SQLException {
return rs.getConcurrency();
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public int getConcurrency() throws SQLException {
return delegate.getConcurrency();
}
代码示例来源:origin: apache/incubator-shardingsphere
@Override
public final int getConcurrency() throws SQLException {
return resultSets.get(0).getConcurrency();
}
代码示例来源:origin: alibaba/druid
@Override
public int getConcurrency() throws SQLException {
try {
return rs.getConcurrency();
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: requery/requery
@Override
public void remove() {
try {
if (results.isBeforeFirst()) {
throw new IllegalStateException();
}
if (results.getConcurrency() == ResultSet.CONCUR_UPDATABLE) {
results.deleteRow();
} else {
throw new UnsupportedOperationException();
}
} catch (SQLFeatureNotSupportedException e) {
throw new UnsupportedOperationException(e);
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: alibaba/druid
@Override
public int resultSet_getConcurrency(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getConcurrency(this, rs);
}
return rs.getResultSetRaw()
.getConcurrency();
}
代码示例来源:origin: com.h2database/h2
try {
if (!session.getContents().isDB2()) {
isUpdatable = rs.getConcurrency() == ResultSet.CONCUR_UPDATABLE
&& rs.getType() != ResultSet.TYPE_FORWARD_ONLY;
代码示例来源:origin: Meituan-Dianping/Zebra
/**
* @return the concurrency
*/
public int getConcurrency() throws SQLException {
return resultSet.getConcurrency();
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public int getConcurrency() throws SQLException {
return innerResultSet.getConcurrency();
}
代码示例来源:origin: p6spy/p6spy
@Override
public int getConcurrency() throws SQLException {
return delegate.getConcurrency();
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public int getConcurrency() throws SQLException {
return innerResultSet.getConcurrency();
}
代码示例来源:origin: apache/phoenix
@Override
public int getConcurrency() throws SQLException {
return rs.getConcurrency();
}
代码示例来源:origin: Meituan-Dianping/Zebra
public int getConcurrency() throws SQLException {
if (inMemory) {
return memoryData.get(rowNum - 1).getConcurrency();
} else {
return resultSets.get(resultSetIndex).getConcurrency();
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public int getConcurrency() throws SQLException {
try {
return rs.getConcurrency();
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public int resultSet_getConcurrency(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getConcurrency(this, rs);
}
return rs.getResultSetRaw()
.getConcurrency();
}
代码示例来源:origin: com.caucho/resin
/**
* Gets the concurrency.
*/
public int getConcurrency()
throws SQLException
{
return _rs.getConcurrency();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public int getConcurrency() throws SQLException {
int x = resultSet.getConcurrency();
logger.logf(level, "%s.getConcurrency() = %s", resultSetID, x);
return x;
}
代码示例来源:origin: org.apache.commons/commons-dbcp2
@Override
public int getConcurrency() throws SQLException {
try {
return resultSet.getConcurrency();
} catch (final SQLException e) {
handleException(e);
return 0;
}
}
代码示例来源:origin: io.agroal/agroal-pool
@Override
public int getConcurrency() throws SQLException {
try {
return wrappedResultSet.getConcurrency();
} catch ( SQLException se ) {
statement.getConnectionWrapper().getHandler().setFlushOnly( se );
throw se;
}
}
代码示例来源:origin: org.jboss.spec.javax.sql/jboss-javax-sql-api_7.0_spec
protected void setParams() throws SQLException {
if(rs == null) {
setType(ResultSet.TYPE_SCROLL_INSENSITIVE);
setConcurrency(ResultSet.CONCUR_UPDATABLE);
}
else {
setType(rs.getType());
setConcurrency(rs.getConcurrency());
}
}
内容来源于网络,如有侵权,请联系作者删除!