@TranslatorProperty(display="Is Source Required", advanced=true) @Override public boolean isSourceRequired() { return delegate.isSourceRequired(); } public void setSourceRequired(boolean value) {
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; }
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; }
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; }
if (cm.getExecutionFactory().isSourceRequired() && vdb.getStatus() == Status.ACTIVE) { severity = Severity.ERROR;
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$);
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$);
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$);