Package org.teiid.metadata

Examples of org.teiid.metadata.RuntimeMetadata


      this.executionContext = context;
    }
   
    public List executeCommand(String query) throws TranslatorException {
        Command command = getCommand(query);
        RuntimeMetadata runtimeMetadata = getRuntimeMetadata();

        return executeCommand(command, runtimeMetadata, true);
    }
View Full Code Here


        return executeCommand(command, runtimeMetadata, true);
    }
   
    public List executeCommand(String query, boolean close) throws TranslatorException {
        Command command = getCommand(query);
        RuntimeMetadata runtimeMetadata = getRuntimeMetadata();

        return executeCommand(command, runtimeMetadata, close);
    }
View Full Code Here

        return executeCommand(command, runtimeMetadata, close);
    }
   
    public List executeCommand(Command command) throws TranslatorException {
        RuntimeMetadata runtimeMetadata = getRuntimeMetadata();
        return executeCommand(command, runtimeMetadata, true);
    }
View Full Code Here

        }
        return results;
    }

    public int[] executeBatchedUpdates(String[] updates) throws TranslatorException {
        RuntimeMetadata runtimeMetadata = getRuntimeMetadata();
        Command[] commands = new Command[updates.length];
        for (int i = 0; i < updates.length; i++) {
            commands[i] = getCommand(updates[i]);
        }
View Full Code Here

            expectedCountLimit, expectedSearchScope, expectedSortKeys);
    }

  private LDAPSearchDetails helpGetSearchDetails(String queryString) throws TranslatorException {
      QueryMetadataInterface metadata = exampleLdap();
      RuntimeMetadata rm = new RuntimeMetadataImpl(metadata);
     
      LDAPExecutionFactory config = mock(LDAPExecutionFactory.class);
     
      IQueryToLdapSearchParser searchParser = new IQueryToLdapSearchParser(config);
     
View Full Code Here

          Command command = this.requestMsg.getCommand();
          this.expectedColumns = command.getProjectedSymbols().size();
          LanguageBridgeFactory factory = new LanguageBridgeFactory(queryMetadata);
          this.translatedCommand = factory.translate(command);
 
          RuntimeMetadata rmd = new RuntimeMetadataImpl(queryMetadata);
         
          // Create the execution based on mode
          final Execution exec = connector.createExecution(this.translatedCommand, this.securityContext, rmd, (unwrapped == null) ? this.connection:unwrapped);
          if (this.translatedCommand instanceof Call) {
            this.execution = Assertion.isInstanceOf(exec, ProcedureExecution.class, "Call Executions are expected to be ProcedureExecutions"); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.teiid.metadata.RuntimeMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.