[OJB-developers] OJB OQL
Brought to you by:
thma
From: Jakob B. <jbr...@ho...> - 2002-02-25 06:47:39
|
hi, i've enhanced the oql-grammar to support is_defined, is_undefined and in: querying for null can now be done in two ways (negative form in comment): query.create("select persons from brj.ojb.Person where geburtsDatum = nil"); // <> nil or: query.create("select persons from brj.ojb.Person where is_undefined(geburtsDatum)"); // is_defined(...) for the in-query there arew also two flavours: query.create("select persons from brj.ojb.Person where id in($1)"); query.bind(values); // values is a collection conatining Integers or: query.create("select persons from brj.ojb.Person where id in(1,3,44)"); jakob |