Examples of PersistenceException


Examples of org.rssowl.core.persist.service.PersistenceException

      Collection<INews> news = getList(query);
      activateAll(news);

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

Examples of org.rssowl.core.persist.service.PersistenceException

          condition.signal();
          setStateLock.unlock();
          save(changedNews);
          fDb.commit();
        } catch (Db4oException e) {
          throw new PersistenceException(e);
        } finally {
          if (changedNews != null) {
            for (INews changedNewsItem : changedNews) {
              ((News) changedNewsItem).releaseReadLockSpecial();
              eventRunnable.addCheckedUpdateEvent(createSaveEventTemplate(changedNewsItem));
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

  public synchronized void shutdown() throws PersistenceException {
    try {
      disposeSearcher();
      fIndexer.shutdown();
    } catch (IOException e) {
      throw new PersistenceException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

        fSearcher.search(bQuery, collector);
      }

      return resultList;
    } catch (IOException e) {
      throw new PersistenceException("Error searching news", e);
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

      else if (flushed) {
        fSearcher.close();
        fSearcher = new IndexSearcher(fDirectory);
      }
    } catch (IOException e) {
      throw new PersistenceException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

  public synchronized void clearIndex() throws PersistenceException {
    try {
      disposeSearcher();
      fIndexer.clearIndex();
    } catch (IOException e) {
      throw new PersistenceException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

        return feed;
      }
      return null;
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.service.PersistenceException

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

Examples of org.rssowl.core.persist.service.PersistenceException

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

Examples of org.timedex.exception.PersistenceException

  private HibernateSessionStrategy() {
    try {
      // uses 'hibernate.cfg.xml'
       sessionFactory = new Configuration().configure().buildSessionFactory();
    } catch (HibernateException e) {
      throw new PersistenceException("Caught HibernateException instantiating SessionFactory", e);
    }
  }
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.