Here you can find the source of getConnection()
public static Connection getConnection()
//package com.java2s; //License from project: Open Source License import java.sql.Connection; import java.sql.DriverManager; public class Main { public static Connection getConnection() { Connection con = null;// w ww . j av a2 s . co m try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch (ClassNotFoundException e) { //LOG to be written e.printStackTrace(); } try { con = DriverManager.getConnection("jdbc:oracle:thin:@hstslc015:1521:elp", "", ""); } catch (Exception e) { //LOG to be written e.printStackTrace(); } return con; } }