[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Early Draft Review: XQuery for Java (JSR 225)


xqj driver
Ken,

Ken North wrote:

>If we pass strings between XQJ clients and XQuery servers, developers who've
>been processing SQL using C++, PHP, Perl, and Python will often choose to
>support XQuery by adapting existing scripts or classes.
>
>  
>
What do you mean by XQJ client ? Is it the driver, which implements the 
XQJ API, takes the queries and sends them off to the server ?
Or do you mean the code written by the XQJ user ?

I think the user should be able to choose what to pass to the XQJ driver 
(or client) - be it strings for compatibility, or trees for sanity reasons.

The driver can then do fancy things in its executeUpdate or executeQuery 
implementation which should not be of concern to the user.

>On the other hand, if an XQJ client must emit abstract syntax trees (serialized
>as Java byte arrays), we'll have to write Java programs for both ends of the XQJ
>client - XQuery server link.
>
>  
>
But that is an implementation choice that is well beyond the scope of 
the XQJ spec, isn't it ?

I am not sure whether one would always choose to transmit the AST, 
because drivers may choose to create something more low-lever than that 
(s.th. closer to "execution plans"). But I am sure that what ever you 
want to transmit, you can generate it nicely from the AST.

Any Java byte arrays can be "serialized" to a sequence of bytes (just 
don't call the "serialize" method, but write something like 
"toMyCustomBLOB()").

cheers,
B.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.