java.lang.Object
io.helidon.dbclient.DbClientBuilderBase<JdbcClientBuilder>
io.helidon.dbclient.jdbc.JdbcClientBuilder
- All Implemented Interfaces:
Builder<JdbcClientBuilder,
,DbClient> DbClientBuilder<JdbcClientBuilder>
,Supplier<DbClient>
public final class JdbcClientBuilder
extends DbClientBuilderBase<JdbcClientBuilder>
implements DbClientBuilder<JdbcClientBuilder>
Fluent API builder for
JdbcClientBuilder
that implements
the DbClientBuilder
from Helidon DB API.-
Method Summary
Modifier and TypeMethodDescriptionUse database connection configuration from configuration file.connectionPool
(JdbcConnectionPool connectionPool) Configure a connection pool.static JdbcClientBuilder
create()
Create a new instance.doBuild()
ActualDbClientBuilderBase.build()
implementation forDbClient
subclasses.parametersSetter
(JdbcParametersConfig parametersConfig) Configure parameters setter.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 JDBC client builder
-
doBuild
Description copied from class:DbClientBuilderBase
ActualDbClientBuilderBase.build()
implementation forDbClient
subclasses.- Specified by:
doBuild
in classDbClientBuilderBase<JdbcClientBuilder>
- Returns:
- new client
-
config
Description copied from interface:DbClientBuilder
Use database connection configuration from configuration file.- Specified by:
config
in interfaceDbClientBuilder<JdbcClientBuilder>
- Overrides:
config
in classDbClientBuilderBase<JdbcClientBuilder>
- Parameters:
config
-Config
instance with database connection attributes- Returns:
- database provider builder
-
parametersSetter
Configure parameters setter.- Parameters:
parametersConfig
- parameters setter configuration- Returns:
- updated builder instance
-
connectionPool
Configure a connection pool.- Parameters:
connectionPool
- connection pool to get connections to a database- Returns:
- updated builder instance
-