[jira] Resolved: (JDO-469) Delete by object id
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 > [jira] Resolved: (JDO-469) Delete by object id




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

    [jira] Resolved: (JDO-469) Delete by object id  
Matthew T. Adams (JIRA)


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


 
03-23-07 06:11 PM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Matthew T. Adams resolved JDO-469.
----------------------------------

Resolution: Won't Fix

After discussion, the implementation is nothing more than
pm.deletePersistent(pm.getObjectById(oid, false))
which is not worth doing.

> 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
>         Assigned To: Matthew T. Adams
>             Fix For: JDO 2 maintenance release 1
>
>
> Currently, Query & PersistenceManager allow a user to get by query and by object i
d, respectively.  However, symmetry is broken in the case of deletion:  you can dele
te 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 ca
me 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.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:26 AM.      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