A class to store workbench specific variables.
This is a singleton which stores the variables inside a Map.
When the Pool is created it looks for any variable definition
passed through the system properties.
Any system property that starts with wbp. is used to define a variable.
The name of the variable is the part after the wbp. prefix.
See Also:workbench.sql.wbcommands.WbDefineVar author: support@sql-workbench.net
readDefinition(String parameter) Initialize the variables from a commandline parameter.
If the parameter starts with the # character
assumed that the parameter contains a list of variable definitions
enclosed in brackets.
public void
readFromFile(String filename, String encoding) Read the variable defintions from an external file.
Returns a set of prompt variables defined in the
SQL string. If a variable is not yet defined it will
be created in the internal pool with an empty value.
and returned in the result set.
a Set containing variable names (String objects)
Initialize the variables from a commandline parameter.
If the parameter starts with the # character
assumed that the parameter contains a list of variable definitions
enclosed in brackets. e.g.
-vardef="#var1=value1,var2=value2"
The list needs to be quoted on the commandline!