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/01/17 11:20:43 UTC

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

     [ 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


Re: [jira] Updated: (DERBY-819) Provide JDBC4 SQLException subclasses support in Embedded driver

Posted by "Bernt M. Johnsen" <Be...@Sun.COM>.
Please attach the output from svn stat too. It will make verification
of the patch much easier.


>>>>>>>>>>>> Anurag Shekhar (JIRA) wrote (2006-01-17 11:20:43):
>      [ 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
> 

-- 
Bernt Marius Johnsen, Database Technology Group, 
Staff Engineer, Technical Lead Derby/Java DB
Sun Microsystems, Trondheim, Norway