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); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
private ConnectionManager connectionManager = new ConnectionManager(); connectionManager.remove((ShapeConnection) shape); List<ShapeConnection> connections = connectionManager.getConnections(shape); for (ShapeConnection connection : connections) { if (connection instanceof Shape) { this.removeShape((Shape) connection); } else { connectionManager.remove(connection); throw new Error("cannot connect unknown shapes"); connectionManager.add(shapeConnection);
ConnectionManager.remove(this); // finalize?
&& isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, connControl)) if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount();
ConnectionManager.remove(this); // finalize?
&& isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, connControl)) if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount();
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); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
ConnectionManager.remove(this); // finalize?
&& isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, connControl)) if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount();
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); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
&& isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, connControl)) if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount();
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); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("TransactionalDriver.connect ( " + url + " )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }
public Connection connect (String url, Properties info) throws SQLException { if (jdbcLogger.logger.isDebugEnabled()) { jdbcLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jdbc.logging.FacilityCode.FAC_JDBC, "TransactionalDriver.connect ( "+url+" )"); } if (!url.startsWith(TransactionalDriver.arjunaDriver)) { return null; } else { return ConnectionManager.create(url.substring(TransactionalDriver.arjunaDriver.length()), info); } }