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:
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
      See Also:
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, AuthToken authToken, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided AuthToken and ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - the auth token
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, AuthToken authToken, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthToken, ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - the auth token
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, AuthTokenManager authTokenManager, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager and ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - the auth token manager
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(String uri, AuthTokenManager authTokenManager, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager, ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - the auth token manager
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, AuthToken authToken, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided AuthToken and ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - the auth token
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, AuthToken authToken, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthToken, ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      authToken - the auth token
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, AuthTokenManager authTokenManager, ClientCertificateManager clientCertificateManager)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager and ClientCertificateManager.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - the auth token manager
      clientCertificateManager - the client certificate manager
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19
    • driver

      @Preview(name="mTLS") public static Driver driver(URI uri, AuthTokenManager authTokenManager, ClientCertificateManager clientCertificateManager, Config config)
      Returns a driver for a Neo4j instance with the provided AuthTokenManager, ClientCertificateManager and driver Config.
      Parameters:
      uri - the URL to a Neo4j instance
      authTokenManager - the auth token manager
      clientCertificateManager - the client certificate manager
      config - the driver config
      Returns:
      a new driver to the database instance specified by the URL
      Since:
      5.19