Class SqlScriptBasedStatisticRenovator
java.lang.Object
net.sf.jailer.database.SqlScriptBasedStatisticRenovator
- All Implemented Interfaces:
StatisticRenovator
Renews the statistics for the working-tables
by executing a SQL-script.
- Author:
- Ralf Wisser
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SqlScriptBasedStatisticRenovator(String scriptFileName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets name of SQL-script file.voidrenew(Session session, ExecutionContext executionContext) Renews the DB table statistics for the working-tables by executing the SQL-script.voidsetScriptFileName(String scriptFileName) Sets name of SQL-script file.
-
Constructor Details
-
SqlScriptBasedStatisticRenovator
Constructor.- Parameters:
scriptFileName- name of SQL-script file
-
SqlScriptBasedStatisticRenovator
public SqlScriptBasedStatisticRenovator()Constructor.
-
-
Method Details
-
getScriptFileName
-
setScriptFileName
Sets name of SQL-script file.- Parameters:
scriptFileName- Name of SQL-script file
-
renew
Renews the DB table statistics for the working-tables by executing the SQL-script.- Specified by:
renewin interfaceStatisticRenovator- Parameters:
session- for execution of SQL-statementsexecutionContext- the execution context- Throws:
Exception
-