On Fri, 2002-02-22 at 22:35, Erik Hatcher wrote:
> ----- Original Message -----
> From: "Jason van Zyl" <[EMAIL PROTECTED]>
> > > Does this have anything to do with it does it?
> > >
> > > >From DBFactory.initializeDriverToAdapterMap
> > >
> > > driverToAdapterMap.put("org.hsql.jdbcDriver", "DBHypersonicSQL");
> > >
> > > hsqldb's jdbcDriver is org.hsqldb.jdbcDriver (not org.hsql...) in 1.61.
> >
> > Sure does!
> >
> > I just added an entry to the DBFactory class for you. Give it a whirl.
> > I added:
> >
> > driverToAdapterMap.put("org.hsqldb.jdbcDriver", "DBHsqldb");
>
> Ok, I think I get it. It maps to the adapter classname (prepending package
> to instantiate).
>
> But there is a facility to map dynamically from the config file too. I'm
> not quite sure what that looks like yet though, but that assumes there is a
> compatible adapter class, right? Maybe I'm understanding this afterall, at
> least a little :)
>
> By the way, typo alert:
>
> private static void registerAdapter(String driver, Class apdaterClass)
> {
> if (!adapters.containsKey(driver))
> {
> // Add this new adapter class to the list of known adapters.
> adapters.put(driver, apdaterClass);
> }
> }
>
> "apdater". I've dated a lot of "apps" in my time.... I should get out more
> often.
:-) Fixed.
> Erik
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>