No thats not supported by ODMG / OQL (not an OJB problem !) > -----Original Message----- > From: Mauricio CASTRO [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 2:04 AM > To: OJB Users List > 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]
