public interface MongoDatabaseFactoryDecorator
extends com.github.cloudyrock.mongock.driver.api.lock.guard.decorator.Invokable, org.springframework.data.mongodb.MongoDatabaseFactory
| Modifier and Type | Method and Description |
|---|---|
default <T> Optional<org.bson.codecs.Codec<T>> |
getCodecFor(Class<T> type) |
default org.bson.codecs.configuration.CodecRegistry |
getCodecRegistry() |
default org.springframework.dao.support.PersistenceExceptionTranslator |
getExceptionTranslator() |
org.springframework.data.mongodb.MongoDatabaseFactory |
getImpl() |
default com.mongodb.client.MongoDatabase |
getMongoDatabase() |
default com.mongodb.client.MongoDatabase |
getMongoDatabase(String dbName) |
default com.mongodb.client.ClientSession |
getSession(com.mongodb.ClientSessionOptions options) |
default boolean |
hasCodecFor(Class<?> type) |
default boolean |
isTransactionActive() |
default org.springframework.data.mongodb.MongoDatabaseFactory |
withSession(com.mongodb.client.ClientSession session) |
default org.springframework.data.mongodb.MongoDatabaseFactory |
withSession(com.mongodb.ClientSessionOptions options) |
org.springframework.data.mongodb.MongoDatabaseFactory getImpl()
default com.mongodb.client.MongoDatabase getMongoDatabase()
throws org.springframework.dao.DataAccessException
getMongoDatabase in interface org.springframework.data.mongodb.MongoDatabaseFactoryorg.springframework.dao.DataAccessExceptiondefault com.mongodb.client.MongoDatabase getMongoDatabase(String dbName) throws org.springframework.dao.DataAccessException
getMongoDatabase in interface org.springframework.data.mongodb.MongoDatabaseFactoryorg.springframework.dao.DataAccessExceptiondefault org.springframework.dao.support.PersistenceExceptionTranslator getExceptionTranslator()
getExceptionTranslator in interface org.springframework.data.mongodb.MongoDatabaseFactorydefault org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
getCodecRegistry in interface org.springframework.data.mongodb.CodecRegistryProvidergetCodecRegistry in interface org.springframework.data.mongodb.MongoDatabaseFactorydefault boolean hasCodecFor(Class<?> type)
hasCodecFor in interface org.springframework.data.mongodb.CodecRegistryProviderdefault <T> Optional<org.bson.codecs.Codec<T>> getCodecFor(Class<T> type)
getCodecFor in interface org.springframework.data.mongodb.CodecRegistryProviderdefault com.mongodb.client.ClientSession getSession(com.mongodb.ClientSessionOptions options)
getSession in interface org.springframework.data.mongodb.MongoDatabaseFactorygetSession in interface org.springframework.data.mongodb.MongoSessionProviderdefault org.springframework.data.mongodb.MongoDatabaseFactory withSession(com.mongodb.ClientSessionOptions options)
withSession in interface org.springframework.data.mongodb.MongoDatabaseFactorydefault org.springframework.data.mongodb.MongoDatabaseFactory withSession(com.mongodb.client.ClientSession session)
withSession in interface org.springframework.data.mongodb.MongoDatabaseFactorydefault boolean isTransactionActive()
isTransactionActive in interface org.springframework.data.mongodb.MongoDatabaseFactoryCopyright © 2021. All rights reserved.