implementing SQLXML - Mailing list pgsql-jdbc

From Dave Cramer
Subject implementing SQLXML
Date
Msg-id C4B43003-DF41-4F92-BE8E-4C38F937A7D0@fastcrypt.com
Whole thread Raw
List 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

pgsql-jdbc by date:

Previous
From: "Kranti Parisa"
Date:
Subject: Re: Problem with Utilizing executeBatch() with stored procedures
Next
From: Dave Cramer
Date:
Subject: Re: Problem with Utilizing executeBatch() with stored procedures