Examples of translateAndLookup()


Examples of org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SQLParameterLookupParser.translateAndLookup()

        "     `wayne$`.`Status`\n" +
        "FROM\n" +
        "     `wayne$`";

    final SQLParameterLookupParser parser = new SQLParameterLookupParser(true);
    final String translatedQuery = parser.translateAndLookup(query, new ReportParameterValues());
    assertEquals(query, translatedQuery);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SQLParameterLookupParser.translateAndLookup()

        "     `wayne$`.`Status`\n" +
        "FROM\n" +
        "     `wayne$`";

    final SQLParameterLookupParser parser = new SQLParameterLookupParser(false);
    final String translatedQuery = parser.translateAndLookup(query, new ReportParameterValues());
    assertEquals(query, translatedQuery);
  }


  public void testReplacementParsing()
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.SQLParameterLookupParser.translateAndLookup()

    final String expected = "SELECT * FROM TABLE WHERE x = ?";

    final SQLParameterLookupParser parser = new SQLParameterLookupParser(false);
    final ReportParameterValues parameters = new ReportParameterValues();
    parameters.put("parameter", "value");
    final String translatedQuery = parser.translateAndLookup(query, parameters);
    assertEquals(expected, translatedQuery);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.ConfigurationPropertyLookupParser.translateAndLookup()

  protected File createTargetFile()
  {
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final ConfigurationPropertyLookupParser parser = new ConfigurationPropertyLookupParser(globalConfig);
    final String fileName = parser.translateAndLookup(globalConfig.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.misc.connections.file-data.targetLocation"));
    final File file = new File(fileName);
    file.getParentFile().mkdirs();
    return file;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.PropertyLookupParser.translateAndLookup()

              filterValue = parameters.get(parameterName);
            }
            // Cater for cases where users specify compound filer: "name" "like" "some${post_fix}"
            else
            {
              filterValue = parameterParser.translateAndLookup(realFilterValue, parameters);
            }

            // If the value is null, this may be a dependent query and it is waiting for a parameter.
            // just return and wait
            if (filterValue == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.