public static class GraphDatabaseBuilder.Delegator extends GraphDatabaseBuilder
GraphDatabaseBuilder.DatabaseCreator, GraphDatabaseBuilder.Delegator
Constructor and Description |
---|
Delegator(GraphDatabaseBuilder actual) |
Modifier and Type | Method and Description |
---|---|
GraphDatabaseBuilder |
loadPropertiesFromFile(String fileName)
Load a Properties file from a given file, and add the settings to
the builder.
|
GraphDatabaseBuilder |
loadPropertiesFromURL(URL url)
Load Properties file from a given URL, and add the settings to
the builder.
|
org.neo4j.graphdb.GraphDatabaseService |
newGraphDatabase()
Create a new database with the configuration registered
through the builder.
|
GraphDatabaseBuilder |
setConfig(Map<String,String> config)
Set a map of configuration settings into the builder.
|
GraphDatabaseBuilder |
setConfig(org.neo4j.graphdb.config.Setting<?> setting,
String value)
Set a database setting to a particular value.
|
GraphDatabaseBuilder |
setConfig(String name,
String value)
Set an unvalidated configuration option.
|
public Delegator(GraphDatabaseBuilder actual)
public GraphDatabaseBuilder setConfig(org.neo4j.graphdb.config.Setting<?> setting, String value)
GraphDatabaseBuilder
setConfig
in class GraphDatabaseBuilder
setting
- Database setting to setvalue
- New value of the settingpublic GraphDatabaseBuilder setConfig(String name, String value)
GraphDatabaseBuilder
setConfig
in class GraphDatabaseBuilder
name
- Name of the settingvalue
- New value of the settingpublic GraphDatabaseBuilder setConfig(Map<String,String> config)
GraphDatabaseBuilder
setConfig
in class GraphDatabaseBuilder
config
- Map of configuration settingspublic GraphDatabaseBuilder loadPropertiesFromFile(String fileName) throws IllegalArgumentException
GraphDatabaseBuilder
loadPropertiesFromFile
in class GraphDatabaseBuilder
fileName
- Filename of properties file to useIllegalArgumentException
- if the builder was unable to load from the given filenamepublic GraphDatabaseBuilder loadPropertiesFromURL(URL url) throws IllegalArgumentException
GraphDatabaseBuilder
loadPropertiesFromURL
in class GraphDatabaseBuilder
url
- URL of properties file to useIllegalArgumentException
public org.neo4j.graphdb.GraphDatabaseService newGraphDatabase()
GraphDatabaseBuilder
newGraphDatabase
in class GraphDatabaseBuilder
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.