Package | Description |
---|---|
org.springframework.data.mongodb |
Spring Data's MongoDB abstraction.
|
org.springframework.data.mongodb.config |
Spring XML namespace configuration for MongoDB specific repositories.
|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.gridfs |
Support for MongoDB GridFS feature.
|
Modifier and Type | Method and Description |
---|---|
ReactiveMongoDatabaseFactory |
ReactiveMongoTransactionManager.getDatabaseFactory()
Get the
ReactiveMongoDatabaseFactory that this instance manages transactions for. |
ReactiveMongoDatabaseFactory |
ReactiveMongoDatabaseFactory.withSession(com.mongodb.reactivestreams.client.ClientSession session)
Obtain a
ClientSession bound instance of ReactiveMongoDatabaseFactory returning
MongoDatabase instances that are aware and bound to the given session. |
Modifier and Type | Method and Description |
---|---|
static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase> |
ReactiveMongoDatabaseUtils.getDatabase(ReactiveMongoDatabaseFactory factory)
|
static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase> |
ReactiveMongoDatabaseUtils.getDatabase(ReactiveMongoDatabaseFactory factory,
SessionSynchronization sessionSynchronization)
Obtain the default
database form the given factory . |
static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase> |
ReactiveMongoDatabaseUtils.getDatabase(String dbName,
ReactiveMongoDatabaseFactory factory)
|
static reactor.core.publisher.Mono<com.mongodb.reactivestreams.client.MongoDatabase> |
ReactiveMongoDatabaseUtils.getDatabase(String dbName,
ReactiveMongoDatabaseFactory factory,
SessionSynchronization sessionSynchronization)
Obtain the
database with given name form the given factory . |
static reactor.core.publisher.Mono<Boolean> |
ReactiveMongoDatabaseUtils.isTransactionActive(ReactiveMongoDatabaseFactory databaseFactory)
Check if the
ReactiveMongoDatabaseFactory is actually bound to a
ClientSession that has an active transaction, or if a
TransactionSynchronization has been registered for the
resource and if the associated
ClientSession has an
active transaction . |
void |
ReactiveMongoTransactionManager.setDatabaseFactory(ReactiveMongoDatabaseFactory databaseFactory)
Set the
ReactiveMongoDatabaseFactory that this instance should manage transactions for. |
Constructor and Description |
---|
ReactiveMongoTransactionManager(ReactiveMongoDatabaseFactory databaseFactory)
Create a new
ReactiveMongoTransactionManager obtaining sessions from the given
ReactiveMongoDatabaseFactory . |
ReactiveMongoTransactionManager(ReactiveMongoDatabaseFactory databaseFactory,
com.mongodb.TransactionOptions options)
Create a new
ReactiveMongoTransactionManager obtaining sessions from the given
ReactiveMongoDatabaseFactory applying the given options , if present, when
starting a new transaction. |
Modifier and Type | Method and Description |
---|---|
ReactiveMongoDatabaseFactory |
AbstractReactiveMongoConfiguration.reactiveMongoDbFactory()
Creates a
ReactiveMongoDatabaseFactory to be used by the ReactiveMongoOperations . |
Modifier and Type | Method and Description |
---|---|
MappingMongoConverter |
AbstractReactiveMongoConfiguration.mappingMongoConverter(ReactiveMongoDatabaseFactory databaseFactory,
MongoCustomConversions customConversions,
MongoMappingContext mappingContext)
Creates a
MappingMongoConverter using the configured AbstractReactiveMongoConfiguration.reactiveMongoDbFactory() and
MongoConfigurationSupport.mongoMappingContext(MongoCustomConversions) . |
ReactiveMongoTemplate |
AbstractReactiveMongoConfiguration.reactiveMongoTemplate(ReactiveMongoDatabaseFactory databaseFactory,
MappingMongoConverter mongoConverter)
Creates
ReactiveMongoOperations . |
Modifier and Type | Class and Description |
---|---|
class |
SimpleReactiveMongoDatabaseFactory
Factory to create
MongoDatabase instances from a MongoClient instance. |
Modifier and Type | Method and Description |
---|---|
ReactiveMongoDatabaseFactory |
ReactiveMongoTemplate.getMongoDatabaseFactory() |
ReactiveMongoDatabaseFactory |
SimpleReactiveMongoDatabaseFactory.withSession(com.mongodb.reactivestreams.client.ClientSession session) |
Constructor and Description |
---|
ReactiveMongoTemplate(ReactiveMongoDatabaseFactory mongoDatabaseFactory)
Constructor used for a basic template configuration.
|
ReactiveMongoTemplate(ReactiveMongoDatabaseFactory mongoDatabaseFactory,
MongoConverter mongoConverter)
Constructor used for a basic template configuration.
|
ReactiveMongoTemplate(ReactiveMongoDatabaseFactory mongoDatabaseFactory,
MongoConverter mongoConverter,
Consumer<Throwable> subscriptionExceptionHandler)
Constructor used for a basic template configuration.
|
Constructor and Description |
---|
ReactiveGridFsTemplate(DataBufferFactory dataBufferFactory,
ReactiveMongoDatabaseFactory dbFactory,
MongoConverter converter,
String bucket)
Creates a new
ReactiveGridFsTemplate using the given DataBufferFactory ,
ReactiveMongoDatabaseFactory and MongoConverter . |
ReactiveGridFsTemplate(ReactiveMongoDatabaseFactory dbFactory,
MongoConverter converter)
Creates a new
ReactiveGridFsTemplate using the given ReactiveMongoDatabaseFactory and
MongoConverter . |
ReactiveGridFsTemplate(ReactiveMongoDatabaseFactory dbFactory,
MongoConverter converter,
String bucket)
Creates a new
ReactiveGridFsTemplate using the given ReactiveMongoDatabaseFactory and
MongoConverter . |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.