Uses of Class
org.springframework.data.neo4j.core.DatabaseSelection
Package
Description
This package contains the core infrastructure for creating an imperative or reactive client that can execute queries.
Contains the core infrastructure for translating unmanaged Neo4j transaction into Spring managed transactions.
-
Uses of DatabaseSelection in org.springframework.data.neo4j.core
Modifier and TypeMethodDescriptionstatic DatabaseSelection
Create a new database selection by the given databaseName.DatabaseSelectionProvider.getDatabaseSelection()
static DatabaseSelection
DatabaseSelection.undecided()
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<DatabaseSelection>
ReactiveDatabaseSelectionProvider.getDatabaseSelection()
Modifier and TypeMethodDescriptiondefault org.neo4j.driver.QueryRunner
Neo4jClient.getQueryRunner
(DatabaseSelection databaseSelection) org.neo4j.driver.QueryRunner
Neo4jClient.getQueryRunner
(DatabaseSelection databaseSelection, UserSelection asUser) Retrieves a query runner that will participate in ongoing Spring transactions (either in declarative (implicit via@Transactional
) or in programmatically (explicit via transaction template) ones).Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<org.neo4j.driver.reactivestreams.ReactiveQueryRunner>
ReactiveNeo4jClient.getQueryRunner
(reactor.core.publisher.Mono<DatabaseSelection> databaseSelection) reactor.core.publisher.Mono<org.neo4j.driver.reactivestreams.ReactiveQueryRunner>
ReactiveNeo4jClient.getQueryRunner
(reactor.core.publisher.Mono<DatabaseSelection> databaseSelection, reactor.core.publisher.Mono<UserSelection> userSelection) Retrieves a query runner that will participate in ongoing Spring transactions (either in declarative (implicit via@Transactional
) or in programmatically (explicit via transaction template) ones). -
Uses of DatabaseSelection in org.springframework.data.neo4j.core.transaction
Modifier and TypeMethodDescriptionstatic org.neo4j.driver.SessionConfig
Neo4jTransactionUtils.defaultSessionConfig
(DatabaseSelection databaseSelection, UserSelection asUser) The default session usesAccessMode.WRITE
and an empty list of bookmarks.static reactor.core.publisher.Mono<org.neo4j.driver.reactivestreams.ReactiveTransaction>
ReactiveNeo4jTransactionManager.retrieveReactiveTransaction
(org.neo4j.driver.Driver driver, DatabaseSelection targetDatabase, UserSelection asUser) static org.neo4j.driver.Transaction
Neo4jTransactionManager.retrieveTransaction
(org.neo4j.driver.Driver driver, DatabaseSelection targetDatabase, UserSelection asUser) This method provides a native Neo4j transaction to be used from within aNeo4jClient
.static org.neo4j.driver.SessionConfig
Neo4jTransactionUtils.sessionConfig
(boolean readOnly, Collection<org.neo4j.driver.Bookmark> bookmarks, DatabaseSelection databaseSelection, UserSelection asUser)