java.lang.Object
io.helidon.dbclient.DbClientBuilderBase<MongoDbClientBuilder>
io.helidon.dbclient.mongodb.MongoDbClientBuilder
- All Implemented Interfaces:
io.helidon.common.Builder<MongoDbClientBuilder,,DbClient> DbClientBuilder<MongoDbClientBuilder>,Supplier<DbClient>
public final class MongoDbClientBuilder
extends DbClientBuilderBase<MongoDbClientBuilder>
implements DbClientBuilder<MongoDbClientBuilder>
Builder for mongoDB database.
-
Method Summary
Modifier and TypeMethodDescriptionconfig(io.helidon.common.config.Config config) static MongoDbClientBuildercreate()Create a new instance.Credential database.doBuild()Methods inherited from class io.helidon.dbclient.DbClientBuilderBase
addMapper, addMapper, addMapperProvider, addService, build, clientServices, dbMapperManager, dbMapperManager, mapperManager, mapperManager, missingMapParametersAsNull, missingMapParametersAsNull, password, password, statements, statements, url, url, username, usernameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
build, get, identity, updateMethods inherited from interface io.helidon.dbclient.spi.DbClientBuilder
addMapper, addMapper, addMapperProvider, addService, dbMapperManager, mapperManager, missingMapParametersAsNull, password, statements, url, username
-
Method Details
-
create
Create a new instance.- Returns:
- new MongoDB client builder
-
doBuild
- Specified by:
doBuildin classDbClientBuilderBase<MongoDbClientBuilder>
-
config
- Specified by:
configin interfaceDbClientBuilder<MongoDbClientBuilder>- Overrides:
configin classDbClientBuilderBase<MongoDbClientBuilder>
-
credDb
Credential database.- Parameters:
db- database name- Returns:
- updated builder instance
-