Class ConnectionConfig.Builder
java.lang.Object
io.helidon.data.sql.common.ConnectionConfig.BuilderBase<ConnectionConfig.Builder, ConnectionConfig>
io.helidon.data.sql.common.ConnectionConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ConnectionConfig.Builder, ConnectionConfig>, Builder<ConnectionConfig.Builder, ConnectionConfig>, ConfigBuilderSupport.ConfiguredBuilder<ConnectionConfig.Builder, ConnectionConfig>, Supplier<ConnectionConfig>
- Enclosing interface:
ConnectionConfig
public static class ConnectionConfig.Builder
extends ConnectionConfig.BuilderBase<ConnectionConfig.Builder, ConnectionConfig>
implements Builder<ConnectionConfig.Builder, ConnectionConfig>
Fluent API builder for
ConnectionConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class ConnectionConfig.BuilderBase
ConnectionConfig.BuilderBase.ConnectionConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ConnectionConfig.BuilderBase
clearJdbcDriverClassName, clearPassword, clearUsername, config, config, from, from, jdbcDriverClassName, jdbcDriverClassName, password, password, password, preBuildPrototype, toString, url, url, username, username, validatePrototypeModifier and TypeMethodDescriptionClear existing value of jdbcDriverClassName.Clear existing value of password.Clear existing value of username.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(ConnectionConfig prototype) Update this builder from an existing prototype instance.from(ConnectionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Fully qualified name of the JDBC driver class.jdbcDriverClassName(String jdbcDriverClassName) Fully qualified name of the JDBC driver class.Optional<char[]> password()Password for the database connection.password(char[] password) Password for the database connection.Password for the database connection.protected voidHandles providers and decorators.toString()url()JDBC connection URL.JDBC connection URL.username()Username for the database connection.Username for the database connection.protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ConnectionConfigget()default ConnectionConfig.Builderidentity()Instance of this builder as the correct type.default ConnectionConfig.Builderupdate(Consumer<ConnectionConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ConnectionConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ConnectionConfig.Builder, ConnectionConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ConnectionConfig.Builder, ConnectionConfig>- Returns:
- instance of the built type
-