Package com.complexible.stardog.api
Class DriverManager
java.lang.Object
com.complexible.stardog.api.DriverManager
Service for obtaining instances of Drivers and Connection instances.
- Since:
- 0.3
- Version:
- 4.0
- Author:
- Michael Grove, Fernando Hernandez
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String theURL, Options theOptions) Obtain a connection to the database at the specified URLReturn a Driver suitable for opening the provided database URLstatic DriverManagervoid
-
Method Details
-
getInstance
-
register
-
getDriver
Return a Driver suitable for opening the provided database URL- Parameters:
theURL- the database URL- Returns:
- a Driver which can open connections to the database at the provided URL
- Throws:
StardogException- if no driver is found
-
getConnection
Obtain a connection to the database at the specified URL- Parameters:
theURL- the database URL WITHOUT any propertiestheOptions- the connection options- Returns:
- the connection or null if no suitable driver is found.
- Throws:
StardogException- if there is an error while obtaining the connection.
-