Integrated the table factory to the mysql connection
This commit is contained in:
parent
ab81160ac4
commit
961778bb0e
@ -1,6 +1,7 @@
|
|||||||
package de.gnmyt.SQLToolkit.drivers;
|
package de.gnmyt.SQLToolkit.drivers;
|
||||||
|
|
||||||
import de.gnmyt.SQLToolkit.api.SQLConsumer;
|
import de.gnmyt.SQLToolkit.api.SQLConsumer;
|
||||||
|
import de.gnmyt.SQLToolkit.factory.TableFactory;
|
||||||
import de.gnmyt.SQLToolkit.manager.DataBaseSelection;
|
import de.gnmyt.SQLToolkit.manager.DataBaseSelection;
|
||||||
import de.gnmyt.SQLToolkit.manager.InsertManager;
|
import de.gnmyt.SQLToolkit.manager.InsertManager;
|
||||||
import de.gnmyt.SQLToolkit.manager.ResultManager;
|
import de.gnmyt.SQLToolkit.manager.ResultManager;
|
||||||
@ -27,6 +28,7 @@ public class MySQLConnection {
|
|||||||
private String tablePrefixVariable = "";
|
private String tablePrefixVariable = "";
|
||||||
private String connectString = "";
|
private String connectString = "";
|
||||||
private Connection con;
|
private Connection con;
|
||||||
|
private TableFactory tableFactory = new TableFactory(this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Basic constructor for the connection
|
* Basic constructor for the connection
|
||||||
@ -190,6 +192,14 @@ public class MySQLConnection {
|
|||||||
return new InsertManager(this, tableName);
|
return new InsertManager(this, tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the table factory
|
||||||
|
* @return the table factory
|
||||||
|
*/
|
||||||
|
public TableFactory getTableFactory() {
|
||||||
|
return tableFactory;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connect with your MySQL server
|
* Connect with your MySQL server
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user