Hibernate ORM SqlExceptionHelper - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM SqlExceptionHelper class.

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
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: logAndClearWarnings
		return connection;
	} 
 
	public void release() throws SQLException {
		new SqlExceptionHelper().logAndClearWarnings( connection );
		if ( toggleAutoCommit ) {
			connection.setAutoCommit( false );
		} 
		connection = null;
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
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
Stop searching for code, let great code find you!  Add Codota to your java IDE
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
Stop searching for code, let great code find you!  Add Codota to your java IDE
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
Stop searching for code, let great code find you!  Add Codota to your java IDE
See Code Examples for Hibernate ORM SqlExceptionHelper Methods: