public class MySQLExporter extends DBExporter
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
connectToDB(DBStrings dbstrings)
Given a DBStrings it connects to the DB and returns the
java.sql.Connection object
|
protected void |
createTables(java.lang.Object out)
Generates SQLnecessary to create all tables in a MySQL database, and
writes it to appropriate output.
|
static MySQLExporter |
getInstance() |
exportDatabaseAsFile, exportDatabaseToDBMS
getDatabaseIDByName, removeAGivenDB, removeAllRecordsForAGivenDB, removeDB
public static MySQLExporter getInstance()
public java.sql.Connection connectToDB(DBStrings dbstrings) throws java.lang.Exception
DBExporter
connectToDB
in class DBExporter
dbstrings
- The DBStrings to use to make the connectionjava.lang.Exception
protected void createTables(java.lang.Object out) throws java.sql.SQLException
createTables
in class DBExporter
out
- The output (PrintStream or Connection) object to which the DML
should be written.java.sql.SQLException