Class JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImpl
java.lang.Object
io.helidon.data.sql.common.ConnectionConfig.BuilderBase.ConnectionConfigImpl
io.helidon.data.sql.datasource.jdbc.JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImpl
- All Implemented Interfaces:
Prototype.Api
,NamedService
,ConnectionConfig
,JdbcDataSourceConfig
,ProviderConfig
- Enclosing class:
JdbcDataSourceConfig.BuilderBase<BUILDER extends JdbcDataSourceConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends JdbcDataSourceConfig>
protected static class JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImpl
extends ConnectionConfig.BuilderBase.ConnectionConfigImpl
implements JdbcDataSourceConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.data.sql.common.ConnectionConfig
ConnectionConfig.Builder, ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConnectionConfig> Nested classes/interfaces inherited from interface io.helidon.data.sql.datasource.jdbc.JdbcDataSourceConfig
JdbcDataSourceConfig.Builder, JdbcDataSourceConfig.BuilderBase<BUILDER extends JdbcDataSourceConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends JdbcDataSourceConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JdbcDataSourceConfigImpl
(JdbcDataSourceConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionSet the default auto-commit behavior of create connections.catalog()
Set the default catalog name to be set on connections.boolean
int
hashCode()
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.toString()
Set the default transaction isolation level.default String
type()
Type of this provider.Methods inherited from class io.helidon.data.sql.common.ConnectionConfig.BuilderBase.ConnectionConfigImpl
jdbcDriverClassName, password, url, username
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.data.sql.common.ConnectionConfig
jdbcDriverClassName, password, url, username
-
Constructor Details
-
JdbcDataSourceConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
name
Description copied from interface:JdbcDataSourceConfig
Name of this provider.- Specified by:
name
in interfaceJdbcDataSourceConfig
- Specified by:
name
in interfaceNamedService
- Returns:
- the provider name
-
autoCommit
Description copied from interface:JdbcDataSourceConfig
Set the default auto-commit behavior of create connections.- Specified by:
autoCommit
in interfaceJdbcDataSourceConfig
- Returns:
- the desired auto-commit default for connections
-
catalog
Description copied from interface:JdbcDataSourceConfig
Set the default catalog name to be set on connections.- Specified by:
catalog
in interfaceJdbcDataSourceConfig
- Returns:
- the default catalog name
-
readOnly
Description copied from interface:JdbcDataSourceConfig
Whether the connection should be read only.- Specified by:
readOnly
in interfaceJdbcDataSourceConfig
- Returns:
- if read only
-
schema
Description copied from interface:JdbcDataSourceConfig
Set the default schema name to be set on connections.- Specified by:
schema
in interfaceJdbcDataSourceConfig
- Returns:
- the name of the default schema
-
transactionIsolation
Description copied from interface:JdbcDataSourceConfig
Set the default transaction isolation level.- Specified by:
transactionIsolation
in interfaceJdbcDataSourceConfig
- Returns:
- the isolation level
-
properties
Description copied from interface:JdbcDataSourceConfig
Add properties (name/value pair) that will be used to configure the DataSource/Driver. Property values are limited toString
values.- Specified by:
properties
in interfaceJdbcDataSourceConfig
- Returns:
- the properties
-
toString
- Overrides:
toString
in classConnectionConfig.BuilderBase.ConnectionConfigImpl
-
equals
- Overrides:
equals
in classConnectionConfig.BuilderBase.ConnectionConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classConnectionConfig.BuilderBase.ConnectionConfigImpl
-
type
Type of this provider.- Specified by:
type
in interfaceNamedService
- Returns:
- the provider type
-