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

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

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

origin: teiid/teiid

@TranslatorProperty(display="Is Source Required", advanced=true)
@Override
public boolean isSourceRequired() {
  return delegate.isSourceRequired();
}
public void setSourceRequired(boolean value) {
origin: org.jboss.teiid/teiid-engine

public String getStausMessage() {
  String msg = ""; //$NON-NLS-1$
  ExecutionFactory<Object, Object> ef = getExecutionFactory();
  
  if(ef != null) {
    if (ef.isSourceRequired()) {
      
      Object conn = null;
      try {
        conn = getConnectionFactory();
      } catch (TranslatorException e) {
        // treat this as connection not found. 
      }
      
      if (conn == null) {
        msg = QueryPlugin.Util.getString("datasource_not_found", this.connectionName); //$NON-NLS-1$
      }
    }
  }
  else {
    msg = QueryPlugin.Util.getString("translator_not_found", this.translatorName); //$NON-NLS-1$
  }
  return msg;
}

origin: org.teiid/teiid-engine

public String getStausMessage() {
  String msg = ""; //$NON-NLS-1$
  ExecutionFactory<Object, Object> ef = getExecutionFactory();
  
  if(ef != null) {
    if (ef.isSourceRequired()) {
      
      Object conn = null;
      try {
        conn = getConnectionFactory();
      } catch (TranslatorException e) {
        // treat this as connection not found. 
      }
      
      if (conn == null) {
        msg = QueryPlugin.Util.getString("datasource_not_found", this.connectionName); //$NON-NLS-1$
      }
    }
  }
  else {
    msg = QueryPlugin.Util.getString("translator_not_found", this.translatorName); //$NON-NLS-1$
  }
  return msg;
}

origin: teiid/teiid

public String getStausMessage() {
  String msg = ""; //$NON-NLS-1$
  ExecutionFactory<Object, Object> ef = getExecutionFactory();
  
  if(ef != null) {
    if (ef.isSourceRequired()) {
      
      Object conn = null;
      try {
        conn = getConnectionFactory();
      } catch (TranslatorException e) {
        // treat this as connection not found. 
      }
      
      if (conn == null) {
        msg = QueryPlugin.Util.getString("datasource_not_found", this.connectionName); //$NON-NLS-1$
      }
    }
  }
  else {
    msg = QueryPlugin.Util.getString("translator_not_found", this.translatorName); //$NON-NLS-1$
  }
  return msg;
}

origin: org.teiid/teiid-runtime

if (cm.getExecutionFactory().isSourceRequired() && vdb.getStatus() == Status.ACTIVE) {
  severity = Severity.ERROR;
origin: org.jboss.teiid/teiid-engine

  this.connectionFactory = this.manager.getConnectionFactory();
} catch (TranslatorException e) {
  if (this.connector.isSourceRequired()) {
    throw e;
  this.connection = this.connector.getConnection(this.connectionFactory, securityContext);
if (this.connection == null && this.connector.isSourceRequired()) {
  throw new TranslatorException(QueryPlugin.Event.TEIID31108, QueryPlugin.Util.getString("datasource_not_found", this.manager.getConnectionName())); //$NON-NLS-1$);
origin: org.teiid/teiid-engine

  this.connectionFactory = this.manager.getConnectionFactory();
} catch (TranslatorException e) {
  if (this.connector.isSourceRequired()) {
    throw e;
  this.connection = this.connector.getConnection(this.connectionFactory, securityContext);
if (this.connection == null && this.connector.isSourceRequired()) {
  throw new TranslatorException(QueryPlugin.Event.TEIID31108, QueryPlugin.Util.getString("datasource_not_found", this.manager.getConnectionName())); //$NON-NLS-1$);
origin: teiid/teiid

  this.connectionFactory = this.manager.getConnectionFactory();
} catch (TranslatorException e) {
  if (this.connector.isSourceRequired()) {
    throw e;
  this.connection = this.connector.getConnection(this.connectionFactory, securityContext);
if (this.connection == null && this.connector.isSourceRequired()) {
  throw new TranslatorException(QueryPlugin.Event.TEIID31108, QueryPlugin.Util.getString("datasource_not_found", this.manager.getConnectionName())); //$NON-NLS-1$);
org.teiid.translatorExecutionFactoryisSourceRequired

Javadoc

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

Popular methods of ExecutionFactory

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

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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