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
  • Method Details

    • execute

      @Deprecated void execute(File scriptFile, String databaseName, IScriptVariable[] sv) throws IOException
      Deprecated.
      This method is deprecated, use run(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 void execute(String script, String databaseName, IScriptVariable[] sv)
      Deprecated.
      This method is deprecated, use run(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

      void run(File scriptFile, String databaseName, IScriptVariable[] sv) throws IOException
      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

      void run(String script, String databaseName, IScriptVariable[] sv)
      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

      IScriptVariable[] getVariables(String script) throws IOException
      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

      IScriptVariable[] getVariables(File scriptFile) throws IOException
      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

      IScriptVariable[] getVariables(InputStream scriptStream) throws IOException
      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