@@ -0,0 +1,1296 @@
+package com.grouper.app;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.DriverManager;%0Aimport java.sql.ResultSet;%0Aimport java.sql.Statement;%0Aimport java.sql.SQLException;%0A%0A/**%0A * Class that interacts with the database%0A * @author Zach Panzarino%0A * @version 1.0.0%0A */%0Apublic class Worker %7B%0A    Connection conn;%0A    /**%0A     * Created a new Worker with a database connection%0A     * @param url The database URL%0A     * @param username The database username%0A     * @param password The database password%0A     */%0A    public Worker(String url, String username, String password)%7B%0A        try %7B%0A            conn = DriverManager.getConnection(url, username, password);%0A        %7D catch (SQLException ex) %7B%0A            // handle any errors%0A            System.out.println(%22SQLException: %22 + ex.getMessage());%0A            System.out.println(%22SQLState: %22 + ex.getSQLState());%0A            System.out.println(%22VendorError: %22 + ex.getErrorCode());%0A        %7D%0A    %7D%0A    /**%0A     * Execute an SQL statement with database%0A     * @param statement The SQL statement to be executed%0A     * @return Results of executed query%0A     */%0A    public ResultSet execute(String statement)%7B%0A        Statement stmt = conn.createStatement();%0A        ResultSet rs = stmt.executeQuery(query);%0A        stmt.close();%0A        return rs;%0A    %7D%0A%7D

Add worker