public class GraphDatabaseBuilder extends Object
GraphDatabaseServices 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.
|
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(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(Setting<?> setting, String value)
@Deprecated public GraphDatabaseBuilder setConfig(String name, String value)
Setting instead@Deprecated public GraphDatabaseBuilder setConfig(Map<String,String> config)
Setting insteadpublic GraphDatabaseBuilder loadPropertiesFromFile(String fileName) throws IllegalArgumentException
IllegalArgumentException - if the builder was unable to load from the given filenamepublic GraphDatabaseBuilder loadPropertiesFromURL(URL url) throws IllegalArgumentException
IllegalArgumentExceptionpublic GraphDatabaseService newGraphDatabase()
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.