Tabnine Logo
ExecutionFactory.setSourceRequired
Code IndexAdd Tabnine to your IDE (free)

How to use
setSourceRequired
method
in
org.teiid.translator.ExecutionFactory

Best Java code snippets using org.teiid.translator.ExecutionFactory.setSourceRequired (Showing top 3 results out of 315)

origin: teiid/teiid

public void setSourceRequired(boolean value) {
  delegate.setSourceRequired(value);
}
origin: teiid/teiid

@Test public void testConvertIn() throws Exception {
  Command command = helpGetCommand("select intkey from bqt1.smalla where stringkey in ('1', '2')", EXAMPLE_BQT); //$NON-NLS-1$
  AtomicRequestMessage arm = createNewAtomicRequestMessage(1, 1);
  arm.setCommand(command);
  ConnectorManager cm = TestConnectorManager.getConnectorManager();
  cm.getExecutionFactory().setSourceRequired(false);
  ConnectorWork synchConnectorWorkItem = cm.registerRequest(arm);
  synchConnectorWorkItem.execute();
  synchConnectorWorkItem.close();
  FakeConnector fc = (FakeConnector)cm.getExecutionFactory();
  assertEquals("SELECT SmallA.IntKey FROM SmallA WHERE SmallA.StringKey = '2' OR SmallA.StringKey = '1'", fc.getCommands().get(0).toString());
  assertEquals(1, fc.getConnectionCount());
  assertEquals(1, fc.getCloseCount());
}
origin: teiid/teiid

@Test public void testSourceNotRequired() throws Exception {
  Command command = helpGetCommand("update bqt1.smalla set stringkey = 1 where stringkey = 2", EXAMPLE_BQT); //$NON-NLS-1$
  AtomicRequestMessage arm = createNewAtomicRequestMessage(1, 1);
  arm.setCommand(command);
  ConnectorManager cm = TestConnectorManager.getConnectorManager();
  cm.getExecutionFactory().setSourceRequired(false);
  ConnectorWork synchConnectorWorkItem = cm.registerRequest(arm);
  synchConnectorWorkItem.execute();
  synchConnectorWorkItem.close();
  FakeConnector fc = (FakeConnector)cm.getExecutionFactory();
  assertEquals(1, fc.getConnectionCount());
  assertEquals(1, fc.getCloseCount());
}

org.teiid.translatorExecutionFactorysetSourceRequired

Popular methods of ExecutionFactory

  • start
  • createExecution
  • getMetadata
  • isSourceRequired
  • areLobsUsableAfterClose
  • closeConnection
  • getCacheDirective
  • getCollationLocale
  • getConnection
  • getDefaultNullOrder
  • getDirectQueryProcedureName
  • getExcludedCommonTableExpressionName
  • getDirectQueryProcedureName,
  • getExcludedCommonTableExpressionName,
  • getMaxDependentInPredicates,
  • getMaxFromGroups,
  • getMaxInCriteriaSize,
  • getPushDownFunctions,
  • getRequiredLikeEscape,
  • getSupportedFunctions,
  • getSupportedJoinCriteria,
  • getTransactionSupport

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now