Best code examples for Hibernate ORM SqlExceptionHelper class (org.hibernate.engine.jdbc.spi.SqlExceptionHelper)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM SqlExceptionHelper class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM SqlExceptionHelper examples from Open Source projects
This code example shows how to use the following methods:
 
    @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;
        } 
    } 
} 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: logAndClearWarnings
This code example shows how to use the following methods: logAndClearWarnings
 
	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;
		} 
	} 
} 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: logAndClearWarnings
	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 release() throws Exception { 
		try { 
			statement.close(); 
		} 
		finally { 
			connectionHelper.release(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: convert
			if (lastQuery != null) { 
				lastQuery.cancel(); 
			} 
		} 
		catch (SQLException sqle) { 
			throw exceptionHelper.convert( 
			        sqle, 
			        "Cannot cancel query" 
				); 
		} 
		finally { 
			lastQuery = null; 
		} 
	} 
 
	public void release(Statement statement) { 
		LOG.tracev( "Releasing statement [{0}]", statement ); 
		Set<ResultSet> resultSets = xref.get( statement ); 
		if ( resultSets != null ) { 
			for ( ResultSet resultSet : resultSets ) { 
Full Snippet Info
4
CodeRank
See Code Examples for Hibernate ORM SqlExceptionHelper Methods: