NoSqlProvider<MongoDbConnection>
@Plugin(name="MongoDb3", category="Core", printObject=true) public final class MongoDbProvider extends Object implements NoSqlProvider<MongoDbConnection>
NoSqlProvider
.Modifier and Type | Class | Description |
---|---|---|
static class |
MongoDbProvider.Builder<B extends MongoDbProvider.Builder<B>> |
Modifier and Type | Method | Description |
---|---|---|
MongoDbConnection |
getConnection() |
Obtains a connection from this provider.
|
static <B extends MongoDbProvider.Builder<B>> |
newBuilder() |
|
String |
toString() |
All implementations must override
Object.toString() to provide information about the provider
configuration (obscuring passwords with one-way hashes). |
@PluginBuilderFactory public static <B extends MongoDbProvider.Builder<B>> B newBuilder()
public MongoDbConnection getConnection()
NoSqlProvider
Where applicable, this method should return a connection from the connection pool as opposed to opening a brand new connection every time.
getConnection
in interface NoSqlProvider<MongoDbConnection>
NoSqlConnection
public String toString()
NoSqlProvider
Object.toString()
to provide information about the provider
configuration (obscuring passwords with one-way hashes).toString
in interface NoSqlProvider<MongoDbConnection>
toString
in class Object
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.