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]

Reply via email to