[
http://issues.apache.org/jira/browse/DERBY-819?page=comments#action_12366069 ]
Anurag Shekhar commented on DERBY-819:
--------------------------------------
Description of patch
InternalDriver
added method to create ExceptionFactory. This method can be overwritten
in subclass to create exception's supported by the jdbc versions supported by
the driver.
In boot method of InternalDriver method to instantiate exception factory is
called the factory it set to a static field.
createExceptionFactory of InternalDriver return instance of
SQLExceptionFactory
added a static method to get exception factory.
Driver40
Overwrote createExceptionFactory to return instance of
SQLExceptionFactory40
SQLExceptionFactory
It has all the exception related methods from Util.
SQLExceptionFactory40
Overwrote getSQLException to return jdbc 4 exceptions.
Util
Removed all exception related methods except notImplemented. This method is
used from network client. Changed this method to return SQLException. This
methods used only by network client and that is not supposed to used
EmbeddedException.
Other classes modified to to use new exception factory to throw exception.
java/testing/build.xml
added entry to build jdbc4 test cases
> 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: .derby-819_2.stat, derby-819-onlyforreview.diff,
> derby-819.diff, derby-819_2.diff, stat.out
>
--
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