Class GraphDatabase

java.lang.Object
org.neo4j.driver.GraphDatabase

public final class GraphDatabase extends Object
Creates drivers, optionally letting you driver(URI, Config) to configure them.
Since:
1.0
See Also:
  • Method Details

    • driver

      public static Driver driver(String uri)
      Return a driver for a Neo4j instance with the default configuration settings
      Parameters:
      uri - the URL to a Neo4j instance
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(URI uri)
      Return a driver for a Neo4j instance with the default configuration settings
      Parameters:
      uri - the URL to a Neo4j instance
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(URI uri, Config config)
      Return a driver for a Neo4j instance with custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(String uri, Config config)
      Return a driver for a Neo4j instance with custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(String uri, AuthToken authToken)
      Return a driver for a Neo4j instance with the default configuration settings
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - authentication to use, see AuthTokens
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(URI uri, AuthToken authToken)
      Return a driver for a Neo4j instance with the default configuration settings
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - authentication to use, see AuthTokens
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(String uri, AuthToken authToken, Config config)
      Return a driver for a Neo4j instance with custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - authentication to use, see AuthTokens
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(URI uri, AuthToken authToken, Config config)
      Return a driver for a Neo4j instance with custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - authentication to use, see AuthTokens
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
    • driver

      public static Driver driver(URI uri, AuthTokenManager authTokenManager)
      Returns a driver for a Neo4j instance with the default configuration settings and the provided AuthTokenManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - manager to use
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.8
      See Also:
    • driver

      public static Driver driver(String uri, AuthTokenManager authTokenManager)
      Returns a driver for a Neo4j instance with the default configuration settings and the provided AuthTokenManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - manager to use
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.8
      See Also:
    • driver

      public static Driver driver(URI uri, AuthTokenManager authTokenManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager and custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - manager to use
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.8
      See Also:
    • driver

      public static Driver driver(String uri, AuthTokenManager authTokenManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager and custom configuration.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - manager to use
      config - user defined configuration
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.8
      See Also: