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 |
static ParameterConversion |
CONVERT_ALL_PARAMETERS_CONVERSION |
protected Supplier<Map<String,Object>> |
customPropertiesSupplier
Used for configuring the cypher modification providers.
|
| Modifier | Constructor and Description |
|---|---|
|
AbstractConfigurableDriver() |
protected |
AbstractConfigurableDriver(Supplier<Map<String,Object>> customPropertiesSupplier)
This is only provided for the embedded driver that can take a preconfigured, embedded database
without any way to add configuration properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration config) |
Configuration |
getConfiguration() |
Function<String,String> |
getCypherModification() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getTransactionFactorySupplier, newTransaction, request, request, requiresTransaction, setTransactionManagerpublic static final ParameterConversion CONVERT_ALL_PARAMETERS_CONVERSION
protected Configuration configuration
protected final Supplier<Map<String,Object>> customPropertiesSupplier
getConfiguration() and reads the
custom properties from the common Configuration.public AbstractConfigurableDriver()
protected AbstractConfigurableDriver(Supplier<Map<String,Object>> customPropertiesSupplier)
customPropertiesSupplier - public void configure(Configuration config)
public Configuration getConfiguration()
getConfiguration in interface Driverpublic final Function<String,String> getCypherModification()
getCypherModification in interface DriverCopyright © 2015–2019 Neo Technology, Inc.. All rights reserved.