@Test public void Execute() { repository.execute(countOp); }
@Override public <RT> RT execute(RDFConnectionCallback<RT> operation) { RDFConnection connection = openConnection(); try { try { RDFBeanTransaction tx = connection.beginTransaction(false, 0, Connection.TRANSACTION_READ_COMMITTED); try { RT retVal = operation.doInConnection(connection); tx.commit(); return retVal; } catch (IOException io) { tx.rollback(); throw io; } } finally { connection.close(); } } catch (IOException io) { throw new RepositoryException(io); } }
RDBRepository implements Repository { @Override public <RT> RT execute(RDFConnectionCallback<RT> operation) { RDFConnection connection = openConnection(); try { try { RDFBeanTransaction tx = connection.beginTransaction(false, 0, Connection.TRANSACTION_READ_COMMITTED); try { RT retVal = operation.doInConnection(connection); tx.commit(); return retVal; } catch (IOException io) { tx.rollback(); throw io; } } finally { connection.close(); } } catch (IOException io) { throw new RepositoryException(io); } } }
RDBRepository implements Repository { @Override public <RT> RT execute(RDFConnectionCallback<RT> operation) { RDFConnection connection = openConnection(); try { try { RDFBeanTransaction tx = connection.beginTransaction(false, 0, Connection.TRANSACTION_READ_COMMITTED); try { RT retVal = operation.doInConnection(connection); tx.commit(); return retVal; } catch (IOException io) { tx.rollback(); throw io; } } finally { connection.close(); } } catch (IOException io) { throw new RepositoryException(io); } } RDBRepository(
            Configuration configuration,
            DataSource dataSource,
            SQLTemplates templates,
            IdSequence idSequence,
            RDFSource... sources); }
RDBRepository implements Repository { @Override public <RT> RT execute(RDFConnectionCallback<RT> operation) { RDFConnection connection = openConnection(); try { try { RDFBeanTransaction tx = connection.beginTransaction(false, 0, Connection.TRANSACTION_READ_COMMITTED); try { RT retVal = operation.doInConnection(connection); tx.commit(); return retVal; } catch (IOException io) { tx.rollback(); throw io; } } finally { connection.close(); } } catch (IOException io) { throw new RepositoryException(io); } } RDBRepository(
            Configuration configuration,
            DataSource dataSource,
            SQLTemplates templates,
            IdSequence idSequence,
            RDFSource... sources); @Override void close(); @Override RT execute(RDFConnectionCallback<RT> operation); @Override void export(Format format, UID context, OutputStream out); @Override void export(Format format, Map<String, String> ns2prefix, UID context, OutputStream out); @Override void load(Format format, InputStream is, @Nullable UID context, boolean replace); @Override void initialize(); @Override RDBConnection openConnection(); }
RDBRepository implements Repository { @Override public <RT> RT execute(RDFConnectionCallback<RT> operation) { RDFConnection connection = openConnection(); try { try { RDFBeanTransaction tx = connection.beginTransaction(false, 0, Connection.TRANSACTION_READ_COMMITTED); try { RT retVal = operation.doInConnection(connection); tx.commit(); return retVal; } catch (IOException io) { tx.rollback(); throw io; } } finally { connection.close(); } } catch (IOException io) { throw new RepositoryException(io); } } RDBRepository(
            Configuration configuration,
            DataSource dataSource,
            SQLTemplates templates,
            IdSequence idSequence,
            RDFSource... sources); @Override void close(); @Override RT execute(RDFConnectionCallback<RT> operation); @Override void export(Format format, UID context, OutputStream out); @Override void export(Format format, Map<String, String> ns2prefix, UID context, OutputStream out); @Override void load(Format format, InputStream is, @Nullable UID context, boolean replace); @Override void initialize(); @Override RDBConnection openConnection();  }