public void release() throws SQLException { sqlExceptionHelper.logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } connection = null; } }
public void release() throws SQLException { // we only release the connection if ( connection != null ) { sqlExceptionHelper.logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } provider.closeConnection( connection ); connection = null; } } }
@Override public void export(String string) throws Exception { statement.executeUpdate( string ); try { SQLWarning warnings = statement.getWarnings(); if ( warnings != null) { sqlExceptionHelper.logAndClearWarnings( connection ); } } catch( SQLException e ) { LOG.unableToLogSqlWarnings( e ); } }
private void releaseConnection() throws SQLException { if ( connection != null ) { try { serviceRegistry.getService( JdbcEnvironment.class ).getSqlExceptionHelper().logAndClearWarnings( connection ); } finally { try { serviceRegistry.getService( ConnectionProvider.class ).closeConnection( connection ); } finally { connection = null; } } } }
private void releaseConnection() { if ( physicalConnection == null ) { return; } // todo : is this the right place for these observer calls? observer.jdbcConnectionReleaseStart(); try { if ( !physicalConnection.isClosed() ) { sqlExceptionHelper.logAndClearWarnings( physicalConnection ); } jdbcConnectionAccess.releaseConnection( physicalConnection ); } catch (SQLException e) { throw sqlExceptionHelper.convert( e, "Unable to release JDBC Connection" ); } finally { observer.jdbcConnectionReleaseEnd(); physicalConnection = null; getResourceRegistry().releaseResources(); } }
sqlExceptionHelper().logAndClearWarnings( statement );
@Override public void accept(String command) { ddlTransactionIsolator.getJdbcContext().getSqlStatementLogger().logStatement( command, DDLFormatterImpl.INSTANCE ); try { final Statement jdbcStatement = jdbcStatement(); jdbcStatement.execute( command ); try { SQLWarning warnings = jdbcStatement.getWarnings(); if ( warnings != null) { ddlTransactionIsolator.getJdbcContext().getSqlExceptionHelper().logAndClearWarnings( jdbcStatement ); } } catch( SQLException e ) { log.unableToLogSqlWarnings( e ); } } catch (SQLException e) { throw new CommandAcceptanceException( "Error executing DDL \"" + command + "\" via JDBC Statement", e ); } }
public void release() throws SQLException { sqlExceptionHelper.logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } connection = null; } }
public void release() throws SQLException { // we only release the connection if ( connection != null ) { sqlExceptionHelper.logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } provider.closeConnection( connection ); connection = null; } } }
public void release() throws SQLException { new SqlExceptionHelper().logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } connection = null; } }
public void release() throws SQLException { new SqlExceptionHelper().logAndClearWarnings( connection ); if ( toggleAutoCommit ) { connection.setAutoCommit( false ); } connection = null; } }
@Override public void export(String string) throws Exception { statement.executeUpdate( string ); try { SQLWarning warnings = statement.getWarnings(); if ( warnings != null) { sqlExceptionHelper.logAndClearWarnings( connection ); } } catch( SQLException e ) { LOG.unableToLogSqlWarnings( e ); } }
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; } } }
@Override public void export(String string) throws Exception { statement.executeUpdate( string ); try { SQLWarning warnings = statement.getWarnings(); if ( warnings != null) { sqlExceptionHelper.logAndClearWarnings( connection ); } } catch( SQLException e ) { LOG.unableToLogSqlWarnings( e ); } }
@Override public void export(String string) throws Exception { statement.executeUpdate( string ); try { SQLWarning warnings = statement.getWarnings(); if ( warnings != null) { sqlExceptionHelper.logAndClearWarnings( connection ); } } catch( SQLException e ) { LOG.unableToLogSqlWarnings( e ); } }
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; } } }
@Override 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; } } }
private void releaseConnection() throws SQLException { if (connection != null) { try { new SqlExceptionHelper().logAndClearWarnings(connection); } finally { try { serviceRegistry.getService(ConnectionProvider.class).closeConnection(connection); } finally { connection = null; } } } }
private void releaseConnection() throws SQLException { if ( connection != null ) { try { new SqlExceptionHelper().logAndClearWarnings( connection ); } finally { try { serviceRegistry.getService( ConnectionProvider.class ).closeConnection( connection ); } finally { connection = null; } } } }
private void releaseConnection() throws SQLException { if ( connection != null ) { try { serviceRegistry.getService( JdbcEnvironment.class ).getSqlExceptionHelper().logAndClearWarnings( connection ); } finally { try { serviceRegistry.getService( ConnectionProvider.class ).closeConnection( connection ); } finally { connection = null; } } } }