8788899091929394
List<? extends T> entities = fDb.query(fEntityClass); activateAll(entities); return new ArrayList<T>(entities); } catch (Db4oException e) { throw new PersistenceException(e); } }
123124125126127128129130131132133
for (T object : objects) { doSave(object); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); }
169170171172173174175176177178179
for (T object : objects) { doDelete(object); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); }
188189190191192193194195
public long countAll() { try { List<? extends T> entities = fDb.query(fEntityClass); return entities.size(); } catch (Db4oException e) { throw new PersistenceException(e); } }
117118119120121122123124125126127
changedNews = setState(news, state, force); } save(changedNews); fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents(); }
191192193194195196197198
Collection<INews> news = getList(query); activateAll(news); return new ArrayList<INews>(news); } catch (Db4oException e) { throw new PersistenceException(e); } }
222223224225226227228229
/* Create the Index if required */ try { fIndexWriter = createIndexWriter(fIndexDirectory, !IndexReader.indexExists(fIndexDirectory)); } catch (IOException e) { throw new PersistenceException(e.getMessage(), e); } }
7778798081828384
query.descend("fParent").constrain(null); //$NON-NLS-1$ List<IFolder> folders = getList(query); activateAll(folders); return new ArrayList<IFolder>(folders); } catch (Db4oException e) { throw new PersistenceException(e); } }
116117118119120121122123124125126
fDb.set(newParent); } fDb.commit(); } catch (Db4oException e) { throw new PersistenceException(e); } finally { fWriteLock.unlock(); } DBHelper.cleanUpAndFireEvents();
575859606162636465
for (IConditionalGet entity : getList(query)) { fDb.activate(entity, Integer.MAX_VALUE); return entity; } } catch (Db4oException e) { throw new PersistenceException(e); } return null; }