Package org.hibernate.engine.jdbc.spi

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


      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

    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

    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

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

      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

    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

    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

    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

  public SchemaExport(Configuration configuration, Connection connection) throws HibernateException {
    this.connectionHelper = new SuppliedConnectionHelper( connection );

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

    this.importFiles = ConfigurationHelper.getString(
        AvailableSettings.HBM2DDL_IMPORT_FILES,
        configuration.getProperties(),
        DEFAULT_IMPORT_FILE
View Full Code Here

TOP

Related Classes of org.hibernate.engine.jdbc.spi.SqlExceptionHelper

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.