Class Configuration
java.lang.Object
net.sf.jailer.configuration.Configuration
Reads and holds configuration file
jailer.json.- Author:
- Ralf Wisser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a temporary fileGets additional SQL keywords.intGets the number of columns per import-filter mapping table.intGets time in seconds waiting for an idle database connection to be tested if it is still valid.getDBMS()Gets all DBMS configurations.booleanReturnstrueif the UPK doesn't preserve order.static ConfigurationGets the configuration.Gets replacement for null in DBUnit datasets.Gets the HTML data model renderer.static List<ScriptEnhancer> Gets the script-enhancer.Gets the temporary files folder.Gets all URL rewrite rules.booleanReturns whether upsert statements are generated without null values.booleanisTempFile(File file) Checks whether the given file is a temporary file managed by this configuration.voidsetAdditionalSQLKeywords(String additionalSQLKeywords) Sets additional SQL keywords.voidsetColumnsPerIFMTable(int columnsPerIFMTable) Sets the number of columns per import-filter mapping table.voidsetDatabaseConnectionInteractiveTimeout(int databaseConnectionInteractiveTimeout) Sets time in seconds waiting for an idle database connection to be tested if it is still valid.voidsetdBMSConfigurations(List<DBMS> dBMSConfigurations) Sets all DBMS configurations.voidsetDoMinimizeUPK(boolean doMinimizeUPK) Sets whether the UPK should not preserve order in order to minimize its size.voidsetGenerateUpsertStatementsWithoutNulls(boolean generateUpsertStatementsWithoutNulls) Sets whether upsert statements should be generated without null values.voidsetNullColumnPlaceholder(String nullColumnPlaceholder) Sets the replacement for null in DBUnit datasets.voidsetRenderer(HtmlDataModelRenderer theRenderer) Sets the HTML data model renderer.voidsetTempFileFolder(String tempFileFolder) Sets the temporary files folder.voidsetUrlRewriteRules(List<Configuration.UrlRewriteRule> urlRewriteRules) Sets all URL rewrite rules.
-
Field Details
-
localEntityGraphConfiguration
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getTempFileFolder
Gets the temporary files folder. Defaults to 'tmp'.- Returns:
- the tempFileFolder
-
setTempFileFolder
Sets the temporary files folder. Defaults to 'tmp'.- Parameters:
tempFileFolder- the tempFileFolder to set
-
createTempFile
-
isTempFile
Checks whether the given file is a temporary file managed by this configuration.- Parameters:
file- the file to check- Returns:
trueif the file is a managed temporary file
-
getAdditionalSQLKeywords
Gets additional SQL keywords.- Returns:
- the additional SQL keywords
-
setAdditionalSQLKeywords
Sets additional SQL keywords.- Parameters:
additionalSQLKeywords- the additional SQL keywords to set
-
getNullColumnPlaceholder
Gets replacement for null in DBUnit datasets.- Returns:
- replacement for null in DBUnit datasets
-
getDoMinimizeUPK
public boolean getDoMinimizeUPK()Returnstrueif the UPK doesn't preserve order. This minimizes the size of the UPK.- Returns:
trueif 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
Gets the configuration.- Returns:
- the singleton
Configurationinstance
-
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
-
setRenderer
Sets the HTML data model renderer.- Parameters:
theRenderer- the renderer to set
-
getUrlRewriteRules
Gets all URL rewrite rules.- Returns:
- the URL rewrite rules
-
setUrlRewriteRules
Sets all URL rewrite rules.- Parameters:
urlRewriteRules- the URL rewrite rules to set
-
getDBMS
-
setdBMSConfigurations
-
setDoMinimizeUPK
public void setDoMinimizeUPK(boolean doMinimizeUPK) Sets whether the UPK should not preserve order in order to minimize its size.- Parameters:
doMinimizeUPK-trueto minimize the UPK size
-
setNullColumnPlaceholder
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:
trueif upsert statements are generated without nulls
-
setGenerateUpsertStatementsWithoutNulls
public void setGenerateUpsertStatementsWithoutNulls(boolean generateUpsertStatementsWithoutNulls) Sets whether upsert statements should be generated without null values.- Parameters:
generateUpsertStatementsWithoutNulls-trueto generate upsert statements without nulls
-