/** * Get the teiid sql syntax service * * @param teiidServerVersion * @return instance of {@link IQueryService} * @throws Exception */ public IQueryService getQueryService(ITeiidServerVersion teiidServerVersion) throws Exception { IExecutionAdminFactory factory = search(teiidServerVersion); if (factory == null) throw new Exception(NLS.bind(Messages.NoExecutionAdminFactory, teiidServerVersion)); return factory.getQueryService(); }
/** * Get an {@link IExecutionAdmin} applicable for the given server * * @param teiidServer * @return instance of {@link IExecutionAdmin} * @throws Exception */ public IExecutionAdmin getExecutionAdmin(ITeiidServer teiidServer) throws Exception { IExecutionAdminFactory factory = search(teiidServer.getServerVersion()); if (factory == null) throw new Exception( "No ExecutionAdmin factory registered for teiid server version " + teiidServer.getServerVersion()); // $NON-NLS-1$ return factory.createExecutionAdmin(teiidServer); }