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 classFluent API builder forJdbcDataSourceConfig.static classJdbcDataSourceConfig.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.Builderbuilder()Create a new fluent API builder to customize configuration.static JdbcDataSourceConfig.Builderbuilder(JdbcDataSourceConfig instance) Create a new fluent API builder from an existing instance.catalog()Set the default catalog name to be set on connections.static JdbcDataSourceConfigcreate()Create a new instance with default values.static JdbcDataSourceConfigCreate 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 Stringtype()Type of this provider.Methods inherited from interface 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
Create a new instance with default values.- Returns:
- a new instance
-
type
Type of this provider.- Specified by:
typein interfaceNamedService- Returns:
- the provider type
-
name
String name()Name of this provider.- Specified by:
namein interfaceNamedService- Returns:
- the provider name
-
autoCommit
-
catalog
-
readOnly
-
schema
-
transactionIsolation
Optional<TransactionIsolation> transactionIsolation()Set the default transaction isolation level.- Returns:
- the isolation level
-
properties
-