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
Subclasses with type arguments of type SessionSynchronization in org.springframework.data.mongodbModifier and TypeClassDescriptionenumSessionSynchronizationis used along withMongoTemplateto define in which type of transactions to participate if any.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(@Nullable 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 Mono<com.mongodb.reactivestreams.client.MongoDatabase> ReactiveMongoDatabaseUtils.getDatabase(@Nullable String dbName, ReactiveMongoDatabaseFactory factory, SessionSynchronization sessionSynchronization) Obtain thedatabasewith given name form the givenfactory.static 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.