Class Neo4jTransactionManager.Builder

java.lang.Object
org.springframework.data.neo4j.core.transaction.Neo4jTransactionManager.Builder
Enclosing class:
Neo4jTransactionManager

@API(status=STABLE, since="6.2") public static final class Neo4jTransactionManager.Builder extends Object
Since:
6.0
Author:
Michael J. Simons
  • Method Details

    • withDatabaseSelectionProvider

      public Neo4jTransactionManager.Builder withDatabaseSelectionProvider(@Nullable DatabaseSelectionProvider databaseSelectionProvider)
      Configures the database selection provider. Make sure to use the same instance as for a possible Neo4jClient. During runtime, it will be checked if a call is made for the same database when happening in a managed transaction.
      Parameters:
      databaseSelectionProvider - the database selection provider
      Returns:
      the builder
    • withUserSelectionProvider

      public Neo4jTransactionManager.Builder withUserSelectionProvider(@Nullable UserSelectionProvider userSelectionProvider)
      Configures a provider for impersonated users. Make sure to use the same instance as for a possible Neo4jClient. During runtime, it will be checked if a call is made for the same user when happening in a managed transaction.
      Parameters:
      userSelectionProvider - the provider for impersonated users
      Returns:
      the builder
    • withBookmarkManager

      public Neo4jTransactionManager.Builder withBookmarkManager(Neo4jBookmarkManager bookmarkManager)
    • build

      public Neo4jTransactionManager build()