public class GraphDatabaseBuilder extends Object
GraphDatabaseService
s that allows for setting and loading
configuration.Modifier and Type | Class and Description |
---|---|
static interface |
GraphDatabaseBuilder.DatabaseCreator |
static class |
GraphDatabaseBuilder.Delegator |
Constructor and Description |
---|
GraphDatabaseBuilder(GraphDatabaseBuilder.DatabaseCreator creator) |
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)
Deprecated.
Use setConfig with explicit
Setting instead |
GraphDatabaseBuilder |
setConfig(org.neo4j.graphdb.config.Setting<?> setting,
String value)
Set a database setting to a particular value.
|
GraphDatabaseBuilder |
setConfig(String name,
String value)
Deprecated.
Use setConfig with explicit
Setting instead. |
public GraphDatabaseBuilder(GraphDatabaseBuilder.DatabaseCreator creator)
public GraphDatabaseBuilder setConfig(org.neo4j.graphdb.config.Setting<?> setting, String value)
setting
- Database setting to setvalue
- New value of the setting@Deprecated public GraphDatabaseBuilder setConfig(String name, String value)
Setting
instead.name
- Name of the settingvalue
- New value of the setting@Deprecated public GraphDatabaseBuilder setConfig(Map<String,String> config)
Setting
insteadconfig
- Map of configuration settingspublic GraphDatabaseBuilder loadPropertiesFromFile(String fileName) throws IllegalArgumentException
fileName
- Filename of properties file to useIllegalArgumentException
- if the builder was unable to load from the given filenamepublic GraphDatabaseBuilder loadPropertiesFromURL(URL url) throws IllegalArgumentException
url
- URL of properties file to useIllegalArgumentException
public org.neo4j.graphdb.GraphDatabaseService newGraphDatabase()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.