@@ -0,0 +1,946 @@
+import java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.SQLException;%0A%0A%0Apublic class ConnectionManager %7B%0A%09%0A%09%0A%09private static ConnectionManager instance;%0A%09%0A%09private ConnectionManager() throws ClassNotFoundException %7B%0A%09%09%0A%09%09%0A%09%09Class.forName(%22oracle.jdbc.driver.OracleDriver%22);%0A%09%7D%0A%09public static ConnectionManager getInstance() throws SQLException%7B%0A%09%09%0A%09%09try%7B%0A%09%09%09if(instance == null)%7B%0A%09%09%09%09instance = new ConnectionManager();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09catch(ClassNotFoundException e)%7B%0A%09%09%09%0A%09%09%09throw new SQLException(%22Driver n%C3%A3o encontrado%22);%0A%09%09%7D%0A%09%09return instance;%0A%09%0A%09%7D%0A%09%0A%09public Connection getConnection() throws SQLException%7B%0A%09%09%0A%09%09String user = %22OPS$RM70019%22;%0A%09%09String jdbcUrl = %22jdbc:oracle:thin:@localhost:1521:XE%22;%0A%09%09String senha = %22xxx%22;%0A%09%09try%7B%0A%09%09%09%0A%09%09%09return DriverManager.getConnection(jdbcUrl,user,senha);%0A%09%09%7D%0A%09%09catch (SQLException e)%7B%0A%09%09%09e.printStackTrace();%0A%09%09%09throw new SQLException(%22Erro ao abrir conex%C3%A3o com o banco%22);%0A%09%09%7D%0A%09%09%0A%09%7D%0A%09 %0A%09%0A%7D%0A

Create ConnectionManager.java