Package it.eng.spagobi.engines.qbe.analysisstateloaders

Examples of it.eng.spagobi.engines.qbe.analysisstateloaders.IQbeEngineAnalysisStateLoader


      if(encodingFormatVersion.equalsIgnoreCase(QbeEngineStaticVariables.CURRENT_QUERY_VERSION)) {       
        abalysisStateJSON = rowDataJSON;
      } else {
        logger.warn("Row data encoding version [" + encodingFormatVersion + "] does not match with the current version used by the engine [" + QbeEngineStaticVariables.CURRENT_QUERY_VERSION + "] ");
        logger.debug("Converting from encoding version [" + encodingFormatVersion + "] to encoding version [" + QbeEngineStaticVariables.CURRENT_QUERY_VERSION + "]....");
        IQbeEngineAnalysisStateLoader analysisStateLoader;
        analysisStateLoader = QbeEngineAnalysisStateLoaderFactory.getInstance().getLoader(encodingFormatVersion);
        if(analysisStateLoader == null) {
          throw new SpagoBIEngineException("Unable to load data stored in format [" + encodingFormatVersion + "] ");
        }
        abalysisStateJSON = (JSONObject)analysisStateLoader.load(str);
        logger.debug("Encoding conversion has been executed succesfully");
      }
     
      JSONObject catalogueJSON = abalysisStateJSON.getJSONObject("catalogue");
      JSONObject workSheetDefinitionJSON = abalysisStateJSON.optJSONObject(QbeEngineStaticVariables.WORKSHEET_DEFINITION_LOWER);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.qbe.analysisstateloaders.IQbeEngineAnalysisStateLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.