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
FieldsModifier and TypeFieldDescriptionprotected static final StringDatabase connection configuration key for Helidon specific properties.protected static final StringDatabase connection user password configuration key.protected static final StringDatabase connection URL configuration key.protected static final StringDatabase connection username configuration key. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a JDBC connection pool builder base. -
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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
URL
-
USERNAME
-
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()Creates a JDBC connection pool builder base.
-
-
Method Details
-
config
-
url
-
username
-
password
-
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
-
url
-
username
-
password
-
properties
Configured connection pool properties.- Returns:
- connection pool properties
-