138139140141142143144145
public synchronized void shutdown() throws PersistenceException { try { disposeSearcher(); fIndexer.shutdown(); } catch (IOException e) { throw new PersistenceException(e.getMessage(), e); } }
255256257258259260261262
fSearcher.search(bQuery, collector); } return resultList; } catch (IOException e) { throw new PersistenceException("Error searching news", e); } }
554555556557558559560561
else if (flushed) { fSearcher.close(); fSearcher = new IndexSearcher(fDirectory); } } catch (IOException e) { throw new PersistenceException(e.getMessage(), e); } }
584585586587588589590591
public synchronized void clearIndex() throws PersistenceException { try { disposeSearcher(); fIndexer.clearIndex(); } catch (IOException e) { throw new PersistenceException(e.getMessage(), e); } }
129130131132133134135136
return feed; } return null; } catch (Db4oException e) { throw new PersistenceException(e); } }
7576777879808182
public final Collection<IFeed> loadAll() { try { ObjectSet<? extends IFeed> entities = fDb.query(fEntityClass); return new LazySet<IFeed>(entities, fDb); } catch (Db4oException e) { throw new PersistenceException(e); } }
6869707172737475
query.descend("fFeedLink").constrain(feedRef.getLink().toString()); //$NON-NLS-1$ List<IBookMark> marks = getList(query); activateAll(marks); return new ArrayList<IBookMark>(marks); } catch (Db4oException e) { throw new PersistenceException(e); } }
7071727374757677
strings.add(person.getEmail().toString()); } return strings; } catch (Db4oException e) { throw new PersistenceException(e); } }
7172737475767778
public boolean exists(long id) { try { return !(loadList(id).isEmpty()); } catch (Db4oException e) { throw new PersistenceException(e); } }
9293949596979899
// TODO Activate completely by default for now. Must decide how to deal // with this. fDb.activate(entity, Integer.MAX_VALUE); return entity; } catch (Db4oException e) { throw new PersistenceException(e); } }