On 29 Jan., 02:19, "David Crawshaw" <[EMAIL PROTECTED]> wrote:
> ... a really easy thing to implement yourself.
>
> class SQLiteDataSource implements DataSource {
>     private String url;
>     public SQLiteDataSource(String url) {
>         Class.forName("org.sqlite.JDBC");
>         this.url = url;
>     }
>     public Connection getConnection() {
>         DriverManager.getConnection(url);
>     }
>     public Connection getConnection(String u, String p) { return
> getConnection(); }
>     public int getLoginTimeout() { return 0; }
>     public void setLoginTimeout(int s) {}
>     public PrintWriter getLogWriter() { return null; }
>     public void setLogWriter(PrintWriter out) {}
>
> }If the package you're working with expects those last silly functions
> to do something it would be pretty easy to fake it, but I suspect
> you'll never need more than getConnection().

thanks! didn't know it's so easy :-)
the org.apache.commons.configuration.DatabaseConfiguration class is 
just using getConnection() ...

[problem solved]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLiteJDBC" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlitejdbc?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to