-
1. Re: Teiid API doc
rareddy Feb 15, 2013 1:00 PM (in response to jane_lj)Jane,
Those are the javadocs for Teiid. Anything else would be on documents. What methods are you looking for?
Ramesh..
-
2. Re: Teiid API doc
jane_lj Feb 15, 2013 3:25 PM (in response to rareddy)Basically, I want to do supportBulkUpdates for insert, so the pushdown insert will have all multiple row values, i need to collect these values, then call API for insert, but no idea how to use the object org.teiid.language.Parameters.
Thanks.
-
3. Re: Teiid API doc
rareddy Feb 15, 2013 4:03 PM (in response to jane_lj)Jane,
You are looking for how to guide, there is no such thing. You can read our documents which teaches you various concepts in the translator development, then you can see example translators to do achieve what you want.
For this particular case, you can take a look at JDBCExecustoinFactory and SalesForceExecutionFactory. Basically you need to turn on support for batch updates and bulk updates and when a insert command comes to your translator check for the check for "getParameterValues" on it, if it not null, if not null then there are multiple rows of values. Then handle that bulk insert as you want in your translator.
Ramesh..
-
4. Re: Teiid API doc
jane_lj Feb 15, 2013 5:34 PM (in response to rareddy)Thanks, Ramesh.
I am thinking i can do something inside of this method in my visitor class
InsertVisitor
extends AbstractLanguageVisitor@Override
visit(Parameter arg0)
{
}
Also confused with BatchedUpdate and BatchedCommand after looked at JDBCUpdateExecution example.
Thanks.
-
5. Re: Teiid API doc
rareddy Feb 17, 2013 9:30 PM (in response to jane_lj)Look at Salesforce translator insert execution, I have done the same couple days ago.
-
6. Re: Teiid API doc
shawkins Feb 18, 2013 9:59 AM (in response to rareddy)Can you log an issue to add more information to the BatchedCommand/BatchedUpdates javadocs?
Steve