JDO spec section 14.7. SQL queries must start with SELECT
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > JDO spec section 14.7. SQL queries must start with SELECT




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    JDO spec section 14.7. SQL queries must start with SELECT  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-22-05 12:45 PM

Hi,

Is this still valid? I propose to remove this limitation because we should a
llow
running stored procedures.

Myself, I need to run a stored procedured. I guess this is a common use case
.

Regards,

Erik Bengtson








[ Post a follow-up to this message ]



    Re: JDO spec section 14.7. SQL queries must start with SELECT  
Craig L Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-22-05 10:45 PM

Hi Erik,

The reason for disallowing anything but queries in the SQL statement
is that when using the JDO query facility, the JDO implementation is
expected to understand the effect of the query on the underlying
datastore and to make sure that the user doesn't accidentally hurt
herself. That is, objects deleted or updated in the datastore should
be reflected in the cache visible to the object model. Take a look at
delete by query for the kind of guarantees that JDO provides.

There is no such restriction on operations performed through the
JDOConnection, which is where I expect your stored procedures can
find a home.

Craig

On Nov 22, 2005, at 2:38 AM, erik@jpox.org wrote:

> Hi,
>
> Is this still valid? I propose to remove this limitation because we
> should allow
> running stored procedures.
>
> Myself, I need to run a stored procedured. I guess this is a common
> use case.
>
> Regards,
>
> Erik Bengtson
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!







[ Post a follow-up to this message ]



    Re: JDO spec section 14.7. SQL queries must start with SELECT  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-22-05 10:45 PM

Hi Craig,

My procedure only encapsulates a SELECT stmt. The SQL query is far trivial t
o
use than the JDOConnection.

IMO the usability outweigh the warranty the JDO provides by not updating the
database when running SQL queries.

Regards,

Erik Bengtson

Quoting Craig L Russell <Craig.Russell@Sun.COM>:

> Hi Erik,
>
> The reason for disallowing anything but queries in the SQL statement
> is that when using the JDO query facility, the JDO implementation is
> expected to understand the effect of the query on the underlying
> datastore and to make sure that the user doesn't accidentally hurt
> herself. That is, objects deleted or updated in the datastore should
> be reflected in the cache visible to the object model. Take a look at
> delete by query for the kind of guarantees that JDO provides.
>
> There is no such restriction on operations performed through the
> JDOConnection, which is where I expect your stored procedures can
> find a home.
>
> Craig
>
> On Nov 22, 2005, at 2:38 AM, erik@jpox.org wrote:
> 
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>









[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:33 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register