/* * JBoss, Home of Professional Open Source. * * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. * * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. */ package org.teiid.datatools.connectivity; import org.eclipse.datatools.connectivity.IConnection; import org.eclipse.datatools.connectivity.IConnectionFactory; import org.eclipse.datatools.connectivity.IConnectionProfile; /** * @since 8.0 */ public class TeiidJDBCConnectionFactory implements IConnectionFactory { @Override public IConnection createConnection(IConnectionProfile profile) { TeiidJDBCConnection connection = new TeiidJDBCConnection(profile, getClass()); connection.open(); return connection; } @Override public IConnection createConnection(IConnectionProfile profile, String uid, String pwd) { return createConnection(profile); } }