Class JdbcClientConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
java.lang.Object
io.helidon.data.sql.common.SqlConfig.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.data.jdbc.JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
JdbcClientConfig.Builder
- Enclosing interface:
JdbcClientConfig
public abstract static class JdbcClientConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
extends SqlConfig.BuilderBase<BUILDER, PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
JdbcClientConfig.-
Nested Class Summary
Nested ClassesModifier 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. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>- Overrides:
configin classSqlConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
name
-
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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Parameters:
parameterCountCacheCapacity- parameter count cache capacity- Returns:
- updated builder instance
- See Also:
-
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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Parameters:
parameterCountCacheMaxSqlLength- maximum cacheable SQL length- Returns:
- updated builder instance
- See Also:
-
name
-
parameterCountCacheCapacity
public 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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Returns:
- parameter count cache capacity
-
parameterCountCacheMaxSqlLength
public 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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Returns:
- maximum cacheable SQL length
-
toString
- Overrides:
toStringin classSqlConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classSqlConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classSqlConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
-