Package org.olap4j.mdx.parser

Examples of org.olap4j.mdx.parser.MdxParserFactory


            DriverManager.getConnection("jdbc:mondrian:embedded");
        OlapConnection olapConnection =
            ((OlapWrapper) connection).unwrap(OlapConnection.class);

        // Create a parser.
        MdxParserFactory parserFactory = olapConnection.getParserFactory();
        MdxParser parser = parserFactory.createMdxParser(olapConnection);
        SelectNode query = parser.parseSelect(
            "select {[Measures].[Unit Sales]} on columns\n"
            + "from [Sales]");
        query.getAxisList().get(0).setNonEmpty(false);
View Full Code Here


    throw new UnsupportedOperationException();
  }

  @Nullable
  public Cube getCube() {
    final MdxParserFactory parserFactory =
        connection.getParserFactory();
    MdxParser mdxParser =
        parserFactory.createMdxParser(connection);
    MdxValidator mdxValidator =
        parserFactory.createMdxValidator(connection);

    String mdx = getMdx();
    try {

      if (mdx != null && mdx.length() > 0 && mdx.toUpperCase().contains("FROM")) {
View Full Code Here

TOP

Related Classes of org.olap4j.mdx.parser.MdxParserFactory

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.