Package org.rssowl.core.model.dao

Examples of org.rssowl.core.model.dao.PersistenceException


      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);
    }
  }
View Full Code Here


      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);
    }
  }
View Full Code Here

        fDb.set(newParent);
      }

      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
   
View Full Code Here

        fDb.set(newParent);
      }

      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
  }
View Full Code Here

      } else {
        changedNews = setState(news, state, force);
      }
      saveNews(changedNews, false, 1, false);
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
  }
View Full Code Here

    try {
      ObjectSet<ILabel> labels = fDb.ext().query(ILabel.class);
      activateAll(labels);
      return new ArrayList<ILabel>(labels);
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

          fDb.ext().set(news, depth.intValue());
        }
      }
      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      if (lock)
        fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
View Full Code Here

        DBHelper.putEventTemplate(eventTemplate);
        fDb.delete(newsItem);
      }
      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
    return feed;
View Full Code Here

      if (activateFully)
        activateAll(marks);

      return new ArrayList<IBookMark>(marks);
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

      for (IFolder folder : folders)
        fDb.delete(folder);

      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.dao.PersistenceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.