Class JdbcConnectionPool.BuilderBase<B extends JdbcConnectionPool.BuilderBase<B,T>,T extends JdbcConnectionPool>

java.lang.Object
io.helidon.dbclient.jdbc.JdbcConnectionPool.BuilderBase<B,T>
Type Parameters:
B - Type of the builder
T - Type of the built instance
All Implemented Interfaces:
Builder<B,T>, Supplier<T>
Enclosing interface:
JdbcConnectionPool

public abstract static class JdbcConnectionPool.BuilderBase<B extends JdbcConnectionPool.BuilderBase<B,T>,T extends JdbcConnectionPool> extends Object implements Builder<B,T>
Base fluent API builder for JdbcConnectionPool. The builder will produce a connection pool based on connection pool provider available on the classpath.
  • Field Details

    • URL

      protected static final String URL
      Database connection URL configuration key.
      See Also:
    • USERNAME

      protected static final String USERNAME
      Database connection username configuration key.
      See Also:
    • PASSWORD

      protected static final String PASSWORD
      Database connection user password configuration key.
      See Also:
    • HELIDON_RESERVED_CONFIG_KEY

      protected static final String HELIDON_RESERVED_CONFIG_KEY
      Database connection configuration key for Helidon specific properties.
      See Also:
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
  • Method Details

    • config

      public B config(Config config)
      Update builder from configuration.
      Parameters:
      config - configuration
      Returns:
      updated builder
    • url

      public B url(String url)
      Connection pool URL string.
      Parameters:
      url - connection pool string to use
      Returns:
      updated builder
    • username

      public B username(String username)
      Connection pool username.
      Parameters:
      username - username to use
      Returns:
      updated builder
    • password

      public B password(String password)
      Connection pool password.
      Parameters:
      password - password to use
      Returns:
      updated builder
    • properties

      public B properties(Properties properties)
      Configure connection pool properties.
      Parameters:
      properties - properties to use
      Returns:
      updated builder
    • serviceName

      public B serviceName(String serviceName)
      Name of the connection pool. This value is returned as NamedService.name() value.
      Parameters:
      serviceName - service name
      Returns:
      updated builder
    • serviceName

      public String serviceName()
      Configured connection pool service name.
      Returns:
      service name
    • url

      public String url()
      Configured connection pool URL string.
      Returns:
      URL String
    • username

      public String username()
      Configured connection pool username.
      Returns:
      username String
    • password

      public String password()
      Configured connection pool password.
      Returns:
      password String
    • properties

      public Properties properties()
      Configured connection pool properties.
      Returns:
      connection pool properties