Class ScriptGenerator

java.lang.Object
ru.bitel.bgbilling.modules.dba.server.bean.ScriptGenerator
Direct Known Subclasses:
BashScriptGenerator, BatchScriptGenerator

public abstract class ScriptGenerator extends Object
  • Field Details

    • script

      protected StringBuilder script
    • backupTableList

      protected List<String> backupTableList
    • deleteTableList

      protected List<String> deleteTableList
    • mysqlCommand

      protected String mysqlCommand
    • mysqlDumpCommand

      protected String mysqlDumpCommand
    • backupPath

      protected String backupPath
    • databaseName

      protected String databaseName
  • Constructor Details

    • ScriptGenerator

      public ScriptGenerator(Setup setup, Connection con, int mid)
  • Method Details

    • setBackupPath

      public void setBackupPath(String backupPath)
    • setMysqlCommand

      public void setMysqlCommand(String mysqlBinPath)
    • addBackupTable

      public void addBackupTable(String tableName)
    • addDeleteTable

      public void addDeleteTable(String tableName)
    • getScript

      public String getScript()
    • addScriptHeader

      protected abstract void addScriptHeader()
    • addBackupTables

      protected abstract void addBackupTables()
    • addDeleteTables

      protected abstract void addDeleteTables()
    • setMysqlDumpCommand

      public void setMysqlDumpCommand(String mysqlDumpCommand)