Package org.teiid.translator.salesforce.execution

Examples of org.teiid.translator.salesforce.execution.QueryExecutionImpl



  @Override
  public ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, SalesforceConnection connection)
      throws TranslatorException {
    return new QueryExecutionImpl(command, connection, metadata, executionContext);
  }
View Full Code Here


  }
 
  @Test public void testIDCriteria() throws Exception {
    Select command = (Select)translationUtility.parseCommand("select id, name from Account where id = 'bar'"); //$NON-NLS-1$
    SalesforceConnection sfc = Mockito.mock(SalesforceConnection.class);
    QueryExecutionImpl qei = new QueryExecutionImpl(command, sfc, translationUtility.createRuntimeMetadata(), Mockito.mock(ExecutionContext.class));
    qei.execute();
    Mockito.verify(sfc).retrieve("Account.id, Account.AccountName", "Account", Arrays.asList("bar"));
  }
View Full Code Here

TOP

Related Classes of org.teiid.translator.salesforce.execution.QueryExecutionImpl

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.