C - Client type.MongoDatabaseFactorySupport instead.@Deprecated public abstract class MongoDbFactorySupport<C> extends MongoDatabaseFactorySupport<C>
MongoClients defining common properties such as
database name and exception translator.
SimpleMongoClientDatabaseFactory| Modifier | Constructor and Description |
|---|---|
protected |
MongoDbFactorySupport(C mongoClient,
String databaseName,
boolean mongoInstanceCreated,
PersistenceExceptionTranslator exceptionTranslator)
Deprecated.
Create a new
MongoDbFactorySupport object given mongoClient, databaseName,
mongoInstanceCreated and PersistenceExceptionTranslator. |
closeClient, destroy, doGetMongoDatabase, getDefaultDatabaseName, getExceptionTranslator, getMongoClient, getMongoDatabase, getMongoDatabase, setWriteConcern, withSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCodecRegistry, getSession, isTransactionActive, withSessiongetCodecFor, hasCodecForprotected MongoDbFactorySupport(C mongoClient, String databaseName, boolean mongoInstanceCreated, PersistenceExceptionTranslator exceptionTranslator)
MongoDbFactorySupport object given mongoClient, databaseName,
mongoInstanceCreated and PersistenceExceptionTranslator.mongoClient - must not be null.databaseName - must not be null or empty.mongoInstanceCreated - true if the client instance was created by a subclass of
MongoDbFactorySupport to close the client on MongoDatabaseFactorySupport.destroy().exceptionTranslator - must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.