Package org.hibernate

Examples of org.hibernate.JDBCException


        session.getBatcher().closeStatement( st );
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = JDBCExceptionHelper.convert(
          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
View Full Code Here


        session.getBatcher().closeStatement( st );
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = JDBCExceptionHelper.convert(
          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
View Full Code Here

            stmt.executeUpdate( formatted );
          }
        }
        catch ( SQLException e ) {
          if ( haltOnError ) {
            throw new JDBCException( "Error during DDL export", e );
          }
          exceptions.add( e );
                    LOG.unsuccessful(sql);
                    LOG.error(e.getMessage());
        }
View Full Code Here

                if (trimmedSql.endsWith(";")) trimmedSql = trimmedSql.substring(0, trimmedSql.length() - 1);
                LOG.debugf(trimmedSql);
                statement.execute(trimmedSql);
      }
      catch ( SQLException e ) {
        throw new JDBCException( "Error during import script execution at line " + lineNo, e );
      }
    }
  }
View Full Code Here

      try {
        execute( script, export, fileOutput, statement, createSQL[j] );
      }
      catch ( SQLException e ) {
        if ( haltOnError ) {
          throw new JDBCException( "Error during DDL export", e );
        }
        exceptions.add( e );
                LOG.unsuccessfulCreate(createSQL[j]);
                LOG.error(e.getMessage());
      }
View Full Code Here

  public final Dialect resolveDialect(DatabaseMetaData metaData) {
    try {
      return resolveDialectInternal( metaData );
    }
    catch ( SQLException sqlException ) {
      JDBCException jdbcException = BasicSQLExceptionConverter.INSTANCE.convert( sqlException );
            if (jdbcException instanceof JDBCConnectionException) throw jdbcException;
            LOG.warnf("%s : %s", BasicSQLExceptionConverter.MSG, sqlException.getMessage());
            return null;
    }
    catch ( Throwable t ) {
View Full Code Here

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( getLockable(), id, session.getFactory() ),
          sql
      );
      throw new PessimisticLockException( "could not obtain pessimistic lock", e, object );
View Full Code Here

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
View Full Code Here

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
View Full Code Here

        st.close();
      }

    }
    catch ( SQLException sqle ) {
      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( getLockable(), id, session.getFactory() ),
          sql
      );
      throw new PessimisticLockException( "could not obtain pessimistic lock", e, object );
View Full Code Here

TOP

Related Classes of org.hibernate.JDBCException

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.