... and they are much more efficient, too, because they use the cache. Using an OQL query, even with the ID as criteria, will end up using a straight SQL query instead of looking up in the cache.

Sean Dockery wrote:
You can use PersistenceBroker Queries directly...

http://db.apache.org/ojb/faq.html#I%20don't%20like%20OQL,%20can%20I%20use%20the%20PersistenceBroker%20Queries%20within%20ODMG?


"Andreas Schildbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Is there a simple "Find by ID" call, instead of using a somewhat bloated
OQLQuery that only returns one result (and having to use an Iterator
just to get one object).

Something similar to "Object Database.load(Class type, Object identity)"
in the Castor API?




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



Reply via email to