- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbClientContext.Builder
Fluent API builder forDbClientContext
.static class
DbClientContext.BuilderBase<T extends DbClientContext.BuilderBase<T>>
A common base for builders for classes that want to extendDbClientContext
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DbClientContext(DbClientContext.BuilderBase<?> builder)
Create an instance from builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbClientContext.Builder
builder()
Create a new builder for context.DbMapperManager
dbMapperManager()
Configured DB Mapper manager.Single<DbClientServiceContext>
invokeServices(DbClientServiceContext dbContext)
Invoke all configured client services and return a single that completes once all the client services complete.MapperManager
mapperManager()
Configured mapper manager.DbStatements
statements()
Configured statements.
-
-
-
Constructor Detail
-
DbClientContext
protected DbClientContext(DbClientContext.BuilderBase<?> builder)
Create an instance from builder.- Parameters:
builder
- the builder base your builder must extend
-
-
Method Detail
-
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
-
-