Module io.helidon.dbclient.jdbc
Package io.helidon.dbclient.jdbc
Class JdbcConnectionPool.BuilderBase<B extends JdbcConnectionPool.BuilderBase<B,T>,T extends JdbcConnectionPool>
java.lang.Object
io.helidon.dbclient.jdbc.JdbcConnectionPool.BuilderBase<B,T>
- Type Parameters:
B
- Type of the builderT
- Type of the built instance
- Enclosing interface:
JdbcConnectionPool
public abstract static class JdbcConnectionPool.BuilderBase<B extends JdbcConnectionPool.BuilderBase<B,T>,T extends JdbcConnectionPool>
extends Object
implements Builder<B,T>
Base fluent API builder for
JdbcConnectionPool
.
The builder will produce a connection pool based on connection pool provider available on the classpath.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Database connection configuration key for Helidon specific properties.protected static final String
Database connection user password configuration key.protected static final String
Database connection URL configuration key.protected static final String
Database connection username configuration key. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUpdate builder from configuration.password()
Configured connection pool password.Connection pool password.Configured connection pool properties.properties
(Properties properties) Configure connection pool properties.Configured connection pool service name.serviceName
(String serviceName) Name of the connection pool.url()
Configured connection pool URL string.Connection pool URL string.username()
Configured connection pool username.Connection pool username.
-
Field Details
-
URL
Database connection URL configuration key.- See Also:
-
USERNAME
Database connection username configuration key.- See Also:
-
PASSWORD
Database connection user password configuration key.- See Also:
-
HELIDON_RESERVED_CONFIG_KEY
Database connection configuration key for Helidon specific properties.- See Also:
-
-
Constructor Details
-
BuilderBase
protected BuilderBase()
-
-
Method Details
-
config
Update builder from configuration.- Parameters:
config
- configuration- Returns:
- updated builder
-
url
Connection pool URL string.- Parameters:
url
- connection pool string to use- Returns:
- updated builder
-
username
Connection pool username.- Parameters:
username
- username to use- Returns:
- updated builder
-
password
Connection pool password.- Parameters:
password
- password to use- Returns:
- updated builder
-
properties
Configure connection pool properties.- Parameters:
properties
- properties to use- Returns:
- updated builder
-
serviceName
Name of the connection pool. This value is returned asNamedService.name()
value.- Parameters:
serviceName
- service name- Returns:
- updated builder
-
serviceName
Configured connection pool service name.- Returns:
- service name
-
url
Configured connection pool URL string.- Returns:
- URL
String
-
username
Configured connection pool username.- Returns:
- username
String
-
password
Configured connection pool password.- Returns:
- password
String
-
properties
Configured connection pool properties.- Returns:
- connection pool properties
-