@Test public void testRemove() throws IOException { final VirtuosoTripleTransaction transaction = (VirtuosoTripleTransaction) this.store .begin(false); final Statement testStatement = createFakeStatement(); transaction.add(testStatement); checkStatementExists(transaction, testStatement, true); transaction.remove(testStatement); checkStatementExists(transaction, testStatement, false); transaction.end(true); final TripleTransaction checkTransaction = this.store.begin(true); checkStatementExists(checkTransaction, testStatement, false); checkTransaction.end(false); }
@Override public TripleTransaction begin(final boolean readOnly) throws DataCorruptedException, IOException { if (existsTransactionMarker()) { throw new DataCorruptedException("The triple store performed a bulk operation " + "that didn't complete successfully."); } return new VirtuosoTripleTransaction(this, readOnly); }
VirtuosoTripleStore implements TripleStore { @Override public TripleTransaction begin(final boolean readOnly) throws DataCorruptedException, IOException { if (existsTransactionMarker()) { throw new DataCorruptedException("The triple store performed a bulk operation " + "that didn't complete successfully."); } return new VirtuosoTripleTransaction(this, readOnly); } }
VirtuosoTripleStore implements TripleStore { @Override public TripleTransaction begin(final boolean readOnly) throws DataCorruptedException, IOException { if (existsTransactionMarker()) { throw new DataCorruptedException("The triple store performed a bulk operation " + "that didn't complete successfully."); } return new VirtuosoTripleTransaction(this, readOnly); } VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password);  VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password, @Nullable final Boolean pooling,
            @Nullable final Integer batchSize, @Nullable final Integer fetchSize,
            @Nullable final String markerFilename); }
VirtuosoTripleStore implements TripleStore { @Override public TripleTransaction begin(final boolean readOnly) throws DataCorruptedException, IOException { if (existsTransactionMarker()) { throw new DataCorruptedException("The triple store performed a bulk operation " + "that didn't complete successfully."); } return new VirtuosoTripleTransaction(this, readOnly); } VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password);  VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password, @Nullable final Boolean pooling,
            @Nullable final Integer batchSize, @Nullable final Integer fetchSize,
            @Nullable final String markerFilename); @Override void init(); @Override TripleTransaction begin(final boolean readOnly); @Override void reset(); @Override void close(); @Override String toString(); }
VirtuosoTripleStore implements TripleStore { @Override public TripleTransaction begin(final boolean readOnly) throws DataCorruptedException, IOException { if (existsTransactionMarker()) { throw new DataCorruptedException("The triple store performed a bulk operation " + "that didn't complete successfully."); } return new VirtuosoTripleTransaction(this, readOnly); } VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password);  VirtuosoTripleStore(final FileSystem fileSystem, @Nullable final String host,
            @Nullable final Integer port, @Nullable final String username,
            @Nullable final String password, @Nullable final Boolean pooling,
            @Nullable final Integer batchSize, @Nullable final Integer fetchSize,
            @Nullable final String markerFilename); @Override void init(); @Override TripleTransaction begin(final boolean readOnly); @Override void reset(); @Override void close(); @Override String toString();  }