|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
MdxParserFactory
,
MdxParser
Method Summary | |
---|---|
SelectNode |
validateSelect(SelectNode selectNode)
Validates an MDX SELECT statement. |
Method Detail |
---|
SelectNode validateSelect(SelectNode selectNode) throws OlapException
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.
selectNode
- Parse tree node representing a SELECT statement
OlapException
- if node is invalid
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |