implementing SQLXML

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: implementing SQLXML
Date: 2007-05-07 13:26:10
Message-ID: C4B43003-DF41-4F92-BE8E-4C38F937A7D0@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I took a run at implementing SQLXML in jdbc4. I have a question about
the getSource method.

It appears that the interface Source implements only two methods
which by themselves aren't very helpful.

There are currently 4 concrete classes that implement the Source
interface, but they seem quite different. It would appear that the
driver will have to do

public Source getSource(Class source)

{
if instanceof DOMSource return new DOMSource
if instanceof JAXBSource return new JAXBSource

.....

}

Does this make sense ?

Dave

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2007-05-07 13:26:56 Re: Problem with Utilizing executeBatch() with stored procedures
Previous Message Kranti Parisa 2007-05-07 13:19:15 Re: Problem with Utilizing executeBatch() with stored procedures