public void abort(Executor executor) throws SQLException { if (closed) { return; } //TODO: ensure that threads are released. In theory they will be since close effectively cancels current executions close(); }
@Override public void close() throws SQLException { if (this.connection != null) { this.connection.close(); } }
public void abort(Executor executor) throws SQLException { if (closed) { return; } //TODO: ensure that threads are released. In theory they will be since close effectively cancels current executions close(); }
@Override public void close() throws SQLException { if (this.connection != null) { this.connection.close(); } }
public void close()throws SQLException{ if(connection != null && !connection.isClosed()){ connection.close(); } isClosed = true; }
public void close()throws SQLException{ if(connection != null && !connection.isClosed()){ connection.close(); } isClosed = true; }
private void addStatement(StatementImpl newStatement) throws SQLException { if (statements.size() >= MAX_OPEN_STATEMENTS) { this.close(); throw new TeiidSQLException(JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20036, MAX_OPEN_STATEMENTS)); } statements.add(newStatement); }
private void addStatement(StatementImpl newStatement) throws SQLException { if (statements.size() >= MAX_OPEN_STATEMENTS) { this.close(); throw new TeiidSQLException(JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20036, MAX_OPEN_STATEMENTS)); } statements.add(newStatement); }
@Override public void terminate() { remotes.remove(this.secretKey); closePortals(); this.preparedMap.clear(); try { if (this.connection != null) { if (!this.connection.getAutoCommit()) { this.connection.rollback(false); } this.connection.close(); } } catch (SQLException e) { //ignore } this.client.terminated(); }