Maruicio/Eric --
I know that the PersistenceBroker provides the deleteByQuery(Query) method to do
exactly what you're talking about. However, I'm not sure how you'd go about working
with the PB and ODMG apis within the same transaction.
Ron Gallagher
Atlanta, GA
[EMAIL PROTECTED]
>
> From: "Mauricio CASTRO" <[EMAIL PROTECTED]>
> Date: 2003/06/12 Thu PM 08:03:49 EDT
> To: "OJB Users List" <[EMAIL PROTECTED]>
> Subject: Re: Deleting Large Quantities
>
> Hi all,
>
> Does OJB supports update/delete objects via Object Query Language?
>
> Mauricio Castro.
>
> ----- Original Message -----
> From: "Eric Northam" <[EMAIL PROTECTED]>
> Subject: Deleting Large Quantities
>
>
> > I was wondering if this is the appropriate way to delete a large number of
> > objects with ODMG:
> >
> > (taken from OQLOrOnForeignKeyTest)
> >
> > OQLQuery query = odmg.newOQLQuery();
> > query.create("select person from " + PersonImpl.class.getName());
> > List persons = (List) query.execute();
> > Iterator it = persons.iterator();
> > while (it.hasNext())
> > {
> > db.deletePersistent(it.next());
> > }
> > tx.commit();
> >
> > Won't this load each object completely into memory?
> >
> > Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]