public void close() throws KettleDatabaseException { try { if ( result != null ) { result.close(); } if ( olapConnection != null ) { olapConnection.close(); } } catch ( Exception e ) { throw new KettleDatabaseException( "Error closing connection" ); } }
public void close() throws SQLException { cellSet.getStatement().getConnection().close(); }
if (connection != null && ourConnection) { try { connection.close(); } catch (SQLException e) {
/** * @see org.pivot4j.datasource.CloseableDataSource#close() */ @Override public void close() throws SQLException { connection.close(); } }
/** * @param connection * @throws SQLException */ protected void closeConnection(OlapConnection connection) throws SQLException { connection.close(); }
connection.close(); } catch (SQLException e) {
connection.close(); } catch (SQLException e) {
/** * @see org.apache.commons.pool.BasePoolableObjectFactory#destroyObject(java. * lang.Object) */ @Override public void destroyObject(OlapConnection con) { try { super.destroyObject(con); if (logger.isDebugEnabled()) { logger.debug("Closing a returned OLAP connection."); } con.close(); } catch (Exception e) { throw new PivotException(e); } }
/** * @see org.pivot4j.datasource.OlapConnectionFactory#destroyObject(org * .olap4j.OlapConnection) */ @Override public void destroyObject(OlapConnection con) { if (logger.isDebugEnabled()) { logger.debug("Closing a returned connection object : {}", con); } try { con.unwrap(OlapConnection.class).close(); } catch (SQLException e) { throw new PivotException(e); } } }
if (connection != null) { try { connection.close(); } catch (SQLException e) { throw new PivotException(e);