public final class DriverManager extends Object
Service for obtaining instances of Drivers and Connection instances.
Driver,
Connection| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection(String theURL,
Options theOptions)
Obtain a connection to the database at the specified URL
|
Driver |
getDriver(String theURL)
Return a Driver suitable for opening the provided database URL
|
static DriverManager |
getInstance() |
void |
register(Driver theDriver) |
public static DriverManager getInstance()
public void register(Driver theDriver)
public Driver getDriver(String theURL) throws StardogException
theURL - the database URLStardogException - if no driver is foundpublic Connection getConnection(String theURL, Options theOptions) throws StardogException
theURL - the database URL WITHOUT any propertiestheOptions - the connection optionsStardogException - if there is an error while obtaining the connection.Copyright © 2010-2016 Stardog Union. All Rights Reserved.