summaryrefslogtreecommitdiff
path: root/java/sql/ResultSet.java
diff options
context:
space:
mode:
authorWarren Levy <warrenl@redhat.com>2000-12-01 01:42:43 +0000
committerWarren Levy <warrenl@redhat.com>2000-12-01 01:42:43 +0000
commit80ccf43059c3e8e78f06e901b314489219b77c32 (patch)
treeb18164f6e811d5dadf1ec580dbffc4c7d82486c2 /java/sql/ResultSet.java
parenta46c9b5a7f87c74c69ffde91e6eaf13203bef0d4 (diff)
downloadclasspath-80ccf43059c3e8e78f06e901b314489219b77c32.tar.gz
* java/sql/Array.java: Adjusted class signature to match spec.
* java/sql/BatchUpdateException.java: Ditto. * java/sql/Blob.java: Ditto. * java/sql/CallableStatement.java: Ditto. * java/sql/Clob.java: Ditto. * java/sql/DataTruncation.java: Ditto. * java/sql/Driver.java: Ditto. * java/sql/Ref.java: Ditto. * java/sql/ResultSetMetaData.java: Ditto. * java/sql/SQLData.java: Ditto. * java/sql/SQLException.java: Ditto. * java/sql/SQLInput.java: Ditto. * java/sql/SQLWarning.java: Ditto. * java/sql/Statement.java: Ditto. * java/sql/Struct.java: Ditto. * java/sql/Connection.java: Ditto. (setTransactionIsolation): Renamed to match the spec. * java/sql/DatabaseMetaData.java: Ditto on class signature. (supportsResultSetType): Renamed to match the spec. * java/sql/PreparedStatement.java: Ditto on class signature. (addBatch): New abstract method. * java/sql/ResultSet.java: Ditto on class signature. (first): returns boolean. (last): returns boolean. * java/sql/SQLOutput.java: Ditto on class signature. (writeAsciiStream): New abstract method. * java/sql/DriverManager.java (registerDriver): Throws SQLException. (deregisterDriver): Throws SQLException.
Diffstat (limited to 'java/sql/ResultSet.java')
-rw-r--r--java/sql/ResultSet.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/java/sql/ResultSet.java b/java/sql/ResultSet.java
index 0b65b24a0..536254fb8 100644
--- a/java/sql/ResultSet.java
+++ b/java/sql/ResultSet.java
@@ -1,5 +1,5 @@
/* ResultSet.java -- A SQL statement result set.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -47,7 +47,7 @@ import java.util.Map;
*
* @author Aaron M. Renn (arenn@urbanophile.com)
*/
-public abstract interface ResultSet
+public interface ResultSet
{
/**
@@ -887,10 +887,13 @@ afterLast() throws SQLException;
/**
* This method repositions the cursor on the first row in the
* result set.
+ *
+ * @return <code>true</code> if the cursor is on a valid row;
+ * <code>false</code> if there are no rows in the result set.
*
* @exception SQLException If an error occurs.
*/
-public abstract void
+public abstract boolean
first() throws SQLException;
/*************************************************************************/
@@ -899,9 +902,12 @@ first() throws SQLException;
* This method repositions the cursor on the last row in the result
* set.
*
+ * @return <code>true</code> if the cursor is on a valid row;
+ * <code>false</code> if there are no rows in the result set.
+ *
* @exception SQLException If an error occurs.
*/
-public abstract void
+public abstract boolean
last() throws SQLException;
/*************************************************************************/