private void close() throws E { if (null != iteration) { try { iteration.close(); } finally { iteration = null; } } } }
public void close() throws QueryEvaluationException { delegate.close(); }
@Override public void close() throws QueryEvaluationException { iter.close(); } };
@Override public void close() throws QueryEvaluationException { if(open) { src.close(); open = false; } }
public void close() { if (open) { open = false; try { src.close(); } catch (Exception e) { throw new RuntimeException(e); } } }
public void close() { if (open) { open = false; try { src.close(); } catch (Exception e) { throw new RuntimeException(e); } } }
public void close() { try { delegate.close(); } catch (Exception e) { throw new ObjectStoreException(e); } }
@Override public void close() { entityDataIterators.remove(this); try { subjectItr.close(); } catch (RepositoryException e) {/* ignore */} try { connection.close(); } catch (RepositoryException e) { /* ignore */ } }
@Override public void close() throws SailException { try { iter.close(); } catch (RippleException e) { throw new SailException(e); } }
@Override public void close() { try { finalizeQuery(queryId); it.close(); } catch (RuntimeException ex) { throw ex; } catch (Exception ex) { throw new RuntimeException(ex); } }
public void close() throws QueryEvaluationException { if (open) { open = false; try { src.close(); } catch (SailException ex) { throw new QueryEvaluationException(ex); } } }
public void close() throws QueryEvaluationException { try { baseIteration.close(); } catch (SailException e) { throw new QueryEvaluationException(e); } }
public static void close(Iterator<?> iter) { try { if (iter instanceof CloseableIteration) ((CloseableIteration<?,?>) iter).close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new ElmoIOException(e); } }
public void close() { try { delegate.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new ElmoIOException(e); } }
@Override public void closeIterator(Iterator<?> iter) { super.closeIterator(iter); if (iter instanceof StatementIterator) { try { ((StatementIterator) iter).stmts.close(); } catch (RepositoryException e) { throw new ModelException(e); } } }
@Override public String getVersion() throws RyaDAOException { String version = null; final CloseableIteration<RyaStatement, RyaDAOException> versIter = queryEngine.query(new RyaStatement(RTS_SUBJECT_RYA, RTS_VERSION_PREDICATE_RYA, null), conf); if (versIter.hasNext()) { version = versIter.next().getObject().getData(); } versIter.close(); return version; }