Examples of JDBCException


Examples of org.hibernate.JDBCException

      final NClob nclob = createNClob();
      nclob.setString( 1, string );
      return nclob;
    }
    catch ( SQLException e ) {
      throw new JDBCException( "Unable to set NCLOB string after creation", e );
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

  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;
      }
      else {
        log.warn( BasicSQLExceptionConverter.MSG + " : " + sqlException.getMessage() );
View Full Code Here

Examples of org.hibernate.JDBCException

          log.debug( trimmedSql );
          statement.execute( trimmedSql );
        }
      }
      catch ( SQLException e ) {
        throw new JDBCException( "Error during import script execution at line " + lineNo, e );
      }
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

      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.error( "Unsuccessful: " + createSQL[j] );
        log.error( e.getMessage() );
      }
View Full Code Here

Examples of org.hibernate.JDBCException

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

Examples of org.hibernate.JDBCException

          log.debug( trimmedSql );
          statement.execute( trimmedSql );
        }
      }
      catch ( SQLException e ) {
        throw new JDBCException( "Error during import script execution", e );
      }
    }
  }
View Full Code Here

Examples of org.hibernate.JDBCException

      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.error( "Unsuccessful: " + createSQL[j] );
        log.error( e.getMessage() );
      }
View Full Code Here

Examples of org.hibernate.JDBCException

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

Examples of org.hibernate.JDBCException

        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

Examples of org.hibernate.JDBCException

        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
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.