Issue Details (XML | Word | Printable)

Key: NUCCORE-607
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

JDOQL : Allow bulk UPDATE/DELETE "statements"

Created: 28/Nov/10 08:11 PM   Updated: 10/Dec/10 07:48 AM   Resolved: 28/Nov/10 08:51 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.2.0.release


 Description  « Hide
Although not part of JDO, would be nice to allow a user to specify
DELETE FROM mydomain.MyClass WHERE ...

UPDATE mydomain.MyClass SET fld=val, fld2=val2 WHERE ...

and enable it by way of a persistence property
datanucleus.query.jdoql.allowAll

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/Nov/10 08:51 PM
SVN trunk allows this. Just set the persistence property
datanucleus.query.jdoql.allowAll=true
and then you can do

DELETE FROM mydomain.MyClass WHERE ...

UPDATE mydomain.MyClass SET fld1=val1, fld2=val2 WHERE ...