Interface JdbcDataSourceConfig

All Superinterfaces:
ConnectionConfig, NamedService, Prototype.Api, ProviderConfig
All Known Implementing Classes:
JdbcDataSourceConfig.BuilderBase.JdbcDataSourceConfigImpl

public interface JdbcDataSourceConfig extends Prototype.Api, ConnectionConfig
JDBC Data source configuration.
See Also:
  • Method Details

    • builder

      static JdbcDataSourceConfig.Builder 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

      static JdbcDataSourceConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static JdbcDataSourceConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static JdbcDataSourceConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • name

      String name()
      Name of this provider.
      Specified by:
      name in interface NamedService
      Returns:
      the provider name
    • autoCommit

      Optional<Boolean> autoCommit()
      Set the default auto-commit behavior of create connections.
      Returns:
      the desired auto-commit default for connections
    • catalog

      Optional<String> catalog()
      Set the default catalog name to be set on connections.
      Returns:
      the default catalog name
    • readOnly

      Optional<Boolean> readOnly()
      Whether the connection should be read only.
      Returns:
      if read only
    • schema

      Optional<String> 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

      Map<String,String> properties()
      Add properties (name/value pair) that will be used to configure the DataSource/Driver. Property values are limited to String values.
      Returns:
      the properties
    • type

      default String type()
      Type of this provider.
      Specified by:
      type in interface NamedService
      Returns:
      the provider type