blob: af60b868061b7c8dd0f40a8a3198b0d8d850f4db [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.oracle;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;
import org.eclipse.osee.framework.database.core.IConnectionFactory;
public class OracleConnection implements IConnectionFactory {
private static final String driver = "oracle.jdbc.OracleDriver";
@Override
public Connection getConnection(Properties properties, String connectionURL) throws Exception {
Class.forName(driver);
Connection connection = DriverManager.getConnection(connectionURL, properties);
return connection;
}
@Override
public String getDriver() {
return driver;
}
}