本文整理了Java中java.sql.ResultSet.previous
方法的一些代码示例,展示了ResultSet.previous
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.previous
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:previous
[英]Relocates the cursor position to the preceding row in this ResultSet.
[中]将光标位置重新定位到此结果集中的前一行。
代码示例来源:origin: querydsl/querydsl
@Override
public boolean previous() throws SQLException {
return rs.previous();
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public boolean previous() throws SQLException {
return delegate.previous();
}
代码示例来源:origin: spring-projects/spring-framework
/**
* @see java.sql.ResultSet#previous()
*/
@Override
public boolean previous() throws InvalidResultSetAccessException {
try {
return this.resultSet.previous();
}
catch (SQLException se) {
throw new InvalidResultSetAccessException(se);
}
}
代码示例来源:origin: alibaba/druid
@Override
public boolean previous() throws SQLException {
try {
boolean moreRows = rs.previous();
if (moreRows) {
cursorIndex--;
}
return moreRows;
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: alibaba/druid
@Override
public boolean resultSet_previous(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_previous(this, rs);
}
return rs.getResultSetRaw()
.previous();
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public boolean previous() {
try {
final boolean result = getResultSet().previous();
prepareCurrentRow( result );
return result;
}
catch (SQLException sqle) {
throw convert( sqle, "could not advance using previous()" );
}
}
代码示例来源:origin: apache/groovy
/**
* Moves the cursor to the previous row in this
* <code>getResultSet()</code> object.
*
* @return <code>true</code> if the cursor is on a valid row;
* <code>false</code> if it is off the result set
* @throws SQLException if a database access error
* occurs or the result set type is <code>TYPE_FORWARD_ONLY</code>
* @since 1.2
*/
public boolean previous() throws SQLException {
if (updated) {
getResultSet().updateRow();
updated = false;
}
return getResultSet().previous();
}
代码示例来源:origin: hibernate/hibernate-orm
resultSet.previous();
session
);
while ( resultSet.previous() ) {
EntityKey checkKey = getKeyFromResultSet(
0,
while ( resultSet.previous() ) {
EntityKey checkKey = getKeyFromResultSet(
0,
代码示例来源:origin: p6spy/p6spy
@Override
public boolean previous() throws SQLException {
return delegate.previous();
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public boolean previous() throws SQLException {
return innerResultSet.previous();
}
代码示例来源:origin: apache/phoenix
@Override
public boolean previous() throws SQLException {
return rs.previous();
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Override
public boolean previous() throws SQLException {
return innerResultSet.previous();
}
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
public boolean previous() throws SQLException {
return _rs.previous();
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean previous() throws SQLException {
try {
boolean moreRows = rs.previous();
if (moreRows) {
cursorIndex--;
}
return moreRows;
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public boolean resultSet_previous(ResultSetProxy rs) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_previous(this, rs);
}
return rs.getResultSetRaw()
.previous();
}
代码示例来源:origin: commons-dbutils/commons-dbutils
/**
* @return
* @throws SQLException
* @see java.sql.ResultSet#previous()
*/
protected final boolean previous() throws SQLException {
return rs.previous();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public boolean previous() throws SQLException {
boolean x = resultSet.previous();
logger.logf(level, "%s.previous() = %s", resultSetID, x);
return x;
}
代码示例来源:origin: org.apache.commons/commons-dbcp2
@Override
public boolean previous() throws SQLException {
try {
return resultSet.previous();
} catch (final SQLException e) {
handleException(e);
return false;
}
}
代码示例来源:origin: org.tranql/tranql-connector
public boolean previous() throws SQLException {
try {
return rs.previous();
} catch (SQLException e) {
connectionError(e);
throw e;
}
}
代码示例来源:origin: com.caucho/resin
public boolean previous()
throws SQLException
{
Profiler profiler = _profilerPoint.start();
try {
return _resultSet.previous();
}
finally {
profiler.finish();
}
}
内容来源于网络,如有侵权,请联系作者删除!