Cleaned up some code
This commit is contained in:
parent
e8544ff761
commit
264d33db4f
@ -23,12 +23,11 @@ public class MySQLConnection {
|
||||
private final String username;
|
||||
private final String password;
|
||||
private final String database;
|
||||
|
||||
private final TableFactory tableFactory = new TableFactory(this);
|
||||
private String tablePrefix = "";
|
||||
private String tablePrefixVariable = "";
|
||||
private String connectString = "";
|
||||
private Connection con;
|
||||
private final TableFactory tableFactory = new TableFactory(this);
|
||||
|
||||
/**
|
||||
* Basic constructor for the connection
|
||||
|
@ -8,8 +8,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
public class InsertManager {
|
||||
|
||||
private final MySQLConnection connection;
|
||||
private String tableName;
|
||||
private final HashMap<String, Object> values;
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* Basic constructor for the InsertManager
|
||||
|
@ -130,6 +130,7 @@ public class ResultManager {
|
||||
|
||||
/**
|
||||
* Checks if the current result exists
|
||||
*
|
||||
* @return <code>true</code> if the current result exists, otherwise <code>false</code>
|
||||
*/
|
||||
public boolean exists() {
|
||||
|
@ -13,9 +13,9 @@ public class UpdateManager {
|
||||
private final Logger LOG = MySQLConnection.LOG;
|
||||
|
||||
private final MySQLConnection connection;
|
||||
private String tableName;
|
||||
private final HashMap<String, Object> whereList;
|
||||
private final HashMap<String, Object> setList;
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* Basic constructor for the UpdateManager
|
||||
|
@ -118,6 +118,7 @@ public abstract class SQLTable {
|
||||
|
||||
/**
|
||||
* Gets the database selection from the current the table
|
||||
*
|
||||
* @return the database selection
|
||||
*/
|
||||
public DataBaseSelection select() {
|
||||
@ -126,6 +127,7 @@ public abstract class SQLTable {
|
||||
|
||||
/**
|
||||
* Gets the update manager of the current table
|
||||
*
|
||||
* @return the update manager
|
||||
*/
|
||||
public UpdateManager update() {
|
||||
@ -134,6 +136,7 @@ public abstract class SQLTable {
|
||||
|
||||
/**
|
||||
* Gets the insert manager of the current table
|
||||
*
|
||||
* @return the insert manager
|
||||
*/
|
||||
public InsertManager insert() {
|
||||
|
Reference in New Issue
Block a user