void closeImpl() throws SQLException { jdbcLogger.logger.trace("Connection closeImpl: " + this); boolean release = false; boolean remove = false; synchronized (this) { if (useCount.decrementAndGet() == 0) { if (_poolingEnabled) { if (_transactionalDriverXAConnectionConnection != null) { _transactionalDriverXAConnectionConnection.setTransaction(null); } release = true; } else if (_transactionalDriverXAConnectionConnection != null) { if (_theConnection != null && !_theConnection.isClosed()) { _theConnection.close(); } _transactionalDriverXAConnectionConnection.closeCloseCurrentConnection(); remove = true; } } } if (remove) { ConnectionManager.remove(this); } else if (release) { ConnectionManager.release(this); } }
void closeImpl() throws SQLException { jdbcLogger.logger.trace("Connection closeImpl: " + this); boolean release = false; boolean remove = false; synchronized (this) { if (useCount.decrementAndGet() == 0) { if (_poolingEnabled) { if (_transactionalDriverXAConnectionConnection != null) { _transactionalDriverXAConnectionConnection.setTransaction(null); } release = true; } else if (_transactionalDriverXAConnectionConnection != null) { if (_theConnection != null && !_theConnection.isClosed()) { _theConnection.close(); } _transactionalDriverXAConnectionConnection.closeCloseCurrentConnection(); remove = true; } } } if (remove) { ConnectionManager.remove(this); } else if (release) { ConnectionManager.release(this); } }
void closeImpl() throws SQLException { jdbcLogger.logger.trace("Connection closeImpl: " + this); boolean release = false; boolean remove = false; synchronized (this) { if (useCount.decrementAndGet() == 0) { if (_poolingEnabled) { if (_transactionalDriverXAConnectionConnection != null) { _transactionalDriverXAConnectionConnection.setTransaction(null); } release = true; } else if (_transactionalDriverXAConnectionConnection != null) { if (_theConnection != null && !_theConnection.isClosed()) { _theConnection.close(); } _transactionalDriverXAConnectionConnection.closeCloseCurrentConnection(); remove = true; } } } if (remove) { ConnectionManager.remove(this); } else if (release) { ConnectionManager.release(this); } }
void closeImpl() throws SQLException { jdbcLogger.logger.trace("Connection closeImpl: " + this); boolean release = false; boolean remove = false; synchronized (this) { if (useCount.decrementAndGet() == 0) { if (_poolingEnabled) { if (_transactionalDriverXAConnectionConnection != null) { _transactionalDriverXAConnectionConnection.setTransaction(null); } release = true; } else if (_transactionalDriverXAConnectionConnection != null) { if (_theConnection != null && !_theConnection.isClosed()) { _theConnection.close(); } _transactionalDriverXAConnectionConnection.closeCloseCurrentConnection(); remove = true; } } } if (remove) { ConnectionManager.remove(this); } else if (release) { ConnectionManager.release(this); } }