Examples of PersistenceException


Examples of org.enhydra.shark.api.internal.instancepersistence.PersistenceException

    public void persist(AssignmentPersistenceInterface assignmentpersistenceinterface, boolean flag, SharkTransaction sharktransaction) throws PersistenceException {
        try {
            ((Assignment) assignmentpersistenceinterface).store();
        } catch (GenericEntityException e) {
            throw new PersistenceException(e);
        }
    }
View Full Code Here

Examples of org.exolab.castor.jdo.PersistenceException

    public Object getValue(final PreparedStatement stmt)
    throws PersistenceException, SQLException {
        ResultSet rs = stmt.executeQuery();
        if (rs.next()) { return _sqlTypeHandler.getValue(rs); }
        String msg = Messages.format("persist.keyGenFailed", _keyGenerator.getClass().getName());
        throw new PersistenceException(msg);
    }
View Full Code Here

Examples of org.exolab.jms.persistence.PersistenceException

            if (_connection.getAutoCommit()) {
                _connection.setAutoCommit(false);
            }
            _tool = new RDBMSTool(_connection);
        } catch (SQLException exception) {
            throw new PersistenceException(exception.getMessage());
        }

        try {
            convertMessagesTable(schema);
            convertHandlesTable(schema);
            createUsersTable(schema);
            SchemaHelper.setVersion(_connection, "V0.7.6");
            _connection.commit();
        } catch (PersistenceException exception) {
            SQLHelper.rollback(_connection);
            throw exception;
        } catch (SQLException exception) {
            SQLHelper.rollback(_connection);
            throw new PersistenceException(exception);
        }
    }
View Full Code Here

Examples of org.flexdock.docking.state.PersistenceException

            DOMSource source = new DOMSource(document);
            StreamResult result = new StreamResult(new OutputStreamWriter(os));

            transformer.transform(source, result);
        } catch (TransformerConfigurationException ex) {
            throw new PersistenceException("Unable to serialize perspectiveModel", ex);
        } catch (TransformerException ex) {
            throw new PersistenceException("Unable to serialize perspectiveModel", ex);
        }

        return true;
    }
View Full Code Here

Examples of org.infinispan.persistence.spi.PersistenceException

      assertNotNull(cacheName, "cacheName needed in order to create table");
   }

   private void assertNotNull(String keyColumnType, String message) throws PersistenceException {
      if (keyColumnType == null || keyColumnType.trim().length() == 0) {
         throw new PersistenceException(message);
      }
   }
View Full Code Here

Examples of org.objectweb.perseus.persistence.api.PersistenceException

            } else if (e.getCause() != null) {
                ne = new JDOUserException(e.getMessage(), e.getCause());
            } else {
                ne = new JDOUserException(e.getMessage());
            }
            throw new PersistenceException(ne);
        }
    }
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceException

   * @return The exception
   */
  protected PersistenceException createLoggedException(Throwable cause)
  {
    String msg = LogUtil.error(getClass(), "Persistence error.", cause);
    return new PersistenceException(msg, cause);
  }
View Full Code Here

Examples of org.openengsb.core.api.persistence.PersistenceException

        if (storageFile.exists()) {
            try {
                return FileUtils.readLines(storageFile);
            } catch (IOException e) {
                LOGGER.error("Error reading \"{}\"", storageFile);
                throw new PersistenceException(e);
            }
        }
        return new ArrayList<String>();
    }
View Full Code Here

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

      query.descend("fFeedId").constrain(feed.getId()); //$NON-NLS-1$
      ObjectSet<IBookMark> marks = query.execute();
      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

      query.descend("fParent").constrain(null); //$NON-NLS-1$
      ObjectSet<IFolder> folders = query.execute();
      activateAll(folders);
      return new ArrayList<IFolder>(folders);
    } 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.