本文整理汇总了Java中org.hsqldb.navigator.RowSetNavigator.isAfterLast方法的典型用法代码示例。如果您正苦于以下问题:Java RowSetNavigator.isAfterLast方法的具体用法?Java RowSetNavigator.isAfterLast怎么用?Java RowSetNavigator.isAfterLast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.navigator.RowSetNavigator
的用法示例。
在下文中一共展示了RowSetNavigator.isAfterLast方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCurrent
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
/**
* Fetches the current row of the result set.
*
* @throws SQLException when result set is closed; result set is empty;
* result set is before first; result set is alfter last; no row data is
* available.
* @return Object[]
*/
protected Object[] getCurrent() throws SQLException {
final RowSetNavigator lnavigator = this.navigator;
if (lnavigator == null) {
throw JDBCUtil.sqlException(ErrorCode.X_24501);
} else if (lnavigator.isEmpty()) {
throw JDBCUtil.sqlException(ErrorCode.X_24504, ErrorCode.M_RS_EMPTY);
} else if (lnavigator.isBeforeFirst()) {
throw JDBCUtil.sqlException(ErrorCode.X_24504,
ErrorCode.M_RS_BEFORE_FIRST);
} else if (lnavigator.isAfterLast()) {
throw JDBCUtil.sqlException(ErrorCode.X_24504,
ErrorCode.M_RS_AFTER_LAST);
}
Object[] data = lnavigator.getCurrent();
if (data == null) {
throw JDBCUtil.sqlException(ErrorCode.X_24501);
}
return data;
}
示例2: getCurrent
import org.hsqldb.navigator.RowSetNavigator; //导入方法依赖的package包/类
/**
* Fetches the current row of the result set.
*
* @throws SQLException when result set is closed; result set is empty;
* result set is before first; result set is alfter last; no row data is
* available.
* @return Object[]
*/
private Object[] getCurrent() throws SQLException {
final RowSetNavigator lnavigator = this.navigator;
if (lnavigator == null) {
throw Util.sqlException(ErrorCode.X_24501);
} else if (lnavigator.isEmpty()) {
throw Util.sqlException(ErrorCode.X_24504, ErrorCode.M_RS_EMPTY);
} else if (lnavigator.isBeforeFirst()) {
throw Util.sqlException(ErrorCode.X_24504,
ErrorCode.M_RS_BEFORE_FIRST);
} else if (lnavigator.isAfterLast()) {
throw Util.sqlException(ErrorCode.X_24504,
ErrorCode.M_RS_AFTER_LAST);
}
Object[] data = lnavigator.getCurrent();
if (data == null) {
throw Util.sqlException(ErrorCode.X_24501);
}
return data;
}