Uses of Enum Class
org.springframework.data.mongodb.SessionSynchronization
Package
Description
Spring Data's MongoDB abstraction.
MongoDB core support.
-
Uses of SessionSynchronization in org.springframework.data.mongodb
Modifier and TypeMethodDescriptionstatic SessionSynchronization
Returns the enum constant of this class with the specified name.static SessionSynchronization[]
SessionSynchronization.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic com.mongodb.client.MongoDatabase
MongoDatabaseUtils.getDatabase
(String dbName, MongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabase
with given name form the givenfactory
.static com.mongodb.client.MongoDatabase
MongoDatabaseUtils.getDatabase
(MongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain the defaultdatabase
form the givenfactory
.static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(String dbName, ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabase
with given name form the givenfactory
.static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>
ReactiveMongoDatabaseUtils.getDatabase
(ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain the defaultdatabase
form the givenfactory
. -
Uses of SessionSynchronization in org.springframework.data.mongodb.core
Modifier and TypeMethodDescriptionvoid
MongoTemplate.setSessionSynchronization
(SessionSynchronization sessionSynchronization) Define ifMongoTemplate
should participate in transactions.void
ReactiveMongoTemplate.setSessionSynchronization
(SessionSynchronization sessionSynchronization) Define ifReactiveMongoTemplate
should participate in transactions.