本文整理了Java中java.sql.ResultSet.rowInserted
方法的一些代码示例,展示了ResultSet.rowInserted
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.rowInserted
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:rowInserted
[英]Indicates whether the current row has had an insertion operation. This method depends on whether the JDBC driver and database can detect insertions.
[中]指示当前行是否有插入操作。这种方法取决于JDBC驱动程序和数据库是否能够检测插入。
代码示例来源:origin: querydsl/querydsl
@Override
public boolean rowInserted() throws SQLException {
return rs.rowInserted();
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public boolean rowInserted() throws SQLException {
return delegate.rowInserted();
}
代码示例来源:origin: alibaba/druid
@Override
public boolean rowInserted() throws SQLException {
try {
return rs.rowInserted();
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: alibaba/druid
@Override
public boolean resultSet_rowInserted(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_rowInserted(this, rs);
}
return rs.getResultSetRaw()
.rowInserted();
}
代码示例来源:origin: apache/hive
inserted = rs.rowInserted();
} catch (Throwable t) {
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public boolean rowInserted() throws SQLException {
return innerResultSet.rowInserted();
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public boolean rowInserted() throws SQLException {
return innerResultSet.rowInserted();
}
代码示例来源:origin: p6spy/p6spy
@Override
public boolean rowInserted() throws SQLException {
return delegate.rowInserted();
}
代码示例来源:origin: apache/phoenix
@Override
public boolean rowInserted() throws SQLException {
return rs.rowInserted();
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean rowInserted() throws SQLException {
try {
return rs.rowInserted();
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean resultSet_rowInserted(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_rowInserted(this, rs);
}
return rs.getResultSetRaw()
.rowInserted();
}
代码示例来源:origin: commons-dbutils/commons-dbutils
/**
* @return
* @throws SQLException
* @see java.sql.ResultSet#rowInserted()
*/
protected final boolean rowInserted() throws SQLException {
return rs.rowInserted();
}
代码示例来源:origin: co.paralleluniverse/comsat-jdbc
@Override
public Boolean call() throws SQLException {
return result.rowInserted();
}
});
代码示例来源:origin: apache/activemq-artemis
@Override
public boolean rowInserted() throws SQLException {
boolean x = resultSet.rowInserted();
logger.logf(level, "%s.rowInserted() = %s", resultSetID, x);
return x;
}
代码示例来源:origin: org.apache.commons/commons-dbcp2
@Override
public boolean rowInserted() throws SQLException {
try {
return resultSet.rowInserted();
} catch (final SQLException e) {
handleException(e);
return false;
}
}
代码示例来源:origin: org.orbisgis/core-jdbc
@Override
public boolean rowInserted() throws SQLException {
try(Resource res = resultSetHolder.getResource()) {
return res.getResultSet().rowInserted();
}
}
代码示例来源:origin: org.apache.tomcat/tomcat-dbcp
@Override
public boolean rowInserted() throws SQLException {
try {
return resultSet.rowInserted();
} catch (final SQLException e) {
handleException(e);
return false;
}
}
代码示例来源:origin: com.caucho/resin
public boolean rowInserted()
throws SQLException
{
Profiler profiler = _profilerPoint.start();
try {
return _resultSet.rowInserted();
}
finally {
profiler.finish();
}
}
代码示例来源:origin: io.agroal/agroal-pool
@Override
public boolean rowInserted() throws SQLException {
try {
return wrappedResultSet.rowInserted();
} catch ( SQLException se ) {
statement.getConnectionWrapper().getHandler().setFlushOnly( se );
throw se;
}
}
代码示例来源:origin: apache/jena
/**
* Tests error cases around trying to update the result set which is not
* supported
*
* @throws SQLException
*/
@Test
public void results_bad_updates_07() throws SQLException {
ResultSet rset = this.createResults(ds, "SELECT * WHERE { ?s ?p ?o }");
Assert.assertFalse(rset.rowInserted());
rset.close();
}
内容来源于网络,如有侵权,请联系作者删除!