Interface JdbcDataSourceConfig
- All Superinterfaces:
ConnectionConfig
,NamedService
,Prototype.Api
,ProviderConfig
- All Known Implementing Classes:
JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImpl
JDBC Data source configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forJdbcDataSourceConfig
.static class
JdbcDataSourceConfig.BuilderBase<BUILDER extends JdbcDataSourceConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends JdbcDataSourceConfig> Fluent API builder base forJdbcDataSourceConfig
. -
Method Summary
Modifier and TypeMethodDescriptionSet the default auto-commit behavior of create connections.static JdbcDataSourceConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static JdbcDataSourceConfig.Builder
builder
(JdbcDataSourceConfig instance) Create a new fluent API builder from an existing instance.catalog()
Set the default catalog name to be set on connections.static JdbcDataSourceConfig
create()
Create a new instance with default values.static JdbcDataSourceConfig
Deprecated.static JdbcDataSourceConfig
Create a new instance from configuration.name()
Name of this provider.Add properties (name/value pair) that will be used to configure the DataSource/Driver.readOnly()
Whether the connection should be read only.schema()
Set the default schema name to be set on connections.Set the default transaction isolation level.default String
type()
Type of this provider.Methods inherited from interface io.helidon.data.sql.common.ConnectionConfig
jdbcDriverClassName, password, url, username
-
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
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
name
String name()Name of this provider.- Specified by:
name
in interfaceNamedService
- Returns:
- the provider name
-
autoCommit
Set the default auto-commit behavior of create connections.- Returns:
- the desired auto-commit default for connections
-
catalog
Set the default catalog name to be set on connections.- Returns:
- the default catalog name
-
readOnly
Whether the connection should be read only.- Returns:
- if read only
-
schema
Set the default schema name to be set on connections.- Returns:
- the name of the default schema
-
transactionIsolation
Optional<TransactionIsolation> transactionIsolation()Set the default transaction isolation level.- Returns:
- the isolation level
-
properties
Add properties (name/value pair) that will be used to configure the DataSource/Driver. Property values are limited toString
values.- Returns:
- the properties
-
type
Type of this provider.- Specified by:
type
in interfaceNamedService
- Returns:
- the provider type
-
create(io.helidon.config.Config)