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

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

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

origin: teiid/teiid

@TranslatorProperty(display="Is Source Required For Metadata", advanced=true)
@Override    
public boolean isSourceRequiredForMetadata() {
  return delegate.isSourceRequiredForMetadata();
}
public void setSourceRequiredForMetadata(boolean value) {
origin: teiid/teiid

@Override
public void loadMetadata(MetadataFactory factory, ExecutionFactory executionFactory, Object connectionFactory) throws TranslatorException {
  
  if (executionFactory == null ) {
    throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30591, factory.getName()));
  }
  
  if (connectionFactory == null && executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31097, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31097));
  }
  ClassLoader originalCL = Thread.currentThread().getContextClassLoader();
  try {
    Thread.currentThread().setContextClassLoader(executionFactory.getClass().getClassLoader());
    getMetadata(factory, executionFactory, connectionFactory);
  } finally {
    Thread.currentThread().setContextClassLoader(originalCL);
  }
}
origin: org.jboss.teiid/teiid-engine

@Override
public void loadMetadata(MetadataFactory factory, ExecutionFactory executionFactory, Object connectionFactory) throws TranslatorException {
  
  if (executionFactory == null ) {
    throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30591, factory.getName()));
  }
  
  if (connectionFactory == null && executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31097, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31097));
  }
  ClassLoader originalCL = Thread.currentThread().getContextClassLoader();
  try {
    Thread.currentThread().setContextClassLoader(executionFactory.getClass().getClassLoader());
    getMetadata(factory, executionFactory, connectionFactory);
  } finally {
    Thread.currentThread().setContextClassLoader(originalCL);
  }
}
origin: org.teiid/teiid-engine

@Override
public void loadMetadata(MetadataFactory factory, ExecutionFactory executionFactory, Object connectionFactory) throws TranslatorException {
  
  if (executionFactory == null ) {
    throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30591, factory.getName()));
  }
  
  if (connectionFactory == null && executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31097, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31097));
  }
  ClassLoader originalCL = Thread.currentThread().getContextClassLoader();
  try {
    Thread.currentThread().setContextClassLoader(executionFactory.getClass().getClassLoader());
    getMetadata(factory, executionFactory, connectionFactory);
  } finally {
    Thread.currentThread().setContextClassLoader(originalCL);
  }
}
origin: teiid/teiid

} catch (Throwable e) {
  if (executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31178, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31178, factory.getName()));
    unwrapped = ((WrappedConnection)connection).unwrap();
  } catch (Exception e) {
    if (executionFactory.isSourceRequiredForMetadata()) {
      throw new TranslatorException(QueryPlugin.Event.TEIID30477, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30477, factory.getName()));
origin: org.teiid/teiid-engine

} catch (Throwable e) {
  if (executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31178, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31178, factory.getName()));
    unwrapped = ((WrappedConnection)connection).unwrap();
  } catch (Exception e) {
    if (executionFactory.isSourceRequiredForMetadata()) {
      throw new TranslatorException(QueryPlugin.Event.TEIID30477, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30477, factory.getName()));
origin: org.jboss.teiid/teiid-engine

} catch (Throwable e) {
  if (executionFactory.isSourceRequiredForMetadata()) {
    throw new TranslatorException(QueryPlugin.Event.TEIID31178, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31178, factory.getName()));
    unwrapped = ((WrappedConnection)connection).unwrap();
  } catch (ResourceException e) {
    if (executionFactory.isSourceRequiredForMetadata()) {
      throw new TranslatorException(QueryPlugin.Event.TEIID30477, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30477, factory.getName()));
org.teiid.translatorExecutionFactoryisSourceRequiredForMetadata

Javadoc

Flag that indicates if a underlying source connection required for this execution factory to return metadata

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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Option (scala)
  • Top PhpStorm 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