java.lang.Object
io.helidon.dbclient.DbExecuteContext
- All Implemented Interfaces:
DbContext
Execution context.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder forDbExecuteContext
.static class
DbExecuteContext.BuilderBase<B extends DbExecuteContext.BuilderBase<B,
T>, T extends DbExecuteContext> Base builder forDbExecuteContext
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DbExecuteContext
(DbExecuteContext.BuilderBase<? extends DbExecuteContext.BuilderBase<?, ? extends DbExecuteContext>, ? extends DbExecuteContext> builder) Creates an instance of execution context. -
Method Summary
Modifier and TypeMethodDescriptionstatic DbExecuteContext.Builder
builder()
Create Helidon database client context builder.protected <C extends DbClientContext>
CclientContext
(Class<C> cls) Returns client context cast to it's extending class.Configured client services (interceptors).static DbExecuteContext
create
(String statementName, String statement, DbClientContext context) Create a new execution context.Configured DB Mapper manager.dbType()
Type of this database provider (such as jdbc:mysql, mongoDB etc.).Configured mapper manager.boolean
Configured missing values in named parametersMap
handling.Get the execution statement.Get the execution statement name.Configured statements.
-
Constructor Details
-
DbExecuteContext
protected DbExecuteContext(DbExecuteContext.BuilderBase<? extends DbExecuteContext.BuilderBase<?, ? extends DbExecuteContext>, ? extends DbExecuteContext> builder) Creates an instance of execution context.- Parameters:
builder
- Helidon database client context builder
-
-
Method Details
-
statementName
Get the execution statement name.- Returns:
- statement name
-
statement
Get the execution statement.- Returns:
- statement
-
missingMapParametersAsNull
public boolean missingMapParametersAsNull()Description copied from interface:DbContext
Configured missing values in named parametersMap
handling.- Specified by:
missingMapParametersAsNull
in interfaceDbContext
- Returns:
- when set to
true
, named parameters value missing in theMap
is considered asnull
, when set tofalse
, any parameter value missing in theMap
will cause an exception.
-
statements
Description copied from interface:DbContext
Configured statements.- Specified by:
statements
in interfaceDbContext
- Returns:
- statements
-
dbMapperManager
Description copied from interface:DbContext
Configured DB Mapper manager.- Specified by:
dbMapperManager
in interfaceDbContext
- Returns:
- DB mapper manager
-
mapperManager
Description copied from interface:DbContext
Configured mapper manager.- Specified by:
mapperManager
in interfaceDbContext
- Returns:
- mapper manager
-
clientServices
Description copied from interface:DbContext
Configured client services (interceptors).- Specified by:
clientServices
in interfaceDbContext
- Returns:
- client services
-
dbType
Description copied from interface:DbContext
Type of this database provider (such as jdbc:mysql, mongoDB etc.). -
clientContext
Returns client context cast to it's extending class.- Type Parameters:
C
- client context extending type- Parameters:
cls
-DbClientContext
extending class- Returns:
- extended client context
-
create
public static DbExecuteContext create(String statementName, String statement, DbClientContext context) Create a new execution context.- Parameters:
statementName
- statement namestatement
- statementcontext
- client context- Returns:
- execution context
-
builder
Create Helidon database client context builder.- Returns:
- database client context builder
-