public abstract class AbstractConfigurableDriver extends Object implements Driver
Configuration object, which is used to register the
driver appropriately. This object contains of one or more key-value
pairs. Every driver configuration must contain a mandatory key "URI", whose corresponding value is
a text representation of the driver uri, for example:
setConfig("URI", "http://username:password@hostname:port")
if credentials are not present the URI, they can be specified in one of
two ways, either as a plain text username/password key-values pair in the configuration e.g.
setConfig("username", "bilbo")
setConfig("password", "hobbit")
or, alternatively using the "credentials" key
setConfig("credentials", new UsernamePasswordCredentials("bilbo", "hobbit")| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
protected TransactionManager |
transactionManager |
| Constructor and Description |
|---|
AbstractConfigurableDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config) |
Configuration |
getConfiguration() |
void |
setTransactionManager(TransactionManager transactionManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, newTransaction, request, requiresTransactionprotected Configuration configuration
protected TransactionManager transactionManager
public void configure(Configuration config)
public void setTransactionManager(TransactionManager transactionManager)
setTransactionManager in interface Driverpublic Configuration getConfiguration()
getConfiguration in interface DriverCopyright © 2018 Neo Technology, Inc.. All rights reserved.