Пример #1
0
 /**
  * Method "getExecutionEngine".
  *
  * @param analysis the analysis
  * @return the execution language (SQL by default)
  */
 public static ExecutionLanguage getExecutionEngine(Analysis analysis) {
   AnalysisParameters parameters = analysis.getParameters();
   if (parameters == null) {
     return ExecutionLanguage.SQL;
   }
   // else
   return parameters.getExecutionLanguage();
 }
Пример #2
0
  /**
   * Current analysis whether is java engin
   *
   * @param analysis the analysis
   * @return true if is java engin else false
   */
  public static boolean isJavaExecutionEngine(Analysis analysis) {
    AnalysisParameters parameters = analysis.getParameters();

    if (parameters == null) {
      return false;
    }
    ExecutionLanguage executionLanguage = parameters.getExecutionLanguage();
    return ExecutionLanguage.JAVA == executionLanguage;
  }