Search in sources :

Example 1 with DatasetGraphWithLock

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);
}
Also used : DatasetGraphWithLock(org.apache.jena.sparql.core.DatasetGraphWithLock) DatasetGraph(org.apache.jena.sparql.core.DatasetGraph)

Example 2 with DatasetGraphWithLock

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);
}
Also used : DatasetGraphWithLock(org.apache.jena.sparql.core.DatasetGraphWithLock) DatasetGraph(org.apache.jena.sparql.core.DatasetGraph)

Aggregations

DatasetGraph (org.apache.jena.sparql.core.DatasetGraph)2 DatasetGraphWithLock (org.apache.jena.sparql.core.DatasetGraphWithLock)2