Class SubsettingEngine

java.lang.Object
net.sf.jailer.subsetting.SubsettingEngine

public class SubsettingEngine extends Object
The Subsetting Engine.
Author:
Ralf Wisser
  • Constructor Details

    • SubsettingEngine

      public SubsettingEngine(ExecutionContext executionContext)
      Constructor.
      Parameters:
      executionContext - the execution context
  • Method Details

    • export

      public ExportStatistic export(String whereClause, URL extractionModelURL, String scriptFile, String deleteScriptFileName, DataSource dataSource, DBMS dbms, ScriptFormat scriptFormat, int modelPoolSize) throws SQLException, IOException, SAXException
      Exports entities.
      Parameters:
      whereClause - optional WHERE clause to restrict the subject rows, or null
      extractionModelURL - URL of the extraction model
      scriptFile - name of the export script file to write, or null
      deleteScriptFileName - name of the delete script file to write, or null
      dataSource - the data source to read from
      dbms - the DBMS configuration
      scriptFormat - the output script format
      modelPoolSize - size of extraction-model pool
      Returns:
      the export statistic
      Throws:
      SQLException
      IOException
      SAXException
    • registerTmpURL

      public static void registerTmpURL(URL extractionModelURL, String name)
      Registers the real name of an extraction model for a temporary URL (GUI support).
      Parameters:
      extractionModelURL - the temporary URL of the extraction model
      name - the real name to associate with the URL