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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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

    • 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