Package org.rssowl.core.persist.service

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


        fSearcher.search(bQuery, collector);
      }

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

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

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

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

  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

      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

          strings.add(person.getEmail().toString());
      }

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

 
  public boolean exists(long id) {
    try {
      return !(loadList(id).isEmpty());
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

      // TODO Activate completely by default for now. Must decide how to deal
      // with this.
      fDb.activate(entity, Integer.MAX_VALUE);
      return entity;
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.service.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.