Interface MdxValidator


public interface MdxValidator
Validator for the MDX query language.

A validator is reusable but not reentrant: you can call validateSelect(org.olap4j.mdx.SelectNode) several times, but not at the same time from different threads.

To create a validator, use the MdxParserFactory.createMdxValidator(org.olap4j.OlapConnection) method.

Since:
Aug 22, 2006
Author:
jhyde
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Validates an MDX SELECT statement.
  • Method Details

    • validateSelect

      SelectNode validateSelect(SelectNode selectNode) throws OlapException
      Validates an MDX SELECT statement.

      The SelectNode representing the SELECT statement may have been created by an MdxParser, or it may have been built programmatically.

      If the parse tree is invalid, throws an OlapException.

      If it is valid, returns a parse tree. This parse tree may or may not be the same parse tree passed as an argument. After validation, you can ascertain the type of each node of the parse tree by calling its ParseTreeNode.getType() method.

      Parameters:
      selectNode - Parse tree node representing a SELECT statement
      Returns:
      Validated parse tree
      Throws:
      OlapException - if node is invalid