SimpleMongoClientDatabaseFactory instead.@Deprecated public class SimpleMongoClientDbFactory extends SimpleMongoClientDatabaseFactory
MongoDatabase instances from a MongoClient instance.| Constructor and Description |
|---|
SimpleMongoClientDbFactory(com.mongodb.ConnectionString connectionString)
Deprecated.
Creates a new
SimpleMongoClientDbFactory instance from the given MongoClient. |
SimpleMongoClientDbFactory(com.mongodb.client.MongoClient mongoClient,
String databaseName)
Deprecated.
Creates a new
SimpleMongoClientDbFactory instance from the given MongoClient. |
SimpleMongoClientDbFactory(String connectionString)
Deprecated.
Creates a new
SimpleMongoClientDbFactory instance for the given connectionString. |
closeClient, doGetMongoDatabase, getSessiondestroy, getDefaultDatabaseName, getExceptionTranslator, getMongoClient, getMongoDatabase, getMongoDatabase, setWriteConcern, withSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroygetCodecRegistry, isTransactionActive, withSessiongetCodecFor, hasCodecForpublic SimpleMongoClientDbFactory(String connectionString)
SimpleMongoClientDbFactory instance for the given connectionString.connectionString - connection coordinates for a database connection. Must contain a database name and must not
be null or empty.public SimpleMongoClientDbFactory(com.mongodb.ConnectionString connectionString)
SimpleMongoClientDbFactory instance from the given MongoClient.connectionString - connection coordinates for a database connection. Must contain also a database name and not
be null.public SimpleMongoClientDbFactory(com.mongodb.client.MongoClient mongoClient,
String databaseName)
SimpleMongoClientDbFactory instance from the given MongoClient.mongoClient - must not be null.databaseName - must not be null or empty.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.