use of org.apache.jena.sparql.core.DatasetGraphWithLock in project jena by apache.
the class TestTransactionDSGWithLockWithAbort method create.
@Override
protected Dataset create() {
// The tests don't actually add/delete data.
DatasetGraph dsg = DatasetGraphFactory.createTxnMem();
DatasetGraphWithLock dsgl = new DatasetGraphWithLock(dsg, true);
return DatasetFactory.wrap(dsgl);
}
use of org.apache.jena.sparql.core.DatasetGraphWithLock in project jena by apache.
the class TestTransactionDSGWithLockNoAbort method create.
@Override
protected Dataset create() {
DatasetGraph dsg = DatasetGraphFactory.create();
DatasetGraphWithLock dsgl = new DatasetGraphWithLock(dsg, false);
return DatasetFactory.wrap(dsgl);
}
Aggregations