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
ConstructorsModifierConstructorDescriptionprotectedScriptHandler(Connection conn, ConnectionHandler connectionHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendLanguagesToScriptRequest(StringBuilder currentRequest, IElement[] languages, boolean withAttribute) 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.voidrun(File scriptFile, String databaseName, IScriptVariable[] sv) Sends a OLAP script to be executed by OLAP server.voidrun(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:IScriptHandlerTruncates 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:
getVariablesin interfaceIScriptHandler- Parameters:
script- String containing the Script- Throws:
IOException- while trying to read lines through the BufferedReader
-
getVariables
Description copied from interface:IScriptHandlerTruncates 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:
getVariablesin interfaceIScriptHandler- Parameters:
scriptFile- File containing the Script- Throws:
IOException- while trying to read lines through the BufferedReader
-
getVariables
Description copied from interface:IScriptHandlerTruncates 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:
getVariablesin interfaceIScriptHandler- Parameters:
scriptStream- input stream from the file containing the Script- Throws:
IOException- while trying to read lines through the BufferedReader
-
run
Description copied from interface:IScriptHandlerSends a OLAP script to be executed by OLAP server.- Specified by:
runin 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:IScriptHandlerSends a OLAP script to be executed by OLAP server.- Specified by:
runin 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)
-