Hej David,

> -----Original Message-----
> From: David Warnock [mailto:[EMAIL PROTECTED]]

> > does PersistenceBroker.deleteByQuery() help you?
> 
> Yes, great. Now all I need is a 
> PersistenceBroker.updateByQuery() and a
> PersistenceBroker.insertByQuery()

That would not make sense because the objects to
be updated/inserted, respectively, must be in the client 
VM anyway.  The result of a server-side query would
not help to do the operation any faster.  Besides,
the PB API does not distinguish between update and insert.

In JDO, there are methods

PersistenceManager.makePersistentAll(Collection)
PersistenceManager.makePersistentAll(Object[])

Depending on the implementation, they can be faster
than an iteration with single makePersistent() calls.

Likewise, PersistenceBroker.updateAll(...) would be
a good thing, wouldn't it?

Olli

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to