Examples of DatabaseException


Examples of de.spotnik.persistence.DatabaseException

    {
        List result = q.list();
       
        if( result.size() > 1)
        {
            throw new DatabaseException("expected a single result only!");
        }
        else if( result.size() == 0)
        {
            return null;
        }
View Full Code Here

Examples of de.xore.util.persistence.DatabaseException

      sessionFactory = annotationConfiguration.buildSessionFactory();
    }

    session = sessionFactory.openSession();
    if ( session == null ) {
      throw new DatabaseException( "could not create session" );
    }
    return session;
  }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.exceptions.DatabaseException

        throw e;
      }
      catch(Exception e)
      {
        logger.log(Level.WARNING, "ProjectManager.update() had a failure in the changeset mapper.");
        throw new DatabaseException("Failure in the ProjectManager.update() changeset mapper."); // on Mapping failure
      }
     
      // save the changes back
      this.save(s, toUpdate);
     
View Full Code Here

Examples of fi.evident.dalesbred.DatabaseException

        }
    }

    @Override
    protected <T> T withSuspendedTransaction(@NotNull TransactionCallback<T> callback, @NotNull Isolation isolation, @NotNull Dialect dialect, int retries) {
        throw new DatabaseException("SingleConnectionTransactionManager does not support Suspended transactions.");
    }
View Full Code Here

Examples of helma.objectmodel.DatabaseException

     *
     * @throws Exception ...
     */
    public synchronized void begin(String name) throws Exception {
        if (killed) {
            throw new DatabaseException("Transaction started on killed thread");
        } else if (active) {
            abort();
        }

        dirtyNodes.clear();
View Full Code Here

Examples of helma.objectmodel.DatabaseException

     *
     * @throws Exception ...
     */
    public synchronized void commit() throws Exception {
        if (killed) {
            throw new DatabaseException("commit() called on killed transactor thread");
        } else if (!active) {
            return;
        }
        int inserted = 0;
        int updated = 0;
View Full Code Here

Examples of liquibase.exception.DatabaseException

                        //ok
                    }
                    statement.close();
                    database.commit();
                } catch (SQLException e) {
                    throw new DatabaseException(e);
                }
            }
        }
    }
View Full Code Here

Examples of net.canarymod.database.exceptions.DatabaseException

    public static class Type {
        private static HashMap<String, Database> registeredDatabases = new HashMap<String, Database>();

        public static void registerDatabase(String name, Database db) throws DatabaseException {
            if (registeredDatabases.containsKey(name)) {
                throw new DatabaseException(name + " cannot be registered. Type already exists");
            }
            registeredDatabases.put(name, db);
        }
View Full Code Here

Examples of net.pterodactylus.sone.database.DatabaseException

      for (String knownPostId : knownPosts) {
        configuration.getStringValue("KnownPosts/" + postCounter++ + "/ID").setValue(knownPostId);
      }
      configuration.getStringValue("KnownPosts/" + postCounter + "/ID").setValue(null);
    } catch (ConfigurationException ce1) {
      throw new DatabaseException("Could not save database.", ce1);
    } finally {
      lock.readLock().unlock();
    }
  }
View Full Code Here

Examples of org.cruxframework.crux.core.client.db.DatabaseException

      DBMessages messages = GWT.create(DBMessages.class);
      if (LogConfiguration.loggingIsEnabled())
      {
        logger.log(Level.SEVERE, messages.databaseOpenError(name, e.getMessage()), e);
      }
      throw new DatabaseException(messages.databaseOpenError(name, e.getMessage()), 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.