com.hp.hpl.jena.sparql.core
Class DatasetGraphWithLock

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetGraphTrackActive
      extended by 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.


Constructor Summary
DatasetGraphWithLock(DatasetGraph dsg)
           
 
Method Summary
 Context getContext()
          Get the context associated with this object - may be null
 boolean isInTransaction()
          Say whether a transaction is active
 void sync()
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetGraphWithLock

public DatasetGraphWithLock(DatasetGraph dsg)
Method Detail

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