Interface Neo4jDataSourceExtensions

All Superinterfaces:
CommonDataSource, DataSource, Wrapper
All Known Implementing Classes:
Neo4jDataSource

public sealed interface Neo4jDataSourceExtensions extends DataSource permits Neo4jDataSource
Neo4j specific extensions to a DataSource.
Author:
Michael J. Simons
  • Method Details

    • getDatabaseName

      String getDatabaseName()
      Returns the name of the database to use.
      Returns:
      the name of the database to use
    • setDatabaseName

      void setDatabaseName(String databaseName)
      Configures the database to use.
      Parameters:
      databaseName - a database name
    • getPassword

      String getPassword()
      Returns the password for the user that connects to the database.
      Returns:
      the password for the user that connects to the database
    • setPassword

      void setPassword(String password)
      Configures the password to use.
      Parameters:
      password - a password
    • getPortNumber

      int getPortNumber()
      Returns the port number.
      Returns:
      the port number
    • setPortNumber

      void setPortNumber(int portNumber)
      Configures the port number to use.
      Parameters:
      portNumber - the new port number
    • getServerName

      String getServerName()
      Returns the server name or IP address to connect against.
      Returns:
      the server name
    • setServerName

      void setServerName(String serverName)
      Configures the server name or IP address to connect against.
      Parameters:
      serverName - the new server name
    • getUser

      String getUser()
      Returns the user that should be connected to the database.
      Returns:
      the user
    • setUser

      void setUser(String user)
      Configures the user that should be connected to the database.
      Parameters:
      user - the new user
    • getTransportProtocol

      String getTransportProtocol()
      Returns the transport protocol.
      Returns:
      the transport protocol
    • setTransportProtocol

      void setTransportProtocol(String transportProtocol)
      Configures the transport protocol, might be null or empty, s or ssc.
      Parameters:
      transportProtocol - the new protocol
    • setConnectionProperty

      void setConnectionProperty(String name, String value)
      Sets a connection property on the data source.
      Parameters:
      name - the name of the connection property to be set
      value - the value of the connection property to be set