org.d2rq.server
Class AutoReloadableDataset

java.lang.Object
  extended by org.d2rq.server.AutoReloadableDataset
All Implemented Interfaces:
Dataset

public class AutoReloadableDataset
extends Object
implements Dataset


Constructor Summary
AutoReloadableDataset(SystemLoader loader, String watchedFile, boolean autoReload)
           
 
Method Summary
 void abort()
           
 void addNamedModel(String uri, Model model)
           
 DatasetGraph asDatasetGraph()
           
 void begin(ReadWrite readWrite)
           
 void checkMappingFileChanged()
          re-init dsg if mapping file has changed
 void close()
           
 void commit()
           
 boolean containsNamedModel(String uri)
           
 void end()
           
 Model getDefaultModel()
           
 Lock getLock()
           
 Model getNamedModel(String uri)
           
 PrefixMapping getPrefixMapping()
           
 boolean hasTruncatedResults()
           
 boolean isInTransaction()
           
 Iterator<String> listNames()
           
 void removeNamedModel(String uri)
           
 void replaceNamedModel(String uri, Model model)
           
 void setDefaultModel(Model model)
           
 boolean supportsTransactions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoReloadableDataset

public AutoReloadableDataset(SystemLoader loader,
                             String watchedFile,
                             boolean autoReload)
Method Detail

checkMappingFileChanged

public void checkMappingFileChanged()
re-init dsg if mapping file has changed


getPrefixMapping

public PrefixMapping getPrefixMapping()

hasTruncatedResults

public boolean hasTruncatedResults()

asDatasetGraph

public DatasetGraph asDatasetGraph()
Specified by:
asDatasetGraph in interface Dataset

getDefaultModel

public Model getDefaultModel()
Specified by:
getDefaultModel in interface Dataset

containsNamedModel

public boolean containsNamedModel(String uri)
Specified by:
containsNamedModel in interface Dataset

getLock

public Lock getLock()
Specified by:
getLock in interface Dataset

getNamedModel

public Model getNamedModel(String uri)
Specified by:
getNamedModel in interface Dataset

listNames

public Iterator<String> listNames()
Specified by:
listNames in interface Dataset

close

public void close()
Specified by:
close in interface Dataset

setDefaultModel

public void setDefaultModel(Model model)
Specified by:
setDefaultModel in interface Dataset

addNamedModel

public void addNamedModel(String uri,
                          Model model)
                   throws LabelExistsException
Specified by:
addNamedModel in interface Dataset
Throws:
LabelExistsException

removeNamedModel

public void removeNamedModel(String uri)
Specified by:
removeNamedModel in interface Dataset

replaceNamedModel

public void replaceNamedModel(String uri,
                              Model model)
Specified by:
replaceNamedModel in interface Dataset

supportsTransactions

public boolean supportsTransactions()
Specified by:
supportsTransactions in interface Dataset

begin

public void begin(ReadWrite readWrite)
Specified by:
begin in interface Dataset

commit

public void commit()
Specified by:
commit in interface Dataset

abort

public void abort()
Specified by:
abort in interface Dataset

isInTransaction

public boolean isInTransaction()
Specified by:
isInTransaction in interface Dataset

end

public void end()
Specified by:
end in interface Dataset