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

Anurag Shekhar updated DERBY-819:
---------------------------------

    Attachment: embedexception.diff

code changes to support jdbc4 SQLException and the test case for the same.

Moved creation of EmbeddedException from 
java/engine/org/apache/derby/impl/jdbc/Util.java to
java/engine/org/apache/derby/impl/jdbc//SQLExceptionFactory.java (new class)
In SQLExceptionFactory.java checking if the jvm version lesser than J2SE_16 
creating the EmdeddedException.
In case the jvm version is J2SE_16 or above JDBC40SQLExceptionFactory is 
instantiated using reflection in which 
based on SQLState the new Exception is decided if the SQLState doesn't falls 
under any of the new category SQLException
is returned.

> Provide JDBC4 SQLException subclasses support in Embedded driver
> ----------------------------------------------------------------
>
>          Key: DERBY-819
>          URL: http://issues.apache.org/jira/browse/DERBY-819
>      Project: Derby
>         Type: Sub-task
>   Components: JDBC
>  Environment: all
>     Reporter: Anurag Shekhar
>     Assignee: Anurag Shekhar
>     Priority: Minor
>  Attachments: embedexception.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

Reply via email to