package Database;


public enum Config {

    USERNAME("root"),
    PASSWORD("codeKenn"),
    URL("jdbc:mysql://localhost:3306"),
    DATABASE("reactiondb"),
    TABLE("reactions");

    private String CONSTANT;

    private Config(String CONSTANT){
        this.CONSTANT = CONSTANT;
    }

    @Override
    public String toString() {
        return CONSTANT;
    }
}

@@ -16,201 +16,602 @@
 e;%0A%0A
-%0Apublic enum Config %7B%0A%0A    USERNAME(%22root%22),%0A    PASSWORD(%22codeKenn%22),%0A    URL(%22jdbc:mysql://localhost:3306%22),%0A    DATABASE(%22reactiondb%22),%0A    TABLE(%22reactions%22);%0A%0A    private String CONSTANT;%0A
+/**%0A * This class stores a MySQL credential constants%0A */%0Apublic enum Config %7B%0A%0A    /**%0A     * Username to MySQL database%0A     */%0A    USERNAME(%22root%22),%0A%0A    /**%0A     * Password to MySQL database%0A     */%0A    PASSWORD(%22codeKenn%22),%0A%0A    /**%0A     * Location to MySQL database%0A     */%0A    URL(%22jdbc:mysql://localhost:3306%22),%0A%0A    /**%0A     * MySQL database to establish connection%0A     */%0A    DATABASE(%22reactiondb%22),%0A%0A    /**%0A     * MySQL table to query%0A     */%0A    TABLE(%22reactions%22);%0A%0A    private String CONSTANT;%0A%0A    /**%0A     * Construct this class%0A     *%0A     * @param CONSTANT to be set%0A     */
 %0A   

Refactor Config clas