|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphdb.factory.GraphDatabaseBuilder
public class GraphDatabaseBuilder
Builder for GraphDatabaseServices that allows for setting and loading configuration.
Nested Class Summary | |
---|---|
static interface |
GraphDatabaseBuilder.DatabaseCreator
|
Constructor Summary | |
---|---|
GraphDatabaseBuilder(GraphDatabaseBuilder.DatabaseCreator creator)
|
Method Summary | |
---|---|
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(GraphDatabaseSetting setting,
String value)
Set a database setting to a particular value. |
GraphDatabaseBuilder |
setConfig(Map<String,String> config)
Set a map of config settings into the builder. |
GraphDatabaseBuilder |
setConfig(String name,
String value)
Deprecated. Use setConfig with explicit GraphDatabaseSetting instead Set unvalidated config option |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphDatabaseBuilder(GraphDatabaseBuilder.DatabaseCreator creator)
Method Detail |
---|
public GraphDatabaseBuilder setConfig(GraphDatabaseSetting setting, String value)
setting
- value
-
public GraphDatabaseBuilder setConfig(String name, String value)
name
- value
-
public GraphDatabaseBuilder setConfig(Map<String,String> config)
config
-
public GraphDatabaseBuilder loadPropertiesFromFile(String fileName) throws IllegalArgumentException
fileName
-
IllegalArgumentException
- if the builder was unable to load from the given filenamepublic GraphDatabaseBuilder loadPropertiesFromURL(URL url) throws IllegalArgumentException
url
-
IllegalArgumentException
public GraphDatabaseService newGraphDatabase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |