@Override public Object getConnectionFactory() throws TranslatorException { if (getConnectionName() == null) { return null; } ConnectionFactoryProvider<?> connectionFactoryProvider = connectionFactoryProviders.get(getConnectionName()); if (connectionFactoryProvider != null) { return connectionFactoryProvider.getConnectionFactory(); } return super.getConnectionFactory(); } };
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 != null) { ef = cm.getExecutionFactory(); cf = cm.getConnectionFactory();
Object connectionFactory = null; try { connectionFactory = getConnectionFactory();
Object connectionFactory = null; try { connectionFactory = getConnectionFactory();
Object connectionFactory = null; try { connectionFactory = getConnectionFactory();
if (cm != null) { ef = cm.getExecutionFactory(); cf = cm.getConnectionFactory();
LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.requestMsg.getAtomicRequestID(), "Processing NEW request:", this.requestMsg.getCommand()}); //$NON-NLS-1$ try { this.connectionFactory = this.manager.getConnectionFactory(); } catch (TranslatorException e) { if (this.connector.isSourceRequired()) {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.requestMsg.getAtomicRequestID(), "Processing NEW request:", this.requestMsg.getCommand()}); //$NON-NLS-1$ try { this.connectionFactory = this.manager.getConnectionFactory(); } catch (TranslatorException e) { if (this.connector.isSourceRequired()) {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, new Object[] {this.requestMsg.getAtomicRequestID(), "Processing NEW request:", this.requestMsg.getCommand()}); //$NON-NLS-1$ try { this.connectionFactory = this.manager.getConnectionFactory(); } catch (TranslatorException e) { if (this.connector.isSourceRequired()) {