6 Replies Latest reply on Feb 18, 2013 9:59 AM by Steven Hawkins

    Teiid API doc

    jane_lj Novice

      Hi,

       

      Where can i get better java doc for Teiid API?

       

      http://docs.jboss.org/teiid/8.2.0.Final/apidocs/  this URl doesn't have much info about methods.

       

       

      Thanks.

        • 1. Re: Teiid API doc
          Ramesh Reddy Master

          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 Novice

            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
              Ramesh Reddy Master

              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 Novice

                Thanks, Ramesh.

                 

                I am thinking i can do something inside of this method in my visitor class

                InsertVisitor

                extends AbstractLanguageVisitor

                 

                @Override

                 

                public void

                visit(Parameter arg0)

                {

                 

                }

                Also confused with BatchedUpdate and BatchedCommand  after looked at JDBCUpdateExecution example.

                Thanks.

                • 5. Re: Teiid API doc
                  Ramesh Reddy Master

                  Look at Salesforce translator insert execution, I have done the same couple days ago.

                  • 6. Re: Teiid API doc
                    Steven Hawkins Master

                    Can you log an issue to add more information to the BatchedCommand/BatchedUpdates javadocs?

                     

                    Steve