@Override public OntopConnection getConnection() throws OntopConnectionException { return dbConnector.getConnection(); } }
@Override public void close() throws OntopConnectionException { dbConnector.close(); }
@Override public void close() throws RepositoryException { //Closes the connection, freeing resources. //If the connection is not in autoCommit mode, //all non-committed operations will be lost. isOpen = false; try { ontopConnection.close(); } catch (Exception e) { throw new RepositoryException(e); } }
private GraphOWLResultSet executeGraph(GraphSPARQLQuery query) throws OntopQueryEvaluationException, OntopConnectionException, OntopReformulationException, OntopResultConversionException { SimpleGraphResultSet resultSet = st.execute(query); return new OntopGraphOWLResultSet(resultSet); }
@Override public boolean getAutoCommit() throws OWLException { try { return conn.getAutoCommit(); } catch (OntopConnectionException e) { throw new OWLException(e); } }
public void setFetchSize(int rows) throws OntopOWLException { try { st.setFetchSize(rows); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
public void setQueryTimeout(int seconds) throws OntopOWLException { try { st.setQueryTimeout(seconds); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
@Override public void close() throws OntopOWLException { try { st.close(); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
@Override public void rollBack() throws OWLException { try { conn.rollBack(); } catch (OntopConnectionException e) { throw new OWLException(e); } }
@Override public boolean connect() throws OntopConnectionException { return dbConnector.connect(); }
public void getMoreResults() throws OntopOWLException { try { st.getMoreResults(); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
@Override public boolean isClosed() throws OWLException { try { return conn.isClosed(); } catch (OntopConnectionException e) { throw new OWLException(e); } }
public int getQueryTimeout() throws OntopOWLException { try { return st.getQueryTimeout(); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
public int getFetchSize() throws OntopOWLException { try { return st.getFetchSize(); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
public int getMaxRows() throws OntopOWLException { try { return st.getMaxRows(); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
public void setMaxRows(int max) throws OntopOWLException { try { st.setMaxRows(max); } catch (OntopConnectionException e) { throw new OntopOWLException(e); } }
@Override public void commit() throws OWLException { try { conn.close(); } catch (OntopConnectionException e) { throw new OWLException(e); } }
@Override public boolean isAutoCommit() throws RepositoryException { //Checks whether the connection is in auto-commit mode. try { return ontopConnection.getAutoCommit(); } catch (OntopConnectionException e) { throw new RepositoryException(e); } }
@Override public void close() throws RepositoryException { //Closes the connection, freeing resources. //If the connection is not in autoCommit mode, //all non-committed operations will be lost. isOpen = false; try { ontopConnection.close(); } catch (Exception e) { throw new RepositoryException(e); } }