db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Cruz <l...@netcabo.pt>
Subject Extension of ODMG to support Criteria
Date Fri, 10 Jan 2003 21:48:52 GMT


We're working on a project in which we exclusively use ODMG. To simplify
the construction of many queries we decided to use Criteria. Since we
don't want use explicit calls to the Persistence Broker we added a
simple method to the OQLQueryImpl class and the corresponding
EnhancedOQLQuery interface.

With this function, ODMG is ready and fully capable of generating
queries constructed from indicated criteria.

In attach are the corresponding files to the above referred class and
interface containing the new functionality (a new create method). The
added code can be found between lines 264 and 269 in the
OQLQueryImpl.java file and at line 70 in the EnhancedOQLQuery.java file.

Luis Cruz & João Mota

View raw message