2 Replies Latest reply on Aug 18, 2010 4:22 AM by rakeshsagar

    How to fetch the table name and columns

    rakeshsagar

      Hi,

       

      In the ResultSetExecution class, in the execute() method how can we fetch the table and the columns.

       

      Thanks

      Rakesh

        • 1. Re: How to fetch the table name and columns
          rareddy

          Rakesh,

           

          I believe you are asking for this when you are writing the custom translator. When you extended the "ExecutionFactory" class, you may have overridden below method

           

          public ResultSetExecution createResultSetExecution(QueryExpression command, 
              ExecutionContext executionContext, 
              RuntimeMetadata metadata, 
              C connection) throws TranslatorException {
                  ...
          }

           

          From the parameters of this method you an gleen any information you may be looking for. Check out the docs and every objects signatures!

           

          Ramesh..

          • 2. Re: How to fetch the table name and columns
            rakeshsagar

            Thanks Ramesh.