public abstract class ScriptGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
backupPath |
protected java.util.List<java.lang.String> |
backupTableList |
protected java.lang.String |
databaseName |
protected java.util.List<java.lang.String> |
deleteTableList |
protected java.lang.String |
mysqlCommand |
protected java.lang.String |
mysqlDumpCommand |
protected java.lang.StringBuilder |
script |
Constructor and Description |
---|
ScriptGenerator(Setup setup,
java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
addBackupTable(java.lang.String tableName) |
protected abstract void |
addBackupTables() |
void |
addDeleteTable(java.lang.String tableName) |
protected abstract void |
addDeleteTables() |
protected abstract void |
addScriptHeader() |
java.lang.String |
getScript() |
void |
setBackupPath(java.lang.String backupPath) |
void |
setMysqlCommand(java.lang.String mysqlBinPath) |
void |
setMysqlDumpCommand(java.lang.String mysqlDumpCommand) |
protected java.lang.StringBuilder script
protected java.util.List<java.lang.String> backupTableList
protected java.util.List<java.lang.String> deleteTableList
protected java.lang.String mysqlCommand
protected java.lang.String mysqlDumpCommand
protected java.lang.String backupPath
protected java.lang.String databaseName
public ScriptGenerator(Setup setup, java.sql.Connection con, int mid)
public void setBackupPath(java.lang.String backupPath)
public void setMysqlCommand(java.lang.String mysqlBinPath)
public void addBackupTable(java.lang.String tableName)
public void addDeleteTable(java.lang.String tableName)
public java.lang.String getScript()
protected abstract void addScriptHeader()
protected abstract void addBackupTables()
protected abstract void addDeleteTables()
public void setMysqlDumpCommand(java.lang.String mysqlDumpCommand)