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

java.lang.Object
io.helidon.dbclient.DbClientContext.BuilderBase<B,T>
Type Parameters:
B - type of the builder
T - type of the built instance
All Implemented Interfaces:
Builder<B,T>, Supplier<T>
Direct Known Subclasses:
DbClientContext.Builder
Enclosing class:
DbClientContext

public abstract static class DbClientContext.BuilderBase<B extends DbClientContext.BuilderBase<B,T>,T extends DbClientContext> extends Object implements Builder<B,T>
Base builder for DbClientContext.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Creates an instance of base builder for DbClientContext.
  • Method Details

    • dbMapperManager

      public B dbMapperManager(DbMapperManager dbMapperManager)
      Configure the DB mapper manager to use.
      Parameters:
      dbMapperManager - DB mapper manager
      Returns:
      updated builder instance
    • mapperManager

      public B mapperManager(MapperManager mapperManager)
      Configure the mapper manager to use.
      Parameters:
      mapperManager - mapper manager
      Returns:
      updated builder instance
    • clientServices

      public B clientServices(List<DbClientService> clientServices)
      Configure the client services to use.
      Parameters:
      clientServices - client service list
      Returns:
      updated builder instance
    • missingMapParametersAsNull

      public B missingMapParametersAsNull(boolean missingMapParametersAsNull)
      Missing values in named parameters Map are considered as null values. When set to true, named parameters value missing in the Map is considered as null. When set to false, any parameter value missing in the Map will cause an exception.
      Parameters:
      missingMapParametersAsNull - whether missing values in named parameters Map are considered as null values
      Returns:
      updated builder instance
    • statements

      public B statements(DbStatements statements)
      Configure the db statements to use.
      Parameters:
      statements - statements
      Returns:
      updated builder instance
    • dbType

      public B dbType(String dbType)
      Configure the type of this database provider.
      Parameters:
      dbType - database provider type
      Returns:
      updated builder instance