db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Shekhar (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1140) Provide JDBC4 SQLException subclasses support in network driver
Date Wed, 22 Mar 2006 18:03:32 GMT
     [ 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


Mime
View raw message