Package com.jedox.palojlib.main
Class ScriptHandler
java.lang.Object
com.jedox.palojlib.main.ScriptHandler
- All Implemented Interfaces:
IScriptHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jedox.palojlib.interfaces.IScriptHandler
IScriptHandler.ScriptCreateClause, IScriptHandler.ScriptModifyClause
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ScriptHandler
(Connection conn, ConnectionHandler connectionHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendLanguagesToScriptRequest
(StringBuilder currentRequest, IElement[] languages, boolean withAttribute) void
execute
(File scriptFile, String databaseName, IScriptVariable[] sv) Deprecated.void
execute
(String script, String databaseName, IScriptVariable[] sv) Deprecated.getVariables
(File scriptFile) Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.getVariables
(InputStream scriptStream) Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.getVariables
(String script) Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.void
run
(File scriptFile, String databaseName, IScriptVariable[] sv) Sends a OLAP script to be executed by OLAP server.void
run
(String script, String databaseName, IScriptVariable[] sv) Sends a OLAP script to be executed by OLAP server.
-
Constructor Details
-
ScriptHandler
-
-
Method Details
-
getVariables
Description copied from interface:IScriptHandler
Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.- Specified by:
getVariables
in interfaceIScriptHandler
- Parameters:
script
- String containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
getVariables
Description copied from interface:IScriptHandler
Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.- Specified by:
getVariables
in interfaceIScriptHandler
- Parameters:
scriptFile
- File containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
getVariables
Description copied from interface:IScriptHandler
Truncates the script to only the top lines that contain Variables declarations, and then send the script to OLAP server to retrieve the relevant variables.- Specified by:
getVariables
in interfaceIScriptHandler
- Parameters:
scriptStream
- input stream from the file containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
execute
@Deprecated public void execute(File scriptFile, String databaseName, IScriptVariable[] sv) throws IOException Deprecated.Description copied from interface:IScriptHandler
Sends a OLAP script to be executed by OLAP server.- Specified by:
execute
in interfaceIScriptHandler
- Parameters:
scriptFile
- File that contains the script that is to be executed by Olap.databaseName
- Relevant OLAP database (for scripts that don't define the target database themselves, like Cube and Dimension scripts).sv
- Variables values that will replace the corresponding variables defined in the script.- Throws:
IOException
- while trying to read lines through the BufferedReader
-
execute
Deprecated.Description copied from interface:IScriptHandler
Sends a OLAP script to be executed by OLAP server.- Specified by:
execute
in interfaceIScriptHandler
- Parameters:
script
- Script that is to be executed by Olap.databaseName
- Relevant OLAP database (for scripts that don't define the target database themselves, like Cube and Dimension scripts).sv
- Variables values that will replace the corresponding variables defined in the script.
-
run
Description copied from interface:IScriptHandler
Sends a OLAP script to be executed by OLAP server.- Specified by:
run
in interfaceIScriptHandler
- Parameters:
scriptFile
- File that contains the script that is to be executed by Olap.databaseName
- Relevant OLAP database (for scripts that don't define the target database themselves, like Cube and Dimension scripts).sv
- Variables values that will replace the corresponding variables defined in the script.- Throws:
IOException
- while trying to read lines through the BufferedReader
-
run
Description copied from interface:IScriptHandler
Sends a OLAP script to be executed by OLAP server.- Specified by:
run
in interfaceIScriptHandler
- Parameters:
script
- Script that is to be executed by Olap.databaseName
- Relevant OLAP database (for scripts that don't define the target database themselves, like Cube and Dimension scripts).sv
- Variables values that will replace the corresponding variables defined in the script.
-
appendLanguagesToScriptRequest
public static void appendLanguagesToScriptRequest(StringBuilder currentRequest, IElement[] languages, boolean withAttribute)
-