Integrated the table factory to the mysql connection

This commit is contained in:
mathias 2021-08-19 16:43:26 +02:00
parent ab81160ac4
commit 961778bb0e
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -1,6 +1,7 @@
package de.gnmyt.SQLToolkit.drivers;
import de.gnmyt.SQLToolkit.api.SQLConsumer;
import de.gnmyt.SQLToolkit.factory.TableFactory;
import de.gnmyt.SQLToolkit.manager.DataBaseSelection;
import de.gnmyt.SQLToolkit.manager.InsertManager;
import de.gnmyt.SQLToolkit.manager.ResultManager;
@ -27,6 +28,7 @@ public class MySQLConnection {
private String tablePrefixVariable = "";
private String connectString = "";
private Connection con;
private TableFactory tableFactory = new TableFactory(this);
/**
* Basic constructor for the connection
@ -190,6 +192,14 @@ public class MySQLConnection {
return new InsertManager(this, tableName);
}
/**
* Gets the table factory
* @return the table factory
*/
public TableFactory getTableFactory() {
return tableFactory;
}
/**
* Connect with your MySQL server
*