java.lang.Object
io.helidon.dbclient.common.DbStatementContext
Context of execution of a specific statement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent API builder to createDbStatementContext.static classA base builder that must be extended to implement a newDbStatementContext. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDbStatementContext(DbStatementContext.BuilderBase<?> builder) Create a new instance using a builder each implementation must extend. -
Method Summary
Modifier and TypeMethodDescriptionstatic DbStatementContext.Builderbuilder()Create a new builder.Client context associated with the client executing this statement.static DbStatementContextcreate(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
-