db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: Derby Shutdown
Date Sat, 01 Jul 2006 14:27:22 GMT
Daniel Morton wrote:

>Hello All...
>
>I was just wondering, why does Derby throw an
>SQLException when it shuts down, ie:
>
>  
>
Shutdown is implemented with attributes on the url with  the 
getConnection() method  which can either
    a) return a connection
or
    b) throw an exception.

Obviously it can't return a connection in this case so it has to throw 
an exception.

http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DriverManager.html#getConnection(java.lang.String,%20java.lang.String,%20java.lang.String)

Not intuitive I agree,  but the only way I guess to fit this 
functionality into this API.

Kathey



Mime
View raw message