@Test public void Commit() { STMT stmt = new STMT(new BID(), RDF.type, RDFS.Class); toBeRemoved = Collections.singleton(stmt); connection.update(null, Collections.singleton(stmt)); tx.commit(); assertExists(stmt.getSubject(), null, null, null); }
@Override public void commit() { try { if (!rollbackOnly) { conn.commit(); } else { throw new RepositoryException("Tx was set to rollbackOnly"); } } catch (SQLException e) { throw new RepositoryException(e); } }
VirtuosoTransaction implements RDFBeanTransaction { @Override public void commit() { try { if (!rollbackOnly) { conn.commit(); } else { throw new RepositoryException("Tx was set to rollbackOnly"); } } catch (SQLException e) { throw new RepositoryException(e); } } }
VirtuosoTransaction implements RDFBeanTransaction { @Override public void commit() { try { if (!rollbackOnly) { conn.commit(); } else { throw new RepositoryException("Tx was set to rollbackOnly"); } } catch (SQLException e) { throw new RepositoryException(e); } } VirtuosoTransaction(Connection connection, boolean readOnly, int txTimeout, int isolationLevel); }
VirtuosoTransaction implements RDFBeanTransaction { @Override public void commit() { try { if (!rollbackOnly) { conn.commit(); } else { throw new RepositoryException("Tx was set to rollbackOnly"); } } catch (SQLException e) { throw new RepositoryException(e); } } VirtuosoTransaction(Connection connection, boolean readOnly, int txTimeout, int isolationLevel); @Override void commit(); @Override boolean isActive(); @Override boolean isRollbackOnly(); @Override void prepare(); @Override void rollback(); @Override void setRollbackOnly(); }
VirtuosoTransaction implements RDFBeanTransaction { @Override public void commit() { try { if (!rollbackOnly) { conn.commit(); } else { throw new RepositoryException("Tx was set to rollbackOnly"); } } catch (SQLException e) { throw new RepositoryException(e); } } VirtuosoTransaction(Connection connection, boolean readOnly, int txTimeout, int isolationLevel); @Override void commit(); @Override boolean isActive(); @Override boolean isRollbackOnly(); @Override void prepare(); @Override void rollback(); @Override void setRollbackOnly();  }