diff options
author | Warren Levy <warrenl@cygnus.com> | 2000-12-01 01:48:34 +0000 |
---|---|---|
committer | Warren Levy <warrenl@gcc.gnu.org> | 2000-12-01 01:48:34 +0000 |
commit | 6934615b9736d0a777ce7f6933129ea1cdd2dd23 (patch) | |
tree | 7c67e6325a21b9cf53bbdc5648f2e7523a514436 /libjava/java/sql/Statement.java | |
parent | 95ac07b0f4d9916c7a850e3b427cbc768819d742 (diff) | |
download | gcc-6934615b9736d0a777ce7f6933129ea1cdd2dd23.zip gcc-6934615b9736d0a777ce7f6933129ea1cdd2dd23.tar.gz gcc-6934615b9736d0a777ce7f6933129ea1cdd2dd23.tar.bz2 |
Array.java: New file from classpath.
* Array.java: New file from classpath.
* BatchUpdateException.java: Ditto.
* Blob.java: Ditto.
* Clob.java: Ditto.
* Ref.java: Ditto.
* SQLData.java: Ditto.
* SQLInput.java: Ditto.
* SQLOutput.java: Ditto.
* Struct.java: Ditto.
* CallableStatement.java: Merged file from claspath.
* Connection.java: Ditto.
* DataTruncation.java: Ditto.
* DatabaseMetaData.java: Ditto.
* DriverManager.java: Ditto.
* PreparedStatement.java: Ditto.
* ResultSet.java: Ditto.
* ResultSetMetaData.java: Ditto.
* SQLException.java: Ditto.
* SQLWarning.java: Ditto.
* Statement.java: Ditto.
* Types.java: Ditto.
From-SVN: r37906
Diffstat (limited to 'libjava/java/sql/Statement.java')
-rw-r--r-- | libjava/java/sql/Statement.java | 138 |
1 files changed, 137 insertions, 1 deletions
diff --git a/libjava/java/sql/Statement.java b/libjava/java/sql/Statement.java index 1ceeb0f..30eeeeb 100644 --- a/libjava/java/sql/Statement.java +++ b/libjava/java/sql/Statement.java @@ -1,5 +1,5 @@ /* Statement.java -- Interface for executing SQL statements. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2000 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -273,5 +273,141 @@ getUpdateCount() throws SQLException; public abstract boolean getMoreResults() throws SQLException; +/*************************************************************************/ + +/** + * This method returns the current direction that the driver thinks the + * result set will be accessed int. + * + * @return The direction the result set will be accessed in (????) + * + * @exception SQLException If an error occurs. + */ +public abstract int +getFetchDirection() throws SQLException; + +/*************************************************************************/ + +/** + * This method informs the driver which direction the result set will + * be accessed in. + * + * @param direction The direction the result set will be accessed in (?????) + * + * @exception SQLException If an error occurs. + */ +public abstract void +setFetchDirection(int direction) throws SQLException; + +/*************************************************************************/ + +/** + * This method returns the number of rows the driver believes should be + * fetched from the database at a time. + * + * @return The number of rows that will be fetched from the database at a time. + * + * @exception SQLException If an error occurs. + */ +public abstract int +getFetchSize() throws SQLException; + +/*************************************************************************/ + +/** + * This method informs the driver how many rows it should fetch from the + * database at a time. + * + * @param numrows The number of rows the driver should fetch at a time + * to populate the result set. + * + * @exception SQLException If an error occurs. + */ +public abstract void +setFetchSize(int numrows) throws SQLException; + +/*************************************************************************/ + +/** + * This method returns the concurrency type of the result set for this + * statement. This will be one of the concurrency types defined in + * <code>ResultSet</code>. + * + * @return The concurrency type of the result set for this statement. + * + * @exception SQLException If an error occurs. + * + * @see ResultSet + */ +public abstract int +getResultSetConcurrency() throws SQLException; + +/*************************************************************************/ + +/** + * This method returns the result set type for this statement. This will + * be one of the result set types defined in <code>ResultSet</code>. + * + * @return The result set type for this statement. + * + * @exception SQLException If an error occurs. + * + * @see ResultSet + */ +public abstract int +getResultSetType() throws SQLException; + +/*************************************************************************/ + +/** + * This method adds a SQL statement to a SQL batch. A driver is not + * required to implement this method. + * + * @param sql The sql statement to add to the batch. + * + * @exception SQLException If an error occurs. + */ +public abstract void +addBatch(String sql) throws SQLException; + +/*************************************************************************/ + +/** + * This method clears out any SQL statements that have been populated in + * the current batch. A driver is not required to implement this method. + * + * @exception SQLException If an error occurs. + */ +public abstract void +clearBatch() throws SQLException; + +/*************************************************************************/ + +/** + * This method executes the SQL batch and returns an array of update + * counts - one for each SQL statement in the batch - ordered in the same + * order the statements were added to the batch. A driver is not required + * to implement this method. + * + * @return An array of update counts for this batch. + * + * @exception SQLException If an error occurs. + */ +public abstract int[] +executeBatch() throws SQLException; + +/*************************************************************************/ + +/** + * This method returns the <code>Connection</code> instance that was + * used to create this object. + * + * @return The connection used to create this object. + * + * @exception SQLException If an error occurs. + */ +public abstract Connection +getConnection() throws SQLException; + } // interface Statement |