Class ConnectionFactoryImpl
java.lang.Object
cz.cvut.kbss.ontodriver.rdf4j.connector.ConnectionFactoryImpl
- All Implemented Interfaces:
ConnectionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionFactoryImpl
(StorageConnector connector) ConnectionFactoryImpl
(StorageConnector connector, ConnectionFactoryConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this factoryCreates a storage connection.boolean
isOpen()
Whether this factory is open.void
setRepository
(org.eclipse.rdf4j.repository.Repository repository) Sets the underlying repository.
-
Constructor Details
-
ConnectionFactoryImpl
-
ConnectionFactoryImpl
-
-
Method Details
-
createStorageConnection
Description copied from interface:ConnectionFactory
Creates a storage connection.- Specified by:
createStorageConnection
in interfaceConnectionFactory
- Returns:
- New storage connection
-
setRepository
public void setRepository(org.eclipse.rdf4j.repository.Repository repository) Description copied from interface:ConnectionFactory
Sets the underlying repository.Note that this functionality is supported only for in-memory stores.
- Specified by:
setRepository
in interfaceConnectionFactory
- Parameters:
repository
- The new repository
-
close
Description copied from interface:ConnectionFactory
Closes this factory- Specified by:
close
in interfaceConnectionFactory
- Throws:
Rdf4jDriverException
- When storage access error occursOntoDriverException
-
isOpen
public boolean isOpen()Description copied from interface:ConnectionFactory
Whether this factory is open.- Specified by:
isOpen
in interfaceConnectionFactory
- Returns:
- Factory status
-