public static Runnable getConnectionKiller(DatabaseIdentifier databaseIdentifier, Connection conn) { ConnectionService service = getConnectionService(databaseIdentifier); if (service != null) { return service.getConnectionKiller(databaseIdentifier, conn); } return null; }
protected void initConnection(Connection connection) { //obtain the killer before execution to ensure we can get the connection id _connKiller = SQLToolsFacade.getConfiguration(null, _databaseIdentifier).getConnectionService().getConnectionKiller(_databaseIdentifier, connection); if (_needsInitConnection) { //MUST initialize this connection after getting the connection killer. IConnectionInitializer init = SQLToolsFacade.getConfiguration(null, _databaseIdentifier).getConnectionService().getConnectionInitializer(); if (init != null) { //if the configuration is null, will use the default options to initialize init.init(_databaseIdentifier, connection, getConfiguration()); } } }