@@ -0,0 +1,1163 @@
+/*%0A   Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.%0A   SPDX-License-Identifier: Apache-2.0%0A*/%0A%0Apackage com.aws.jdbc;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.SQLException;%0A%0Apublic class ConnectionHelper %7B%0A%0A    private String url;%0A%0A    private static ConnectionHelper instance;%0A%0A    private ConnectionHelper() %7B%0A        url = %22jdbc:mysql://localhost:3306/mydb%22;%0A    %7D%0A%0A%0A    public static Connection getConnection() throws SQLException %7B%0A        if (instance == null) %7B%0A            instance = new ConnectionHelper();%0A        %7D%0A        try %7B%0A%0A            Class.forName(%22com.mysql.jdbc.Driver%22).newInstance();%0A            return DriverManager.getConnection(instance.url, %22root%22,%22root1234%22);%0A        %7D catch (SQLException %7C ClassNotFoundException %7C InstantiationException %7C IllegalAccessException e) %7B%0A            e.getStackTrace();%0A        %7D%0A        return null;%0A    %7D%0A    public static void close(Connection connection) %7B%0A        try %7B%0A            if (connection != null) %7B%0A                connection.close();%0A            %7D%0A        %7D catch (SQLException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Create ConnectionHelper.java