Examples of SqlExceptionHelper


Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

  }

  public void release() throws SQLException {
    // we only release the connection
    if ( connection != null ) {
      new SqlExceptionHelper().logAndClearWarnings( connection );
      if ( toggleAutoCommit ) {
        connection.setAutoCommit( false );
      }
      provider.closeConnection( connection );
      connection = null;
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

    Properties props = new Properties();
    props.putAll( dialect.getDefaultProperties() );
    props.putAll( properties );
    this.connectionHelper = new ManagedProviderConnectionHelper( props );

    this.sqlExceptionHelper = new SqlExceptionHelper();
    this.sqlStatementLogger = new SqlStatementLogger( false, true );
    this.formatter = FormatStyle.DDL.getFormatter();
  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

    final JdbcServices jdbcServices = serviceRegistry.getService( JdbcServices.class );
    this.dialect = jdbcServices.getDialect();
    this.connectionHelper = new SuppliedConnectionProviderConnectionHelper( jdbcServices.getConnectionProvider() );

    this.sqlExceptionHelper = new SqlExceptionHelper();
    this.sqlStatementLogger = jdbcServices.getSqlStatementLogger();
    this.formatter = ( sqlStatementLogger.isFormat() ? FormatStyle.DDL : FormatStyle.NONE ).getFormatter();
  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

        finally {
          rs.close();
        }
      }
      catch (SQLException sqlException) {
        throw new SqlExceptionHelper( sqlExceptionConverter )
            .convert( sqlException, "could not get table metadata: " + name );
      }
    }

  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

  }

  private void releaseConnection() throws SQLException {
    if ( connection != null ) {
      try {
        new SqlExceptionHelper().logAndClearWarnings( connection );
      }
      finally {
        try  {
          serviceRegistry.getService( ConnectionProvider.class ).closeConnection( connection );
        }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

      converter.addDelegate( dialect.buildSQLExceptionConversionDelegate() );
      converter.addDelegate( new SQLExceptionTypeDelegate( dialect ) );
      // todo : vary this based on extractedMetaDataSupport.getSqlStateType()
      converter.addDelegate( new SQLStateConversionDelegate( dialect ) );
    }
    this.sqlExceptionHelper = new SqlExceptionHelper( sqlExceptionConverter );
  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

            new LobCreatorBuilder( configValues, null ) :
            lobCreatorBuilder
    );

    this.sqlStatementLogger =  new SqlStatementLogger( showSQL, formatSQL );
    this.sqlExceptionHelper = new SqlExceptionHelper( dialect.buildSQLExceptionConverter() );
    this.extractedMetaDataSupport = new ExtractedDatabaseMetaDataImpl(
        metaSupportsScrollable,
        metaSupportsGetGeneratedKeys,
        metaSupportsBatchUpdates,
        metaReportsDDLInTxnSupported,
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

    Properties props = new Properties();
    props.putAll( dialect.getDefaultProperties() );
    props.putAll( properties );
    this.connectionHelper = new ManagedProviderConnectionHelper( props );

    this.sqlExceptionHelper = new SqlExceptionHelper();
    this.sqlStatementLogger = new SqlStatementLogger( false, true );
    this.formatter = FormatStyle.DDL.getFormatter();
  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

    final JdbcServices jdbcServices = serviceRegistry.getService( JdbcServices.class );
    this.dialect = jdbcServices.getDialect();
    this.connectionHelper = new SuppliedConnectionProviderConnectionHelper( jdbcServices.getConnectionProvider() );

    this.sqlExceptionHelper = new SqlExceptionHelper();
    this.sqlStatementLogger = jdbcServices.getSqlStatementLogger();
    this.formatter = ( sqlStatementLogger.isFormat() ? FormatStyle.DDL : FormatStyle.NONE ).getFormatter();
  }
View Full Code Here

Examples of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

    props.putAll( properties );
    this.connectionHelper = new ManagedProviderConnectionHelper( props );

    this.sqlStatementLogger = new SqlStatementLogger( false, true );
    this.formatter = FormatStyle.DDL.getFormatter();
    this.sqlExceptionHelper = new SqlExceptionHelper();

    this.importFiles = ConfigurationHelper.getString(
        AvailableSettings.HBM2DDL_IMPORT_FILES,
        properties,
        DEFAULT_IMPORT_FILE
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.