com.metamatrix.query.processor.dynamic
Class SqlEval
java.lang.Object
com.metamatrix.query.processor.dynamic.SqlEval
- All Implemented Interfaces:
- XQuerySQLEvaluator
public class SqlEval
- extends java.lang.Object
- implements XQuerySQLEvaluator
A SQL evaluator used in XQuery expression, where this will take SQL string and return a
XML 'Source' as output for the request evaluated.
Method Summary |
void |
close()
Closes any resources opened during the evaluation |
javax.xml.transform.Source |
executeSQL(java.lang.String sql)
Execute a SQL string that returns an XML result |
java.lang.Object |
getParameterValue(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlEval
public SqlEval(BufferManager bufferMgr,
ProcessorDataManager dataManager,
CommandContext context,
java.lang.String parentGroup,
java.util.Map<java.lang.String,Expression> params)
executeSQL
public javax.xml.transform.Source executeSQL(java.lang.String sql)
throws QueryParserException,
MetaMatrixProcessingException,
MetaMatrixComponentException
- Description copied from interface:
XQuerySQLEvaluator
- Execute a SQL string that returns an XML result
- Specified by:
executeSQL
in interface XQuerySQLEvaluator
- Parameters:
sql
- SQL string, typically an EXEC against an xml service or virtual document
- Throws:
QueryParserException
- If sql parameter is not sql
MetaMatrixProcessingException
- If execution of the sql fails due to a bad query
MetaMatrixComponentException
- If execution of the sql fails due to an internal failure- Since:
- 4.3
- See Also:
com.metamatrix.query.xquery.XQuerySQLEvaluator#executeDynamicSQL(java.lang.String)
getParameterValue
public java.lang.Object getParameterValue(java.lang.String key)
throws ExpressionEvaluationException,
BlockedException,
MetaMatrixComponentException
- Specified by:
getParameterValue
in interface XQuerySQLEvaluator
- Throws:
ExpressionEvaluationException
BlockedException
MetaMatrixComponentException
close
public void close()
throws MetaMatrixComponentException
- Closes any resources opened during the evaluation
- Specified by:
close
in interface XQuerySQLEvaluator
- Throws:
MetaMatrixComponentException
Copyright © 2009. All Rights Reserved.