com.hp.hpl.jena.sparql.core
Class DatasetGraphWithLock
java.lang.Object
com.hp.hpl.jena.sparql.core.DatasetGraphTrackActive
com.hp.hpl.jena.sparql.core.DatasetGraphWithLock
- All Implemented Interfaces:
- DatasetGraph, Transactional, Closeable, Sync
public class DatasetGraphWithLock
- extends DatasetGraphTrackActive
- implements Sync
A DatasetGraph that uses the dataset lock to give weak transactional
behaviour, that is the application see transaction but they are not durable.
Only provides multiple-reader OR single-writer, and no write-transction
abort.
| Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphTrackActive |
abort, add, add, addGraph, begin, close, commit, contains, contains, containsGraph, delete, delete, deleteAny, end, find, find, find, findNG, getDefaultGraph, getGraph, getLock, isEmpty, listGraphNodes, removeGraph, setDefaultGraph, size |
DatasetGraphWithLock
public DatasetGraphWithLock(DatasetGraph dsg)
isInTransaction
public boolean isInTransaction()
- Description copied from interface:
Transactional
- Say whether a transaction is active
- Specified by:
isInTransaction in interface Transactional- Specified by:
isInTransaction in class DatasetGraphTrackActive
getContext
public Context getContext()
- Description copied from interface:
DatasetGraph
- Get the context associated with this object - may be null
- Specified by:
getContext in interface DatasetGraph
sync
public void sync()
- Specified by:
sync in interface Sync
toString
public String toString()
- Overrides:
toString in class Object
Licenced under the Apache License, Version 2.0