Class JdbcClientConfig.BuilderBase.JdbcClientConfigImpl
java.lang.Object
io.helidon.data.sql.common.SqlConfig.BuilderBase.SqlConfigImpl
io.helidon.data.jdbc.JdbcClientConfig.BuilderBase.JdbcClientConfigImpl
- All Implemented Interfaces:
Prototype.Api, Prototype.Factory<JdbcClient>, JdbcClientConfig, SqlConfig, Supplier<JdbcClient>
- Enclosing class:
JdbcClientConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>
protected static class JdbcClientConfig.BuilderBase.JdbcClientConfigImpl
extends SqlConfig.BuilderBase.SqlConfigImpl
implements JdbcClientConfig, Supplier<JdbcClient>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface JdbcClientConfig
JdbcClientConfig.Builder, JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forJdbcClient.static classJdbcClientConfig.BuilderBase<BUILDER extends JdbcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JdbcClientConfig>Fluent API builder base forJdbcClientConfig.Nested classes/interfaces inherited from interface SqlConfig
SqlConfig.Builder, SqlConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forSqlConfig.static classSqlConfig.BuilderBase<BUILDER extends SqlConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends SqlConfig>Fluent API builder base forSqlConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJdbcClientConfigImpl(JdbcClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.booleanget()inthashCode()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.toString()Methods inherited from class SqlConfig.BuilderBase.SqlConfigImpl
connection, dataSource, dataSourceNameModifier and TypeMethodDescriptionDirect JDBC connection properties.ExistingDataSourceowned by the application.Name of the registeredDataSourceto use.
-
Constructor Details
-
JdbcClientConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- Specified by:
buildin interfacePrototype.Factory<JdbcClient>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<JdbcClient>
-
name
Description copied from interface:JdbcClientConfigLogical name of this client.- Specified by:
namein interfaceJdbcClientConfig- Returns:
- client name
-
parameterCountCacheCapacity
public int parameterCountCacheCapacity()Description copied from interface:JdbcClientConfigThe 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.- Specified by:
parameterCountCacheCapacityin interfaceJdbcClientConfig- Returns:
- parameter count cache capacity
-
parameterCountCacheMaxSqlLength
public int parameterCountCacheMaxSqlLength()Description copied from interface:JdbcClientConfigThe 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.- Specified by:
parameterCountCacheMaxSqlLengthin interfaceJdbcClientConfig- Returns:
- maximum cacheable SQL length
-
toString
- Overrides:
toStringin classSqlConfig.BuilderBase.SqlConfigImpl
-
equals
- Overrides:
equalsin classSqlConfig.BuilderBase.SqlConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classSqlConfig.BuilderBase.SqlConfigImpl
-