Package com.jedox.palojlib.interfaces
Interface IScriptHandler
- All Known Implementing Classes:
ScriptHandler
public interface IScriptHandler
represent a database scripts
the interface is currently only an empty placeholder for script related enumerations
- Author:
- afroehlich
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(File scriptFile, String databaseName, IScriptVariable[] sv) Deprecated.void
execute
(String script, String databaseName, IScriptVariable[] sv) Deprecated.This method is deprecated, userun(String, String, IScriptVariable[])
instead.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.
-
Method Details
-
execute
@Deprecated void execute(File scriptFile, String databaseName, IScriptVariable[] sv) throws IOException Deprecated.This method is deprecated, userun(File, String, IScriptVariable[])
instead.Sends a OLAP script to be executed by OLAP server.- 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.This method is deprecated, userun(String, String, IScriptVariable[])
instead.Sends a OLAP script to be executed by OLAP server.- 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
Sends a OLAP script to be executed by OLAP server.- 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
Sends a OLAP script to be executed by OLAP server.- 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.
-
getVariables
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.- Parameters:
script
- String containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
getVariables
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.- Parameters:
scriptFile
- File containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
getVariables
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.- Parameters:
scriptStream
- input stream from the file containing the Script- Throws:
IOException
- while trying to read lines through the BufferedReader
-
run(File, String, IScriptVariable[])
instead.