/** * Returns a connection for caller to use. By default there's no connection pool associated with a connection * profile and this method just ignore the usePool parameter and delegates to {@link #createConnection(String, String)}. * Vendors who has the requirement to use connection pool may override this method. * @param databaseIdentifier the database identifier * @param usePool whether to retrieve the connection from connection pool. * @return a <code>Connection</code> instance * @throws SQLException if database error occurs */ public Connection createConnection(DatabaseIdentifier databaseIdentifier, boolean usePool) throws SQLException, NoSuchProfileException { return createConnection(databaseIdentifier.getProfileName(), databaseIdentifier.getDBname()); } /**
public Connection createConnection(String[] connId) throws SQLException, CoreException, NoSuchProfileException { // using connection pool for debugging may produce unexpected results SQLDevToolsConfiguration f = SQLToolsFacade .getConfigurationByProfileName(getDatabaseIdentifier() .getProfileName()); ConnectionService conService = f.getConnectionService(); Connection con = conService.createConnection(getDatabaseIdentifier() .getProfileName(), getDatabaseIdentifier().getDBname()); if (connId != null && connId.length == 1) { connId[0] = "0"; } return con; }
.getProfileName()); ConnectionService conService = f.getConnectionService(); debuggeeCon = conService.createConnection(controlCon .getDatabaseIdentifier().getProfileName(), controlCon .getDatabaseIdentifier().getDBname());
_conn = SQLToolsFacade.getConnectionService(getDatabaseIdentifier()).createConnection( getDatabaseIdentifier(), true);
Connection conn = conService.createConnection( _databaseIdentifier, true); if(conn == null)