Class Configuration

java.lang.Object
net.sf.jailer.configuration.Configuration

public class Configuration extends Object
Reads and holds configuration file jailer.json.
Author:
Ralf Wisser
  • Field Details

  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • getTempFileFolder

      public String getTempFileFolder()
      Gets the temporary files folder. Defaults to 'tmp'.
      Returns:
      the tempFileFolder
    • setTempFileFolder

      public void setTempFileFolder(String tempFileFolder)
      Sets the temporary files folder. Defaults to 'tmp'.
      Parameters:
      tempFileFolder - the tempFileFolder to set
    • createTempFile

      public File createTempFile()
      Creates a temporary file
      Returns:
      a temporary file
    • isTempFile

      public boolean isTempFile(File file)
      Checks whether the given file is a temporary file managed by this configuration.
      Parameters:
      file - the file to check
      Returns:
      true if the file is a managed temporary file
    • getAdditionalSQLKeywords

      public String getAdditionalSQLKeywords()
      Gets additional SQL keywords.
      Returns:
      the additional SQL keywords
    • setAdditionalSQLKeywords

      public void setAdditionalSQLKeywords(String additionalSQLKeywords)
      Sets additional SQL keywords.
      Parameters:
      additionalSQLKeywords - the additional SQL keywords to set
    • getNullColumnPlaceholder

      public String getNullColumnPlaceholder()
      Gets replacement for null in DBUnit datasets.
      Returns:
      replacement for null in DBUnit datasets
    • getDoMinimizeUPK

      public boolean getDoMinimizeUPK()
      Returns true if the UPK doesn't preserve order. This minimizes the size of the UPK.
      Returns:
      true if the UPK doesn't preserve order
    • getDatabaseConnectionInteractiveTimeout

      public int getDatabaseConnectionInteractiveTimeout()
      Gets time in seconds waiting for an idle database connection to be tested if it is still valid.
      Returns:
      the timeout in seconds
    • setDatabaseConnectionInteractiveTimeout

      public void setDatabaseConnectionInteractiveTimeout(int databaseConnectionInteractiveTimeout)
      Sets time in seconds waiting for an idle database connection to be tested if it is still valid.
      Parameters:
      databaseConnectionInteractiveTimeout - the timeout in seconds
    • getInstance

      public static Configuration getInstance()
      Gets the configuration.
      Returns:
      the singleton Configuration instance
    • getScriptEnhancer

      public static List<ScriptEnhancer> getScriptEnhancer()
      Gets the script-enhancer.
      Returns:
      list of ScriptEnhancers
    • getColumnsPerIFMTable

      public int getColumnsPerIFMTable()
      Gets the number of columns per import-filter mapping table.
      Returns:
      the number of columns per import-filter mapping table
    • getRenderer

      public HtmlDataModelRenderer getRenderer()
      Gets the HTML data model renderer.
      Returns:
      the renderer
    • setRenderer

      public void setRenderer(HtmlDataModelRenderer theRenderer)
      Sets the HTML data model renderer.
      Parameters:
      theRenderer - the renderer to set
    • getUrlRewriteRules

      public List<Configuration.UrlRewriteRule> getUrlRewriteRules()
      Gets all URL rewrite rules.
      Returns:
      the URL rewrite rules
    • setUrlRewriteRules

      public void setUrlRewriteRules(List<Configuration.UrlRewriteRule> urlRewriteRules)
      Sets all URL rewrite rules.
      Parameters:
      urlRewriteRules - the URL rewrite rules to set
    • getDBMS

      public List<DBMS> getDBMS()
      Gets all DBMS configurations.
      Returns:
      the list of DBMS configurations
    • setdBMSConfigurations

      public void setdBMSConfigurations(List<DBMS> dBMSConfigurations)
      Sets all DBMS configurations.
      Parameters:
      dBMSConfigurations - the list of DBMS configurations to set
    • setDoMinimizeUPK

      public void setDoMinimizeUPK(boolean doMinimizeUPK)
      Sets whether the UPK should not preserve order in order to minimize its size.
      Parameters:
      doMinimizeUPK - true to minimize the UPK size
    • setNullColumnPlaceholder

      public void setNullColumnPlaceholder(String nullColumnPlaceholder)
      Sets the replacement for null in DBUnit datasets.
      Parameters:
      nullColumnPlaceholder - the replacement string for null values
    • setColumnsPerIFMTable

      public void setColumnsPerIFMTable(int columnsPerIFMTable)
      Sets the number of columns per import-filter mapping table.
      Parameters:
      columnsPerIFMTable - the number of columns per import-filter mapping table
    • isGenerateUpsertStatementsWithoutNulls

      public boolean isGenerateUpsertStatementsWithoutNulls()
      Returns whether upsert statements are generated without null values.
      Returns:
      true if upsert statements are generated without nulls
    • setGenerateUpsertStatementsWithoutNulls

      public void setGenerateUpsertStatementsWithoutNulls(boolean generateUpsertStatementsWithoutNulls)
      Sets whether upsert statements should be generated without null values.
      Parameters:
      generateUpsertStatementsWithoutNulls - true to generate upsert statements without nulls