Class JdbcDataSourceConfig.Builder
java.lang.Object
io.helidon.data.sql.common.ConnectionConfig.BuilderBase<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>
io.helidon.data.sql.datasource.jdbc.JdbcDataSourceConfig.BuilderBase<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>
io.helidon.data.sql.datasource.jdbc.JdbcDataSourceConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>, Builder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>, ConfigBuilderSupport.ConfiguredBuilder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>, Supplier<JdbcDataSourceConfig>
- Enclosing interface:
JdbcDataSourceConfig
public static class JdbcDataSourceConfig.Builder
extends JdbcDataSourceConfig.BuilderBase<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>
implements Builder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>
Fluent API builder for
JdbcDataSourceConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class JdbcDataSourceConfig.BuilderBase
JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class ConnectionConfig.BuilderBase
ConnectionConfig.BuilderBase.ConnectionConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class JdbcDataSourceConfig.BuilderBase
addProperties, autoCommit, autoCommit, catalog, catalog, clearAutoCommit, clearCatalog, clearReadOnly, clearSchema, clearTransactionIsolation, config, from, from, name, name, preBuildPrototype, properties, properties, putProperty, readOnly, readOnly, schema, schema, toString, transactionIsolation, transactionIsolation, validatePrototypeModifier and TypeMethodDescriptionaddProperties(Map<String, String> properties) Add properties (name/value pair) that will be used to configure the DataSource/Driver.Set the default auto-commit behavior of create connections.autoCommit(boolean autoCommit) Set the default auto-commit behavior of create connections.catalog()Set the default catalog name to be set on connections.Set the default catalog name to be set on connections.Clear existing value of autoCommit.Clear existing value of catalog.Clear existing value of readOnly.Clear existing value of schema.Clear existing value of transactionIsolation.Update builder from configuration (node of this type).from(JdbcDataSourceConfig prototype) Update this builder from an existing prototype instance.from(JdbcDataSourceConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this provider.Name of this provider.protected voidHandles providers and decorators.Add properties (name/value pair) that will be used to configure the DataSource/Driver.properties(Map<String, String> properties) Add properties (name/value pair) that will be used to configure the DataSource/Driver.putProperty(String key, String property) Add properties (name/value pair) that will be used to configure the DataSource/Driver.readOnly()Whether the connection should be read only.readOnly(boolean readOnly) Whether the connection should be read only.schema()Set the default schema name to be set on connections.Set the default schema name to be set on connections.toString()Set the default transaction isolation level.transactionIsolation(TransactionIsolation transactionIsolation) Set the default transaction isolation level.protected voidValidates required properties.Methods inherited from class ConnectionConfig.BuilderBase
clearJdbcDriverClassName, clearPassword, clearUsername, config, from, from, jdbcDriverClassName, jdbcDriverClassName, password, password, password, url, url, username, usernameModifier and TypeMethodDescriptionClear existing value of jdbcDriverClassName.Clear existing value of password.Clear existing value of username.config()Configuration used to configure this instance.from(ConnectionConfig prototype) Update this builder from an existing prototype instance.from(ConnectionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Fully qualified name of the JDBC driver class.jdbcDriverClassName(String jdbcDriverClassName) Fully qualified name of the JDBC driver class.Optional<char[]> password()Password for the database connection.password(char[] password) Password for the database connection.Password for the database connection.url()JDBC connection URL.JDBC connection URL.username()Username for the database connection.Username for the database connection.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault JdbcDataSourceConfigget()default JdbcDataSourceConfig.Builderidentity()Instance of this builder as the correct type.default JdbcDataSourceConfig.Builderupdate(Consumer<JdbcDataSourceConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault JdbcDataSourceConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<JdbcDataSourceConfig.Builder, JdbcDataSourceConfig>- Returns:
- instance of the built type
-