Package com.exasol.dbbuilder
Class Script.Builder
- java.lang.Object
-
- com.exasol.dbbuilder.Script.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Script.BuilderarrayParameter(String... parameterNames)Add array parameters to the script parameter list.Scriptbuild()Create a new instance of aScript.Script.Buildercontent(String content)Set the content of the script (i.e.Script.Buildercontent(Path path)Load the script content from a file.Script.Builderparameter(String... parameterNames)Add parameters to the script parameter list.Script.BuilderreturnsTable()Set the return type of the script to a table.
-
-
-
Method Detail
-
parameter
public Script.Builder parameter(String... parameterNames)
Add parameters to the script parameter list.- Parameters:
parameterNames- list of parameter names- Returns:
thisfor fluent programming
-
arrayParameter
public Script.Builder arrayParameter(String... parameterNames)
Add array parameters to the script parameter list.- Parameters:
parameterNames- list of parameter names- Returns:
thisfor fluent programming
-
content
public Script.Builder content(String content)
Set the content of the script (i.e. the implementation).- Parameters:
content- script content- Returns:
thisfor fluent programming
-
content
public Script.Builder content(Path path) throws IOException
Load the script content from a file.- Parameters:
path- path to file containing the script content- Returns:
thisfor fluent programming- Throws:
IOException- in case the file could not be read
-
returnsTable
public Script.Builder returnsTable()
Set the return type of the script to a table.- Returns:
thisfor fluent programming
-
-