| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL |
static String |
SYSTEM_URL |
| Constructor and Description |
|---|
EmbeddedDriver(com.google.inject.Provider<com.complexible.stardog.Kernel> theKernelProvider,
OptionalConstructorParam<Set<ConnectionView>> theConnectionViews,
OptionalConstructorParam<Set<AdminConnectionView>> theAdminConnectionViews) |
| 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. |
boolean |
equals(Object theObj) |
int |
getMajorVersion()
Return the major version of this driver
|
int |
getMinorVersion()
Return the minor version of this driver
|
int |
hashCode() |
public static final String BASE_URL
public static final String SYSTEM_URL
@Inject
public EmbeddedDriver(com.google.inject.Provider<com.complexible.stardog.Kernel> theKernelProvider,
OptionalConstructorParam<Set<ConnectionView>> theConnectionViews,
OptionalConstructorParam<Set<AdminConnectionView>> theAdminConnectionViews)
public boolean acceptsURL(String theURL)
acceptsURL in interface DrivertheURL - the URLpublic Connection connect(String theURL, Options theOptions) throws StardogException
connect in interface DrivertheURL - 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 connectionpublic AdminConnection connectAdmin(String theURL, Options theOptions) throws StardogException, UnsupportedOperationException
AdminConnection to the database if the underlying protocol supports admin operations.connectAdmin in interface DrivertheURL - 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 operationspublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface DriverCopyright © 2010-2016 Stardog Union. All Rights Reserved.