8990919293949596
query.descend("fFeedId").constrain(feed.getId()); //$NON-NLS-1$ ObjectSet<IBookMark> marks = query.execute(); activateAll(marks); return new ArrayList<IBookMark>(marks); } catch (Db4oException e) { throw new PersistenceException(e); } }
103104105106107108109110
query.descend("fParent").constrain(null); //$NON-NLS-1$ ObjectSet<IFolder> folders = query.execute(); activateAll(folders); return new ArrayList<IFolder>(folders); } catch (Db4oException e) { throw new PersistenceException(e); } }
153154155156157158159160161162163
fDb.set(newParent); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents();
278279280281282283284285286287288
fDb.set(newParent); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); }
403404405406407408409410411412
} else { changedNews = setState(news, state, force); } saveNews(changedNews, false, 1, false); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } }
448449450451452453454455
try { ObjectSet<ILabel> labels = fDb.ext().query(ILabel.class); activateAll(labels); return new ArrayList<ILabel>(labels); } catch (Db4oException e) { throw new PersistenceException(e); } }
488489490491492493494495496497498
fDb.ext().set(news, depth.intValue()); } } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { if (lock) fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents();
510511512513514515516517518519520
DBHelper.putEventTemplate(eventTemplate); fDb.delete(newsItem); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); return feed;
526527528529530531532533
if (activateFully) activateAll(marks); return new ArrayList<IBookMark>(marks); } catch (Db4oException e) { throw new PersistenceException(e); } }
542543544545546547548549550551552
for (IFolder folder : folders) fDb.delete(folder); fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); }