java.lang.Object
io.helidon.dbclient.DbClientBuilderBase<MongoDbClientBuilder>
io.helidon.dbclient.mongodb.MongoDbClientBuilder
- All Implemented Interfaces:
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 TypeMethodDescriptionUse database connection configuration from configuration file.static MongoDbClientBuilder
create()
Create a new instance.Credential database.doBuild()
ActualDbClientBuilderBase.build()
implementation forDbClient
subclasses.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, username
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
Description copied from class:DbClientBuilderBase
ActualDbClientBuilderBase.build()
implementation forDbClient
subclasses.- Specified by:
doBuild
in classDbClientBuilderBase<MongoDbClientBuilder>
- Returns:
- new client
-
config
Description copied from interface:DbClientBuilder
Use database connection configuration from configuration file.- Specified by:
config
in interfaceDbClientBuilder<MongoDbClientBuilder>
- Overrides:
config
in classDbClientBuilderBase<MongoDbClientBuilder>
- Parameters:
config
-Config
instance with database connection attributes- Returns:
- database provider builder
-
credDb
Credential database.- Parameters:
db
- database name- Returns:
- updated builder instance
-