502503504505506507508509510
/** Create a new Query with no elements. * @return a new Query instance with no elements. */ public Query newQuery() { assertIsOpen(); QueryImpl q = new QueryImpl(this); registerQuery(q); return q; }
516517518519520521522523524
* @return the new Query * @param compiled another Query from the same JDO implementation */ public Query newQuery(Object compiled) { assertIsOpen(); QueryImpl q = new QueryImpl(this, compiled); registerQuery(q); return q; }
527528529530531532533534535
* @param cls the Class of the results * @return the new Query */ public Query newQuery(Class cls) { assertIsOpen(); QueryImpl q = new QueryImpl(this, cls); registerQuery(q); return q; }
540541542543544545546547548
* @param cln the Collection of candidate instances * @return the new Query */ public Query newQuery(Class cls, Collection cln) { assertIsOpen(); QueryImpl q = new QueryImpl(this, cls, cln); registerQuery(q); return q; }
553554555556557558559560561
* @param filter the Filter for candidate instances * @return the new Query */ public Query newQuery(Class cls, String filter) { assertIsOpen(); QueryImpl q = new QueryImpl(this, cls, filter); registerQuery(q); return q; }
567568569570571572573574575
* @param filter the Filter for candidate instances * @return the new Query */ public Query newQuery(Class cls, Collection cln, String filter) { assertIsOpen(); QueryImpl q = new QueryImpl(this, cls, cln, filter); registerQuery(q); return q; }
20952096209720982099210021012102210321042105
*/ private void disconnectQueries() { for (Iterator i = queries.iterator(); i.hasNext();) { QueryImpl q = (QueryImpl)i.next(); q.clearPersistenceManager(); } queries.clear(); queries = null; }
506507508509510511512513514
520521522523524525526527528
531532533534535536537538539