Examples of PersistenceException


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

  public boolean exists(FeedLinkReference feedRef) {
    try {
      Collection<IBookMark> marks = DBHelper.loadAllBookMarks(fDb, feedRef);
      return !marks.isEmpty();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

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

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

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

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

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

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

      // with this.
      fDb.activate(entity, Integer.MAX_VALUE);

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

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

      mark.setPopularity(mark.getPopularity() + 1);
      preSave(mark);
      fDb.ext().store(mark, 1);
      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
  }
View Full Code Here

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

      mark.setPopularity(mark.getPopularity() + 1);
      preSave(mark);
      fDb.ext().store(mark, 1);
      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
    DBHelper.cleanUpAndFireEvents();
  }
View Full Code Here

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

      for (IConditionalGet entity : getList(query)) {
        fDb.activate(entity, Integer.MAX_VALUE);
        return entity;
      }
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
    return null;
  }
View Full Code Here

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

  @Override
  public final Collection<IFeed> loadAll()  {
    try {
      return DBHelper.loadAllFeeds(fDb);
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
  }
View Full Code Here

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

      List<? extends T> entities = fDb.query(fEntityClass);
      activateAll(entities);

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

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

  public long countAll() {
    try {
      List<? extends T> entities = fDb.query(fEntityClass);
      return entities.size();
    } catch (Db4oException e) {
      throw new PersistenceException(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.