Class SnapshotConnectorFactory
java.lang.Object
cz.cvut.kbss.ontodriver.jena.connector.ConnectorFactory
cz.cvut.kbss.ontodriver.jena.connector.SnapshotConnectorFactory
- All Implemented Interfaces:
Closeable
Creates connectors implementing the
JenaOntoDriverProperties.SNAPSHOT
transactional strategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this resource releasing any sub-resources it holds.Creates a storage connector.void
Reloads data from storage if it is a file-based one.void
setDataset
(org.apache.jena.query.Dataset dataset) Sets dataset on the underlying connector.Methods inherited from class cz.cvut.kbss.ontodriver.jena.connector.ConnectorFactory
createInferredConnector, isOpen
-
Constructor Details
-
SnapshotConnectorFactory
-
-
Method Details
-
createConnector
Description copied from class:ConnectorFactory
Creates a storage connector.- Specified by:
createConnector
in classConnectorFactory
- Returns:
- storage connector
-
reloadStorage
public void reloadStorage()Description copied from class:ConnectorFactory
Reloads data from storage if it is a file-based one.Does nothing for other types of storage.
- Specified by:
reloadStorage
in classConnectorFactory
-
setDataset
public void setDataset(org.apache.jena.query.Dataset dataset) Description copied from class:ConnectorFactory
Sets dataset on the underlying connector.Not that this operation is supported only for in-memory storage.
- Specified by:
setDataset
in classConnectorFactory
- Parameters:
dataset
- Dataset to set
-
close
Description copied from interface:Closeable
Closes this resource releasing any sub-resources it holds.After closing the resource is not usable any more and calling methods on it (except
close
andisOpen
) will result inIllegalStateException
.Calling
close
on already closed resource does nothing.- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classConnectorFactory
- Throws:
JenaDriverException
-