Class DbClientContext

java.lang.Object
io.helidon.dbclient.common.DbClientContext

public class DbClientContext extends Object
Context of the whole client.

This instance holds configuration and runtimes that are shared by any exec within this client runtime.

  • Constructor Details

    • DbClientContext

      protected DbClientContext(DbClientContext.BuilderBase<?> builder)
      Create an instance from builder.
      Parameters:
      builder - the builder base your builder must extend
  • Method Details

    • builder

      public static DbClientContext.Builder builder()
      Create a new builder for context.
      Returns:
      a new builder instance
    • invokeServices

      public Single<DbClientServiceContext> invokeServices(DbClientServiceContext dbContext)
      Invoke all configured client services and return a single that completes once all the client services complete.
      Parameters:
      dbContext - context for client services
      Returns:
      a single with the same or modified client service context
    • statements

      public DbStatements statements()
      Configured statements.
      Returns:
      statements
    • dbMapperManager

      public DbMapperManager dbMapperManager()
      Configured DB Mapper manager.
      Returns:
      DB mapper manager
    • mapperManager

      public MapperManager mapperManager()
      Configured mapper manager.
      Returns:
      mapper manager