From d87a15cc0076071bc4501bbeece802e1b8616585 Mon Sep 17 00:00:00 2001 From: Warren Levy Date: Thu, 29 Jun 2000 23:20:33 +0000 Subject: * java/math/BigDecimal.java (add): Reimplemented. (subtract): Corrected method name from 'substract'. Reimplemented. * java/sql/Connection.java (TRANSACTION_SERIALIZABLE): Corrected spelling to match JDK spec. * java/sql/DatabaseMetaData.java (getIdentifierQuoteString): Corrected method name from 'getIdentiferQuoteString'. (getTimeDateFunctions): Corrected name to match the spec. (supportsCatalogsInPrivilegeDefinitions): Ditto. (getMaxUserNameLength): Ditto. (getTables): Added String types[] parameter to match the spec. * java/sql/Driver.java (getMajorVersion): Corrected method name. * java/sql/PreparedStatement.java: Class extends Statement. (setBigDecimal): New method. (setAsciiStream): Added int length parameter. (setUnicodeStream): Ditto. (setBinaryStream): Ditto. (setCharacterStream): Ditto. (execute): New method. (executeQuery): New method. (executeUpdate): New method. Mods to match the JDK spec (and to fix BigDecimal bugs). --- java/sql/DatabaseMetaData.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'java/sql/DatabaseMetaData.java') diff --git a/java/sql/DatabaseMetaData.java b/java/sql/DatabaseMetaData.java index c4a1aa77f..59273f29d 100644 --- a/java/sql/DatabaseMetaData.java +++ b/java/sql/DatabaseMetaData.java @@ -1,5 +1,5 @@ /* DatabaseMetaData.java -- Information about the database itself. - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2000 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -592,7 +592,7 @@ storesMixedCaseQuotedIdentifiers() throws SQLException; * @exception SQLException If an error occurs. */ public abstract String -getIdentiferQuoteString() throws SQLException; +getIdentifierQuoteString() throws SQLException; /*************************************************************************/ @@ -646,14 +646,14 @@ getSystemFunctions() throws SQLException; /*************************************************************************/ /** - * This method returns comma separated list of date/time functions. + * This method returns comma separated list of time/date functions. * - * @return The list of date/time functions. + * @return The list of time/date functions. * * @exception SQLException If an error occurs. */ public abstract String -getDateTimeFunctions() throws SQLException; +getTimeDateFunctions() throws SQLException; /*************************************************************************/ @@ -1251,7 +1251,7 @@ supportsCatalogsInIndexDefinitions() throws SQLException; * @exception SQLException If an error occurs. */ public abstract boolean -supportsCatalogInPrivilegeDefinitions() throws SQLException; +supportsCatalogsInPrivilegeDefinitions() throws SQLException; /*************************************************************************/ @@ -1719,7 +1719,7 @@ getMaxTablesInSelect() throws SQLException; * @exception SQLException If an error occurs. */ public abstract int -getMaxTableUserLength() throws SQLException; +getMaxUserNameLength() throws SQLException; /*************************************************************************/ @@ -1925,14 +1925,15 @@ getProcedureColumns(String catalog, String schemaPattern, String namePattern, * @param schemaPattern A schema pattern for the schemas to return tables * from, or "" to return tables from all schemas. * @param namePattern The pattern of table names to return. + * @param types The list of table types to include; null returns all types. * * @returns A ResultSet with all the requested tables. * * @exception SQLException If an error occurs. */ public abstract ResultSet -getTables(String catalog, String schemaPattern, String namePattern) - throws SQLException; +getTables(String catalog, String schemaPattern, String namePattern, + String types[]) throws SQLException; /*************************************************************************/ -- cgit v1.2.1