Cleaned up code
This commit is contained in:
parent
c77aaa413f
commit
8a16e172ad
@ -141,6 +141,7 @@ public class MySQLConnection {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the table generator
|
* Gets the table generator
|
||||||
|
*
|
||||||
* @param tableName The name of the table
|
* @param tableName The name of the table
|
||||||
* @return the instance of the table generator
|
* @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
|
* Gets the deletion manager for easier deleting rows in a table
|
||||||
|
*
|
||||||
* @return the deletion manager
|
* @return the deletion manager
|
||||||
*/
|
*/
|
||||||
public DeletionManager delete() {
|
public DeletionManager delete() {
|
||||||
@ -206,6 +208,7 @@ public class MySQLConnection {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the deletion manager for easier deleting rows in a table
|
* 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
|
* @param tableName The name of the table you want to delete a row from
|
||||||
* @return the deletion manager
|
* @return the deletion manager
|
||||||
*/
|
*/
|
||||||
|
@ -14,7 +14,7 @@ public class DeletionManager {
|
|||||||
private final MySQLConnection connection;
|
private final MySQLConnection connection;
|
||||||
private final HashMap<String, Object> whereList;
|
private final HashMap<String, Object> whereList;
|
||||||
private final ArrayList<Object> databaseParameters;
|
private final ArrayList<Object> databaseParameters;
|
||||||
private ArrayList<String> optionalQuery;
|
private final ArrayList<String> optionalQuery;
|
||||||
private String tableName;
|
private String tableName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ public class SelectionManager {
|
|||||||
private final MySQLConnection connection;
|
private final MySQLConnection connection;
|
||||||
private final HashMap<String, Object> whereList;
|
private final HashMap<String, Object> whereList;
|
||||||
private final ArrayList<Object> databaseParameters;
|
private final ArrayList<Object> databaseParameters;
|
||||||
private ArrayList<String> optionalQuery;
|
private final ArrayList<String> optionalQuery;
|
||||||
private int limit;
|
private int limit;
|
||||||
private String tableName;
|
private String tableName;
|
||||||
|
|
||||||
|
@ -146,6 +146,7 @@ public abstract class SQLTable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the deletion manager of the current table
|
* Gets the deletion manager of the current table
|
||||||
|
*
|
||||||
* @return the deletion manager
|
* @return the deletion manager
|
||||||
*/
|
*/
|
||||||
public DeletionManager delete() {
|
public DeletionManager delete() {
|
||||||
|
Reference in New Issue
Block a user