Apache JDO Project - [jira] Commented: (JDO-469) Delete by object id

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > March 2007 > [jira] Commented: (JDO-469) Delete by object id





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Commented: (JDO-469) Delete by object id
Michelle Caisse (JIRA)

2007-03-08, 7:11 pm


[ https://issues.apache.org/jira/brow...action_12479456 ]

Michelle Caisse commented on JDO-469:
-------------------------------------

+1

> Delete by object id
> -------------------
>
> Key: JDO-469
> URL: https://issues.apache.org/jira/browse/JDO-469
> Project: JDO
> Issue Type: Improvement
> Components: api2, api2-legacy, specification
> Affects Versions: JDO 2 maintenance release 1
> Reporter: Matthew T. Adams
> Fix For: JDO 2 maintenance release 1
>
>
> Currently, Query & PersistenceManager allow a user to get by query and by object id, respectively. However, symmetry is broken in the case of deletion: you can delete by query, but you cannot delete by object id. The result is that you are forced to

use a query or load each object that you want to delete. I noticed this asymmetry when I came across a use case where I had the object id and wanted to delete by id without having to load the object or construct a query.
> Why don't the following PersistenceManager methods exist?
> void deleteObjectById(Class cls, Object key);
> void deleteObjectById(Object oid);
> void deleteObjectsById(Collection oids);
> void deleteObjectsById(Object[] oids);
> Can we add these?


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com