|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Driver
The interface that any Driver must implement. A driver will provide a connection implementation
specific to its underlying protocol. To {#link #connect}, you must provide a valid connection string for the
protocol. Use ConnectionConfiguration 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 AdminClient implementation.
If the underlying protocol supports admin operations then createAdminClient(String) function can be used to
perform admin operations.
| Method Summary | |
|---|---|
boolean |
acceptsURL(String theURL)
Whether or not this driver can provide a connection for the provided URL |
Connection |
connect(String theURL,
Properties theProperties)
Open a connection to the database |
com.clarkparsia.stardog.snarl.admin.client.AdminClient<?> |
createAdminClient(String theURL)
[Optional] Creates an AdminClient 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 |
| Method Detail |
|---|
Connection connect(String theURL,
Properties theProperties)
throws StardogException
theURL - the URL of the databasetheProperties - any properties needed for the connection, such as timeouts or username/pw
StardogException - if the driver is unable to establish the connection
com.clarkparsia.stardog.snarl.admin.client.AdminClient<?> createAdminClient(String theURL)
throws StardogException,
UnsupportedOperationException
AdminClient to the database if the underlying protocol supports admin operations.
theURL - the URL of the database
StardogException - if the driver is unable to establish the connection
UnsupportedOperationException - if the driver does not support admin operationsint getMajorVersion()
int getMinorVersion()
boolean acceptsURL(String theURL)
theURL - the URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||