You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Anurag Shekhar (JIRA)" <de...@db.apache.org> on 2006/03/22 19:03:32 UTC

[jira] Updated: (DERBY-1140) Provide JDBC4 SQLException subclasses support in network driver

     [ http://issues.apache.org/jira/browse/DERBY-1140?page=all ]

Anurag Shekhar updated DERBY-1140:
----------------------------------

    Attachment: derby-1140.diff

This patch is similar to 819. 
I have introduced a SQLExceptionFactory40 for network client.
SqlException has a static field which is called to create java.sql.SQLException.
 The field is initialized with SQLexceptionFactory. 
constructor of ClientJDBCObjectFactoryImpl40 (This class is first created by ClientDriver) overwrites
the static factory field in SqlException by SQLExceptionFactory40. 
SQLExceptionFactory calls out org.apache.derby.shared.common.error.ExceptionUtil40.getSQLExceptionFromState 
to get the jdbc4.0 SQLException or its subclass for the SQLState.

I have modified SQLExceptionFactory40 of Embedded Driver to call the same method to create SQLException.

> Provide JDBC4 SQLException subclasses support in network driver
> ---------------------------------------------------------------
>
>          Key: DERBY-1140
>          URL: http://issues.apache.org/jira/browse/DERBY-1140
>      Project: Derby
>         Type: Sub-task
>     Versions: 10.2.0.0
>  Environment: jdk1.6 
>     Reporter: Anurag Shekhar
>     Assignee: Anurag Shekhar
>  Attachments: derby-1140.diff
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira