Class SqlScriptBasedStatisticRenovator

java.lang.Object
net.sf.jailer.database.SqlScriptBasedStatisticRenovator
All Implemented Interfaces:
StatisticRenovator

public class SqlScriptBasedStatisticRenovator extends Object implements StatisticRenovator
Renews the statistics for the working-tables by executing a SQL-script.
Author:
Ralf Wisser
  • Constructor Details

    • SqlScriptBasedStatisticRenovator

      public SqlScriptBasedStatisticRenovator(String scriptFileName)
      Constructor.
      Parameters:
      scriptFileName - name of SQL-script file
    • SqlScriptBasedStatisticRenovator

      public SqlScriptBasedStatisticRenovator()
      Constructor.
  • Method Details

    • getScriptFileName

      public String getScriptFileName()
      Gets name of SQL-script file.
      Returns:
      Name of SQL-script file
    • setScriptFileName

      public void setScriptFileName(String scriptFileName)
      Sets name of SQL-script file.
      Parameters:
      scriptFileName - Name of SQL-script file
    • renew

      public void renew(Session session, ExecutionContext executionContext) throws Exception
      Renews the DB table statistics for the working-tables by executing the SQL-script.
      Specified by:
      renew in interface StatisticRenovator
      Parameters:
      session - for execution of SQL-statements
      executionContext - the execution context
      Throws:
      Exception