Uses of Enum Class
org.springframework.data.mongodb.SessionSynchronization
Packages that use SessionSynchronization
Package
Description
Spring Data's MongoDB abstraction.
MongoDB core support.
-
Uses of SessionSynchronization in org.springframework.data.mongodb
Methods in org.springframework.data.mongodb that return SessionSynchronizationModifier and TypeMethodDescriptionstatic SessionSynchronizationReturns 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.Methods in org.springframework.data.mongodb with parameters of type SessionSynchronizationModifier and TypeMethodDescriptionstatic com.mongodb.client.MongoDatabaseMongoDatabaseUtils.getDatabase(String dbName, MongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabasewith given name form the givenfactory.static com.mongodb.client.MongoDatabaseMongoDatabaseUtils.getDatabase(MongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain the defaultdatabaseform the givenfactory.static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>ReactiveMongoDatabaseUtils.getDatabase(String dbName, ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabasewith given name form the givenfactory.static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase>ReactiveMongoDatabaseUtils.getDatabase(ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain the defaultdatabaseform the givenfactory. -
Uses of SessionSynchronization in org.springframework.data.mongodb.core
Methods in org.springframework.data.mongodb.core with parameters of type SessionSynchronizationModifier and TypeMethodDescriptionvoidMongoTemplate.setSessionSynchronization(SessionSynchronization sessionSynchronization) Define ifMongoTemplateshould participate in transactions.voidReactiveMongoTemplate.setSessionSynchronization(SessionSynchronization sessionSynchronization) Define ifReactiveMongoTemplateshould participate in transactions.