-
1. Re: Custom Translator
rareddy Jun 12, 2015 7:20 PM (in response to anilnair)I think you can write a "delegate" translator as described in [1] & [2] Here you need to be delegating to the SQLServer translator. You need to override the
public ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, Connection conn)
method, and write delegate methods for that such that the extra procedure call is invoked. As per the property from client, you can find that ExecutionContext class's command payload method. You set the payload on the statement, see TeiidStatement class.
[1] https://docs.jboss.org/author/display/TEIID/Delegating+Translators
[2] Delegating Translator - Teiid 8.11 (draft) - Project Documentation Editor
-
2. Re: Custom Translator
anilnair Jun 17, 2015 2:58 PM (in response to rareddy)Hi Ramesh,
Sorry could not understand this part
As per the property from client, you can find that ExecutionContext class's command payload method. You set the payload on the statement, see TeiidStatement class.
I did see executioncontext.GetExecutionPayload method but not sure how I would pass values from client or rather I would I set the execution context from the clientThanks
Anil
-