You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2007/06/21 21:28:38 UTC

svn commit: r549589 [1/7] - in /harmony/enhanced/classlib/branches/java6/modules/sql/src: main/java/java/sql/ test/java/org/apache/harmony/sql/tests/java/sql/ test/resources/serialization/org/apache/harmony/sql/tests/java/sql/

Author: tellison
Date: Thu Jun 21 12:28:37 2007
New Revision: 549589

URL: http://svn.apache.org/viewvc?view=rev&rev=549589
Log:
Apply patch HARMONY-4256 ([classlib][sql][java6] 6 new sub-classes of java.sql.SQLNonTransientException)

Added:
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLDataExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLFeatureNotSupportedExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLIntegrityConstraintViolationExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLInvalidAuthorizationSpecExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLNonTransientConnectionExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/SQLSyntaxErrorExceptionTest.java   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLDataExceptionTest.golden.ser   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLFeatureNotSupportedExceptionTest.golden.ser   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLIntegrityConstraintViolationExceptionTest.golden.ser   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLInvalidAuthorizationSpecExceptionTest.golden.ser   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLNonTransientConnectionExceptionTest.golden.ser   (with props)
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/resources/serialization/org/apache/harmony/sql/tests/java/sql/SQLSyntaxErrorExceptionTest.golden.ser   (with props)

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,145 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+/**
+ * An exception, which is subclass of SQLException, is thrown when various data
+ * errors arise. These errors including division by 0 and invalid arguments to
+ * functions
+ */
+public class SQLDataException extends SQLNonTransientException {
+
+    private static final long serialVersionUID = -6889123282670549800L;
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to null, the
+     * SQLState string is set to null and the Error Code is set to 0.
+     */
+    public SQLDataException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * reason string, the SQLState string is set to null and the Error Code is
+     * set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLDataException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * reason string, the SQLState string is set to the given SQLState string
+     * and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLDataException(String reason, String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * reason string, the SQLState string is set to the given SQLState string
+     * and the Error Code is set to the given error code value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLDataException(String reason, String sqlState, int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the null
+     * if cause == null or cause.toString() if cause!=null,and the cause
+     * Throwable object is set to the given cause Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLDataException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLDataException(String reason, Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * reason string, the SQLState string is set to the given SQLState string
+     * and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLDataException(String reason, String sqlState, Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLDataException object. The Reason string is set to the given
+     * reason string, the SQLState string is set to the given SQLState string ,
+     * the Error Code is set to the given error code value, and the cause
+     * Throwable object is set to the given cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLDataException(String reason, String sqlState, int vendorCode,
+            Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLDataException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,148 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+/**
+ * An exception, which is subclass of SQLNonTransientException, is thrown when
+ * various the JDBC driver does not support an optional JDBC feature.
+ */
+public class SQLFeatureNotSupportedException extends SQLNonTransientException {
+
+    private static final long serialVersionUID = -1026510870282316051L;
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to null, the SQLState string is set to null and the Error Code is set
+     * to 0.
+     */
+    public SQLFeatureNotSupportedException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given reason string, the SQLState string is set to null and
+     * the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLFeatureNotSupportedException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given reason string, the SQLState string is set to the given
+     * SQLState string and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLFeatureNotSupportedException(String reason, String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given reason string, the SQLState string is set to the given
+     * SQLState string and the Error Code is set to the given error code value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLFeatureNotSupportedException(String reason, String sqlState,
+            int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the null if cause == null or cause.toString() if cause!=null,and
+     * the cause Throwable object is set to the given cause Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLFeatureNotSupportedException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLFeatureNotSupportedException(String reason, Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given reason string, the SQLState string is set to the given
+     * SQLState string and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLFeatureNotSupportedException(String reason, String sqlState,
+            Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLFeatureNotSupportedException object. The Reason string is
+     * set to the given reason string, the SQLState string is set to the given
+     * SQLState string , the Error Code is set to the given error code value,
+     * and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLFeatureNotSupportedException(String reason, String sqlState,
+            int vendorCode, Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLFeatureNotSupportedException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,154 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+/**
+ * An exception, which is subclass of SQLNonTransientException, is thrown when
+ * various the an integrity constraint (foreign key, primary key or unique key)
+ * has been violated.
+ */
+public class SQLIntegrityConstraintViolationException extends
+        SQLNonTransientException {
+
+    private static final long serialVersionUID = 8033405298774849169L;
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to null, the SQLState string is set to null and the Error
+     * Code is set to 0.
+     */
+    public SQLIntegrityConstraintViolationException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given reason string, the SQLState string is set to
+     * null and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLIntegrityConstraintViolationException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given reason string, the SQLState string is set to
+     * the given SQLState string and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLIntegrityConstraintViolationException(String reason,
+            String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given reason string, the SQLState string is set to
+     * the given SQLState string and the Error Code is set to the given error
+     * code value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLIntegrityConstraintViolationException(String reason,
+            String sqlState, int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the null if cause == null or cause.toString() if
+     * cause!=null,and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLIntegrityConstraintViolationException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given and the cause Throwable object is set to the
+     * given cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLIntegrityConstraintViolationException(String reason,
+            Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given reason string, the SQLState string is set to
+     * the given SQLState string and the cause Throwable object is set to the
+     * given cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLIntegrityConstraintViolationException(String reason,
+            String sqlState, Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLIntegrityConstraintViolationException object. The Reason
+     * string is set to the given reason string, the SQLState string is set to
+     * the given SQLState string , the Error Code is set to the given error code
+     * value, and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLIntegrityConstraintViolationException(String reason,
+            String sqlState, int vendorCode, Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLIntegrityConstraintViolationException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,152 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+/**
+ * An exception, which is subclass of SQLNonTransientException, is thrown when
+ * the authorization credentials presented during connection establishment are
+ * not valid.
+ */
+public class SQLInvalidAuthorizationSpecException extends
+        SQLNonTransientException {
+
+    private static final long serialVersionUID = -64105250450891498L;
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to null, the SQLState string is set to null and the Error Code is
+     * set to 0.
+     */
+    public SQLInvalidAuthorizationSpecException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to null and
+     * the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLInvalidAuthorizationSpecException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLInvalidAuthorizationSpecException(String reason, String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the Error Code is set to the given error code
+     * value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLInvalidAuthorizationSpecException(String reason, String sqlState,
+            int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the null if cause == null or cause.toString() if
+     * cause!=null,and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLInvalidAuthorizationSpecException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given and the cause Throwable object is set to the given
+     * cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLInvalidAuthorizationSpecException(String reason, Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the cause Throwable object is set to the given
+     * cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLInvalidAuthorizationSpecException(String reason, String sqlState,
+            Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLInvalidAuthorizationSpecException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string , the Error Code is set to the given error code
+     * value, and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLInvalidAuthorizationSpecException(String reason, String sqlState,
+            int vendorCode, Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLInvalidAuthorizationSpecException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,152 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+/**
+ * An exception, which is subclass of SQLException, is thrown when the
+ * connection operation that failed will not succeed when the operation is
+ * retried without the cause of the failure being corrected.
+ */
+public class SQLNonTransientConnectionException extends
+        SQLNonTransientException {
+
+    private static final long serialVersionUID = -5852318857474782892L;
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to null, the SQLState string is set to null and the Error Code is
+     * set to 0.
+     */
+    public SQLNonTransientConnectionException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to null and
+     * the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLNonTransientConnectionException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLNonTransientConnectionException(String reason, String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the Error Code is set to the given error code
+     * value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLNonTransientConnectionException(String reason, String sqlState,
+            int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the null if cause == null or cause.toString() if
+     * cause!=null,and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLNonTransientConnectionException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given and the cause Throwable object is set to the given
+     * cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLNonTransientConnectionException(String reason, Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string and the cause Throwable object is set to the given
+     * cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLNonTransientConnectionException(String reason, String sqlState,
+            Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLNonTransientConnectionException object. The Reason string
+     * is set to the given reason string, the SQLState string is set to the
+     * given SQLState string , the Error Code is set to the given error code
+     * value, and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLNonTransientConnectionException(String reason, String sqlState,
+            int vendorCode, Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLNonTransientConnectionException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java?view=auto&rev=549589
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java (added)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java Thu Jun 21 12:28:37 2007
@@ -0,0 +1,142 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package java.sql;
+
+public class SQLSyntaxErrorException extends SQLNonTransientException {
+
+    private static final long serialVersionUID = -1843832610477496053L;
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * null, the SQLState string is set to null and the Error Code is set to 0.
+     */
+    public SQLSyntaxErrorException() {
+        super();
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given reason string, the SQLState string is set to null and the Error
+     * Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     */
+    public SQLSyntaxErrorException(String reason) {
+        super(reason, null, 0);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given reason string, the SQLState string is set to the given SQLState
+     * string and the Error Code is set to 0.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     */
+    public SQLSyntaxErrorException(String reason, String sqlState) {
+        super(reason, sqlState, 0);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given reason string, the SQLState string is set to the given SQLState
+     * string and the Error Code is set to the given error code value.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     */
+    public SQLSyntaxErrorException(String reason, String sqlState,
+            int vendorCode) {
+        super(reason, sqlState, vendorCode);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the null if cause == null or cause.toString() if cause!=null,and the
+     * cause Throwable object is set to the given cause Throwable object.
+     * 
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLSyntaxErrorException(Throwable cause) {
+        super(cause);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given and the cause Throwable object is set to the given cause
+     * Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLSyntaxErrorException(String reason, Throwable cause) {
+        super(reason, cause);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given reason string, the SQLState string is set to the given SQLState
+     * string and the cause Throwable object is set to the given cause Throwable
+     * object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLSyntaxErrorException(String reason, String sqlState,
+            Throwable cause) {
+        super(reason, sqlState, cause);
+    }
+
+    /**
+     * Creates an SQLSyntaxErrorException object. The Reason string is set to
+     * the given reason string, the SQLState string is set to the given SQLState
+     * string , the Error Code is set to the given error code value, and the
+     * cause Throwable object is set to the given cause Throwable object.
+     * 
+     * @param reason
+     *            the string to use as the Reason string
+     * @param sqlState
+     *            the string to use as the SQLState string
+     * @param vendorCode
+     *            the integer value for the error code
+     * @param cause
+     *            the Throwable object for the underlying reason this
+     *            SQLException
+     */
+    public SQLSyntaxErrorException(String reason, String sqlState,
+            int vendorCode, Throwable cause) {
+        super(reason, sqlState, vendorCode, cause);
+    }
+}

Propchange: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/SQLSyntaxErrorException.java
------------------------------------------------------------------------------
    svn:eol-style = native