java.lang.Object
io.helidon.dbclient.common.DbStatementContext
Context of execution of a specific statement.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent API builder to createDbStatementContext
.static class
A base builder that must be extended to implement a newDbStatementContext
. -
Constructor Summary
ModifierConstructorDescriptionprotected
DbStatementContext
(DbStatementContext.BuilderBase<?> builder) Create a new instance using a builder each implementation must extend. -
Method Summary
Modifier and TypeMethodDescriptionstatic DbStatementContext.Builder
builder()
Create a new builder.Client context associated with the client executing this statement.static DbStatementContext
create
(DbClientContext clientContext, DbStatementType statementType, String statementName, String statementText) Create a new instance of this class.Statement text as configured.Name of this statement.Statement type of this statement.
-
Constructor Details
-
DbStatementContext
Create a new instance using a builder each implementation must extend.- Parameters:
builder
- to get required fields from
-
-
Method Details
-
builder
Create a new builder.- Returns:
- a new builder instance
-
create
public static DbStatementContext create(DbClientContext clientContext, DbStatementType statementType, String statementName, String statementText) Create a new instance of this class.- Parameters:
clientContext
- DB client contextstatementType
- type of statementstatementName
- name of statementstatementText
- text of the statement to execute- Returns:
- a new statement context
-
clientContext
Client context associated with the client executing this statement.- Returns:
- client context
-
statementType
Statement type of this statement.- Returns:
- type of statement
-
statementName
Name of this statement.- Returns:
- name of statement
-
statement
Statement text as configured.- Returns:
- statement text
-