public interface Driver
The interface that any Driver must implement. A driver will provide a connection implementation
specific to its underlying protocol. To connect(java.lang.String, com.complexible.common.base.Options), you must provide a valid connection string for the
protocol. Use LoginConnectionConfiguration to programmatically create a connection string and use the appropriate
Driver to connect to Stardog.
Optionally, a driver can support performing admin operations by providing an AdminConnection implementation.
If the underlying protocol supports admin operations then connectAdmin(String, Options) function can be used to
perform admin operations.
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String theURL)
Whether or not this driver can provide a connection for the provided URL
|
Connection |
connect(String theURL,
Options theOptions)
Open a connection to the database
|
AdminConnection |
connectAdmin(String theURL,
Options theOptions)
[Optional] Creates an
AdminConnection to the database if the underlying protocol supports admin operations. |
int |
getMajorVersion()
Return the major version of this driver
|
int |
getMinorVersion()
Return the minor version of this driver
|
Connection connect(String theURL, Options theOptions) throws StardogException
theURL - the URL of the databasetheOptions - any options needed for the connection, such as timeouts or username/pwStardogException - if the driver is unable to establish the connectionAdminConnection connectAdmin(String theURL, Options theOptions) throws StardogException, UnsupportedOperationException
AdminConnection to the database if the underlying protocol supports admin operations.theURL - the URL of the databasetheOptions - any options needed for the connection, such as timeouts or username/pwStardogException - if the driver is unable to establish the connectionUnsupportedOperationException - if the driver does not support admin operationsint getMajorVersion()
int getMinorVersion()
boolean acceptsURL(String theURL)
theURL - the URLCopyright © 2010-2016 Stardog Union. All Rights Reserved.