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] Commented: (DERBY-819) Provide JDBC4 SQLException subclasses support in Embedded driver
Date Sun, 12 Feb 2006 08:52:29 GMT
    [ http://issues.apache.org/jira/browse/DERBY-819?page=comments#action_12366069 ] 

Anurag Shekhar commented on DERBY-819:

Description of patch

	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. 
	Overwrote createExceptionFactory to return instance of SQLExceptionFactory40 

	It has all the exception related methods from Util.

	Overwrote getSQLException to return jdbc 4 exceptions.

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.


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,

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message