@Override public Connection getConnection(DataSource ds) throws TranslatorException { try { return ds.getConnection(); } catch (SQLException e) { throw new TranslatorException(e); } }
AtomicResultsMessage exceptionOccurred(TranslatorException exception) throws TeiidComponentException, TeiidProcessingException { if(workItem.requestMsg.supportsPartialResults()) { AtomicResultsMessage emptyResults = new AtomicResultsMessage(new List[0]); emptyResults.setWarnings(Arrays.asList((Exception)exception)); emptyResults.setFinalRow(this.rowsProcessed); return emptyResults; } fullyCloseSource(); if (exception.getCause() instanceof TeiidComponentException) { throw (TeiidComponentException)exception.getCause(); } if (exception.getCause() instanceof TeiidProcessingException) { throw (TeiidProcessingException)exception.getCause(); } throw new TeiidProcessingException(QueryPlugin.Event.TEIID30504, exception, this.getConnectorName() + ": " + exception.getMessage()); //$NON-NLS-1$ }
@Override public N1qlQueryResult execute(String statement) throws TranslatorException { N1qlQueryResult result = this.bucket.query(N1qlQuery.simple(statement, N1qlParams.build().consistency(scanConsistency))); if (!result.finalSuccess()) { TranslatorException te = new TranslatorException(UTIL.gs("query_error", result.errors())); //$NON-NLS-1$ te.setCode(result.status()); throw te; } return result; }
@Override public QueryResponse query(SolrQuery params) throws TranslatorException { try { return server.query(params); } catch (SolrServerException e) { throw new TranslatorException(e); } catch (IOException e) { throw new TranslatorException(e); } }
AtomicResultsMessage exceptionOccurred(TranslatorException exception) throws TeiidComponentException, TeiidProcessingException { if(workItem.requestMsg.supportsPartialResults()) { AtomicResultsMessage emptyResults = new AtomicResultsMessage(new List[0]); emptyResults.setWarnings(Arrays.asList((Exception)exception)); emptyResults.setFinalRow(this.rowsProcessed); return emptyResults; } fullyCloseSource(); if (exception.getCause() instanceof TeiidComponentException) { throw (TeiidComponentException)exception.getCause(); } if (exception.getCause() instanceof TeiidProcessingException) { throw (TeiidProcessingException)exception.getCause(); } throw new TeiidProcessingException(QueryPlugin.Event.TEIID30504, exception, this.getConnectorName() + ": " + exception.getMessage()); //$NON-NLS-1$ }
public byte[] getBinaryVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getBinaryVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30470, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30471, e); } }
AtomicResultsMessage exceptionOccurred(TranslatorException exception) throws TeiidComponentException, TeiidProcessingException { if(workItem.requestMsg.supportsPartialResults()) { AtomicResultsMessage emptyResults = new AtomicResultsMessage(new List[0]); emptyResults.setWarnings(Arrays.asList((Exception)exception)); emptyResults.setFinalRow(this.rowsProcessed); return emptyResults; } fullyCloseSource(); if (exception.getCause() instanceof TeiidComponentException) { throw (TeiidComponentException)exception.getCause(); } if (exception.getCause() instanceof TeiidProcessingException) { throw (TeiidProcessingException)exception.getCause(); } throw new TeiidProcessingException(QueryPlugin.Event.TEIID30504, exception, this.getConnectorName() + ": " + exception.getMessage()); //$NON-NLS-1$ }
public String getCharacterVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getCharacterVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30472, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30473, e); } }
@Override public LukeResponse metadata(LukeRequest request) throws TranslatorException { try { return request.process(this.server); } catch (SolrServerException e) { throw new TranslatorException(e); } catch (IOException e) { throw new TranslatorException(e); } }
public String[] getVDBResourcePaths() throws TranslatorException { try { return metadata.getVDBResourcePaths(); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30474, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30475, e); } }
public String getCharacterVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getCharacterVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30472, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30473, e); } }
public String[] getVDBResourcePaths() throws TranslatorException { try { return metadata.getVDBResourcePaths(); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30474, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30475, e); } }
public byte[] getBinaryVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getBinaryVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30470, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30471, e); } }
public String[] getVDBResourcePaths() throws TranslatorException { try { return metadata.getVDBResourcePaths(); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30474, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30475, e); } }
@Override public QueryResponse query(SolrQuery params) throws TranslatorException { try { return server.query(params); } catch (SolrServerException e) { throw new TranslatorException(e); } catch (IOException e) { throw new TranslatorException(e); } }
public String getCharacterVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getCharacterVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30472, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30473, e); } }
@Override public LukeResponse metadata(LukeRequest request) throws TranslatorException { try { return request.process(this.server); } catch (SolrServerException e) { throw new TranslatorException(e); } catch (IOException e) { throw new TranslatorException(e); } }
public byte[] getBinaryVDBResource(String resourcePath) throws TranslatorException { try { return metadata.getBinaryVDBResource(resourcePath); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30470, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30471, e); } }
@Override public Table getTable(String fullName) throws TranslatorException { try { Object groupId = metadata.getGroupID(fullName); return getGroup(groupId); } catch (QueryMetadataException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30466, e); } catch (TeiidComponentException e) { throw new TranslatorException(QueryPlugin.Event.TEIID30467, e); } }
public GetDeletedExecutionImpl( ProcedureExecutionParent procedureExecutionParent) throws TranslatorException { this.parent = procedureExecutionParent; try { factory = DatatypeFactory.newInstance(); } catch (DatatypeConfigurationException e) { throw new TranslatorException(e.getMessage()); } }