|
There is a mail thread "Dependencies between ri11 runtime and r11 query" on jdo-dev that requests some preparation work before we start to solve the dependencies between runtime and query:
We agreed on introducing a JDOQLQueryFactory interface declaring "newQuery" methods and a "newQueryTree" method. This interface will be placed in package "org.apache.jdo.jdoql". An implementation class of this interface (JDOQLQueryFactoryImpl) will be placed in package "org.apache.jdo.impl.jdoql".
An instance of JDOQLQueryFactory will be kept in FOStorePMF. This instance will be created by "Class.newInstance".
We introduce a new class FOStorePM extending PersistenceManagerImpl. This class implements all "newQuery" methods delegating to JDOQLQueryFactoryImpl. Class PersistenceManagerImpl will be made abstract removing all "newQuery" methods.
|