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
Nested ClassesModifier and TypeClassDescriptionstatic classDbClientServiceBase.BuilderBase<B extends DbClientServiceBase.BuilderBase<B,T>, T extends DbClientServiceBase> A base class for builders ofDbClientServiceBase. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDbClientServiceBase(DbClientServiceBase.BuilderBase<?, ?> builder) Create a new instance based on the builder base each implementation must extend. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DbClientServiceContextapply(DbClientServiceContext context) This method is only invoked if the predicate for this service was passed.final DbClientServiceContextstatement(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:DbClientServiceStatement execution to be intercepted. This method is called before the statement execution starts.- Specified by:
statementin 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:
-