xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Friedman <pfrie...@terralink.com>
Subject Re: SQL Extension, how to close just one query?
Date Tue, 31 Aug 2004 16:27:14 GMT
Seems to work for me in a quick test. We'll be system testing next week (04.09.03). I'll use
this and let you know if we have problems. Thanks.

Regards, Phil Friedman - Terralink Software - 1-207-772-6500 x101

Moraine Didier wrote:
> Hem ...
> You're right Phil, I have problem with my previous code also.
> 
> This one seems to work better ;-)
> 
> public void close(Object sqldoc) throws SQLException {
>     if (DEBUG)
>         System.out.println("Entering XConnection.close(" + sqldoc + ")");
>         
>     DTMNodeIterator dtmIter = (DTMNodeIterator)sqldoc;
> 
>     XNodeSet xNS = (XNodeSet)dtmIter.getDTMIterator();
> 
>     OneStepIterator iter = (OneStepIterator)xNS.getContainedIter();
> 
>     DTMManager aDTMManager = (DTMManager)iter.getDTMManager();
> 
>     SQLDocument sqlDoc = (SQLDocument)aDTMManager.getDTM(xNS.nextNode());
> 
>     sqlDoc.close();
> 
> }
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Mime
View raw message