Package org.rssowl.core.model.dao

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


    try {
      getIDGenerator().shutdown();
      getModelSearch().shutdown();
      DBManager.getDefault().shutdown();
    } catch (DBException e) {
      throw new PersistenceException(e.getMessage());
    }
  }
View Full Code Here

    try {
      DBManager.getDefault().dropDatabase();
      DBManager.getDefault().createDatabase();
      getModelSearch().clearIndex();
    } catch (DBException e) {
      throw new PersistenceException(e.getMessage());
    }
  }
View Full Code Here

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

      fDb.ext().set(preference, Integer.MAX_VALUE);
    else {
      update = true;

      if (savedPreference.getType() != preference.getType()) {
        throw new PersistenceException("Trying to replace an existing " + //$NON-NLS-1$
            "preference with a preference of a different type"); //$NON-NLS-1$
      }
      fDb.delete(savedPreference);
      fDb.ext().set(preference, Integer.MAX_VALUE);
    }
View Full Code Here

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

    fWriteLock.lock();
    try {
      fDb.delete(conditionalGet);
      fDb.commit();
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
  }
View Full Code Here

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

        // with this.
        fDb.activate(entity, Integer.MAX_VALUE);
        return entity;
      }
    } catch (Db4oException e) {
      throw new PersistenceException(e);
    }
    return null;
  }
View Full Code Here

      else
        fDb.set(entity);

      fDb.commit();
    } catch (Db4oException e)   {
      throw new PersistenceException(e);
    } finally {
      fWriteLock.unlock();
    }
  }
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.