public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException, LookupException, SQLException { return pb.getCollectionByQuery(ManageableArrayList.class, query); } }
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { return pb.getCollectionByQuery(query); } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { return pb.getCollectionByQuery(query); } });
public Object doInPersistenceBroker(PersistenceBroker pb) throws PersistenceBrokerException { return pb.getCollectionByQuery(query); } });
Collection tmpColl = null; try { tmpColl = broker.getCollectionByQuery(query); } catch (PersistenceBrokerException e) { throw new PersistenceException("strictObjectQuery caught a low-level PB exception: " + e.getMessage(), e);
/** * Performs a query and returns a collection of objects matching the criteria specified * * @param query A fully constructed Query object * @return Collection A Collection of Persistable objects as defined by the query * @throws PersistenceException If the query object is null or the broker is not initialized */ protected Collection collectionQuery(final Query query) throws PersistenceException { if (query != null) { if (broker != null) { try { return broker.getCollectionByQuery(query); } catch (PersistenceBrokerException e) { throw new PersistenceException("collectionQuery caught a low-level PB exception: " + e.getMessage(), e); } } else { throw new PersistenceException("Query called on uninitialized PersistenceBroker"); } } else { throw new PersistenceException("No query specified!"); } }