Examples of PersistenceException


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

        fDb.set(newParent);
      }

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

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

        fDb.set(newParent);
      }

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

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

      } 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

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

    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

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

          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

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

        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

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

      if (activateFully)
        activateAll(marks);

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

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

      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

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

  public void startup() throws PersistenceException {
    super.startup();
    try {
      DBManager.getDefault().startup();
    } catch (DBException e) {
      throw new PersistenceException(e.getMessage());
    }
  }
View Full Code Here

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

    try {
      getIDGenerator().shutdown();
      getModelSearch().shutdown();
      DBManager.getDefault().shutdown();
    } catch (DBException e) {
      throw new PersistenceException(e.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.