Class Neo4jClient.Builder
java.lang.Object
org.springframework.data.neo4j.core.Neo4jClient.Builder
- Enclosing interface:
- Neo4jClient
A builder for
Neo4j clients
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withDatabaseSelectionProvider
(DatabaseSelectionProvider databaseSelectionProvider) Configures the database selection provider.withNeo4jConversions
(Neo4jConversions neo4jConversions) Configures the set ofNeo4jConversions
to use.withUserSelectionProvider
(UserSelectionProvider userSelectionProvider) Configures a provider for impersonated users.
-
Method Details
-
withDatabaseSelectionProvider
public Neo4jClient.Builder withDatabaseSelectionProvider(@Nullable DatabaseSelectionProvider databaseSelectionProvider) Configures the database selection provider. Make sure to use the same instance as for a possibleNeo4jTransactionManager
. 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 Neo4jClient.Builder withUserSelectionProvider(@Nullable UserSelectionProvider userSelectionProvider) Configures a provider for impersonated users. Make sure to use the same instance as for a possibleNeo4jTransactionManager
. 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
-
withNeo4jConversions
Configures the set ofNeo4jConversions
to use.- Parameters:
neo4jConversions
- the set of conversions to use, can be null, in this case the default set is used.- Returns:
- The builder
- Since:
- 6.3.3
-
build
-