Class JdbcClientConfig.Builder
java.lang.Object
io.helidon.data.sql.common.SqlConfig.BuilderBase<JdbcClientConfig.Builder, JdbcClientConfig>
io.helidon.data.jdbc.JdbcClientConfig.BuilderBase<JdbcClientConfig.Builder, JdbcClientConfig>
io.helidon.data.jdbc.JdbcClientConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<JdbcClientConfig.Builder, JdbcClientConfig>, Builder<JdbcClientConfig.Builder, JdbcClient>, ConfigBuilderSupport.ConfiguredBuilder<JdbcClientConfig.Builder, JdbcClientConfig>, Supplier<JdbcClient>
- Enclosing interface:
JdbcClientConfig
public static class JdbcClientConfig.Builder
extends JdbcClientConfig.BuilderBase<JdbcClientConfig.Builder, JdbcClientConfig>
implements Builder<JdbcClientConfig.Builder, JdbcClient>
Fluent API builder for
JdbcClient.-
Nested Class Summary
Nested classes/interfaces inherited from class JdbcClientConfig.BuilderBase
JdbcClientConfig.BuilderBase.JdbcClientConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class SqlConfig.BuilderBase
SqlConfig.BuilderBase.SqlConfigImplModifier 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 JdbcClientConfig.BuilderBase
config, from, from, name, name, parameterCountCacheCapacity, parameterCountCacheCapacity, parameterCountCacheMaxSqlLength, parameterCountCacheMaxSqlLength, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionUpdate builder from configuration (node of this type).from(JdbcClientConfig prototype) Update this builder from an existing prototype instance.from(JdbcClientConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Logical name of this client.Logical name of this client.intThe maximum number of SQL marker counts retained by this client must be between zero and 4096 inclusive, where zero disables retention while marker validation continues.parameterCountCacheCapacity(int parameterCountCacheCapacity) The maximum number of SQL marker counts retained by this client must be between zero and 4096 inclusive, where zero disables retention while marker validation continues.intThe maximum SQL string length admitted to the parameter count cache must be a positive number of UTF-16 code units and its product with the cache capacity must not exceed 16,777,216 code units, but SQL longer than this value remains executable and is scanned without being retained.parameterCountCacheMaxSqlLength(int parameterCountCacheMaxSqlLength) The maximum SQL string length admitted to the parameter count cache must be a positive number of UTF-16 code units and its product with the cache capacity must not exceed 16,777,216 code units, but SQL longer than this value remains executable and is scanned without being retained.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class SqlConfig.BuilderBase
clearConnection, clearDataSource, clearDataSourceName, config, connection, connection, connection, connection, dataSource, dataSource, dataSource, dataSourceName, dataSourceName, from, fromModifier and TypeMethodDescriptionClear existing value of connection.Clear existing value of dataSource.Clear existing value of dataSourceName.config()Configuration used to configure this instance.Direct JDBC connection properties.connection(ConnectionConfig connection) Direct JDBC connection properties.connection(Consumer<ConnectionConfig.Builder> consumer) Direct JDBC connection properties.connection(Supplier<? extends ConnectionConfig> supplier) Direct JDBC connection properties.ExistingDataSourceowned by the application.dataSource(String dataSourceName) Uses a registered data source as the connection source.dataSource(DataSource dataSource) ExistingDataSourceowned by the application.Name of the registeredDataSourceto use.dataSourceName(String dataSourceName) Name of the registeredDataSourceto use.Update this builder from an existing prototype instance.from(SqlConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault JdbcClientget()default JdbcClientConfig.Builderidentity()Instance of this builder as the correct type.default JdbcClientConfig.Builderupdate(Consumer<JdbcClientConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault JdbcClientConfig.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<JdbcClientConfig.Builder, JdbcClientConfig>- 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<JdbcClientConfig.Builder, JdbcClient>- Returns:
- instance of the built type
-