Sorry, missed the last part of your comments earlier...

On Aug 16, 2006, at 7:38 PM, Allen Gilliland wrote:

this seems like it could be a very complex undertaking to me and doesn't it seem like we would be reinventing the wheel a bit?

Yes, a bit. I discussed with Dave how to do a "criteria query" but then we're really inventing another wheel. I take advantage of the fact that all of the persistence providers offer a named query facility and then basically you provide the parameters, possibly parameter types if the types are temporal (I never understood this requirement but apparently it's needed for JPA portability). The Query interface is supposed to be a trivial wrapper around the back end query facility.

Hibernate already provides a very elaborate Query interface which you are basically proposing we try and duplicate.

Actually, no. The query interface here is actually oriented toward a named query + execute that accommodates the different styles of JPA and JDO (and Hibernate, although that's not really at issue here).

in any case, i don't understand the removeAll() methods, how are they supposed to work?

They are supposed to delete all instances that satisfy the query expression. In JPA this would translate to a DELETE query.

Craig

-- Allen


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to