org.olap4j.mdx.parser
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
Version:
$Id: MdxValidator.java 482 2012-01-05 23:27:27Z jhyde $
Author:
jhyde
See Also:
MdxParserFactory, MdxParser

Method Summary
 SelectNode validateSelect(SelectNode selectNode)
          Validates an MDX SELECT statement.
 

Method Detail

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

SourceForge.net_Logo