java.lang.Object
org.neo4j.driver.QueryConfig.Builder
- Enclosing class:
- QueryConfig
Builder used to configure
QueryConfig which will be used to execute a query.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a config instance from this builder.withBookmarkManager(BookmarkManager bookmarkManager) Set bookmark manager for the query.withDatabase(String database) Set target database for the query.withImpersonatedUser(String impersonatedUser) Set impersonated user for the query.withRouting(RoutingControl routing) Set routing mode for the query.
-
Method Details
-
withRouting
Set routing mode for the query.- Parameters:
routing- routing mode- Returns:
- this builder
-
withDatabase
Set target database for the query.- Parameters:
database- database- Returns:
- this builder
-
withImpersonatedUser
Set impersonated user for the query.- Parameters:
impersonatedUser- impersonated user- Returns:
- this builder
-
withBookmarkManager
Set bookmark manager for the query.- Parameters:
bookmarkManager- bookmark manager- Returns:
- this builder
-
build
Create a config instance from this builder.- Returns:
- a new
QueryConfiginstance.
-