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, exportDatabaseToDBMSgetDatabaseIDByName, removeAGivenDB, removeAllRecordsForAGivenDB, removeDBpublic static MySQLExporter getInstance()
public java.sql.Connection connectToDB(DBStrings dbstrings) throws java.lang.Exception
DBExporterconnectToDB in class DBExporterdbstrings - The DBStrings to use to make the connectionjava.lang.Exceptionprotected void createTables(java.lang.Object out)
throws java.sql.SQLException
createTables in class DBExporterout - The output (PrintStream or Connection) object to which the DML
should be written.java.sql.SQLException