Cleaned up code

This commit is contained in:
mathias 2021-08-19 21:16:55 +02:00
parent c77aaa413f
commit 8a16e172ad
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A
4 changed files with 6 additions and 2 deletions

View File

@ -141,6 +141,7 @@ public class MySQLConnection {
/**
* Gets the table generator
*
* @param tableName The name of the table
* @return the instance of the table generator
*/
@ -198,6 +199,7 @@ public class MySQLConnection {
/**
* Gets the deletion manager for easier deleting rows in a table
*
* @return the deletion manager
*/
public DeletionManager delete() {
@ -206,6 +208,7 @@ public class MySQLConnection {
/**
* Gets the deletion manager for easier deleting rows in a table
*
* @param tableName The name of the table you want to delete a row from
* @return the deletion manager
*/

View File

@ -14,7 +14,7 @@ public class DeletionManager {
private final MySQLConnection connection;
private final HashMap<String, Object> whereList;
private final ArrayList<Object> databaseParameters;
private ArrayList<String> optionalQuery;
private final ArrayList<String> optionalQuery;
private String tableName;
/**

View File

@ -15,7 +15,7 @@ public class SelectionManager {
private final MySQLConnection connection;
private final HashMap<String, Object> whereList;
private final ArrayList<Object> databaseParameters;
private ArrayList<String> optionalQuery;
private final ArrayList<String> optionalQuery;
private int limit;
private String tableName;

View File

@ -146,6 +146,7 @@ public abstract class SQLTable {
/**
* Gets the deletion manager of the current table
*
* @return the deletion manager
*/
public DeletionManager delete() {