java.lang.Object
io.helidon.dbclient.DbClientServiceBase
- All Implemented Interfaces:
DbClientService
- Direct Known Subclasses:
DbClientTracing
A base implementation of a client service that supports configuration
of execution based on a statement name pattern and statement types.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DbClientServiceBase.BuilderBase<B extends DbClientServiceBase.BuilderBase<B,
T>, T extends DbClientServiceBase> A base class for builders ofDbClientServiceBase
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DbClientServiceBase
(DbClientServiceBase.BuilderBase<?, ?> builder) Create a new instance based on the builder base each implementation must extend. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DbClientServiceContext
apply
(DbClientServiceContext context) This method is only invoked if the predicate for this service was passed.final DbClientServiceContext
statement
(DbClientServiceContext context) Statement execution to be intercepted.
-
Constructor Details
-
DbClientServiceBase
Create a new instance based on the builder base each implementation must extend.- Parameters:
builder
- builder to configure predicate to use
-
-
Method Details
-
statement
Description copied from interface:DbClientService
Statement execution to be intercepted. This method is called before the statement execution starts.- Specified by:
statement
in interfaceDbClientService
- Parameters:
context
- interceptor context- Returns:
- updated interceptor context
-
apply
This method is only invoked if the predicate for this service was passed.- Parameters:
context
- db client invocation context- Returns:
- single with the new context (or the same one if not modified)
- See Also:
-