Interface JdbcClientConfig
- All Superinterfaces:
Prototype.Api, Prototype.Factory<JdbcClient>, SqlConfig
- All Known Implementing Classes:
JdbcClientConfig.BuilderBase.JdbcClientConfigImpl
Configuration for a JDBC client.
A client can use an existing data source owned by the application, a named
data source, or direct connection settings. An existing data source can be
supplied only through a programmatic builder. Registry managed clients are
configured under data.clients.jdbc.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forJdbcClient.static classJdbcClientConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>Fluent API builder base forJdbcClientConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcClientConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static JdbcClientConfig.Builderbuilder(JdbcClientConfig instance) Create a new fluent API builder from an existing instance.static JdbcClientConfigCreate a new instance from configuration.name()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.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.Methods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.Methods inherited from interface SqlConfig
connection, dataSource, dataSourceNameModifier and TypeMethodDescriptionDirect JDBC connection properties.default Optional<DataSource> ExistingDataSourceowned by the application.Name of the registeredDataSourceto use.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
name
-
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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Returns:
- parameter count cache capacity
-
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. This value is owned by Helidon Data JDBC and is not passed to JDBC.- Returns:
- maximum cacheable SQL length
-