package hello;

import java.sql.ResultSet;

/**
 * Class that selects from the database
 * @author Zach Panzarino
 * @version 1.0.0
 */
public class Selector extends Worker {
    /**
     * Creates a new Selector with a database connection
     * @param url The database URL
     * @param username The database username
     * @param password The database password
     */
    public Selector(String url, String username, String password){
        super(url, username, password);
    }
    /**
     * Select from database
     * @param select What to be selected
     * @param from What table to use
     * @return Results of executed query
     */
    public ResultSet select(String select, String from){
        String query = "SELECT `"+select+"` FROM  `"+from+"`";
        return execute(query);
    }
    /**
     * Select from database
     * @param select What to be selected
     * @param from What table to use
     * @param where Condition for selection
     * @return Results of executed query
     */
    public ResultSet select(String select, String from, String where){
        String query = "SELECT `"+select+"` FROM  `"+from+"` WHERE "+where;
        return execute(query);
    }
    /**
     * Select from database
     * @param select What to be selected
     * @param from What table to use
     * @param where Condition for selection
     * @param limit Limit for selection
     * @return Results of executed query
     */
    public ResultSet select(String select, String from, String where, String limit){
        String query = "SELECT `"+select+"` FROM  `"+from+"` WHERE "+where+" LIMIT "+limit;
        return execute(query);
    }
}
@@ -313,16 +313,46 @@
 sername%0A
+     * @author Jake Sylvestre%0A
      * @
@@ -388,16 +388,16 @@
 assword%0A
-
      */%0A
@@ -615,32 +615,62 @@
 at table to use%0A
+     * @author Jake Sylvestre%0A
      * @return R
@@ -859,32 +859,32 @@
 ;%0A    %7D%0A    /**%0A
-
      * Select fr
@@ -887,32 +887,62 @@
 t from database%0A
+     * @author Jake Sylvestre%0A
      * @param se
@@ -1742,8 +1742,9 @@
 %0A    %7D%0A%7D
+%0A

Update Selector.java