java.sql.ResultSet.getConcurrency()方法的使用及代码示例

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

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

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

相关文章

微信公众号

最新文章

更多

ResultSet类方法