Class DbStatements.Builder
java.lang.Object
io.helidon.dbclient.DbStatements.Builder
- All Implemented Interfaces:
Builder<DbStatements.Builder, DbStatements>, Supplier<DbStatements>
- Enclosing interface:
DbStatements
public static class DbStatements.Builder
extends Object
implements Builder<DbStatements.Builder, DbStatements>
Fluent API builder for
DbStatements.-
Method Summary
Modifier and TypeMethodDescriptionaddStatement(String name, String statement) Add named database statement to database configuration..build()Build the instance from this builder.Set statements from configuration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault DbStatementsget()default DbStatements.Builderidentity()Instance of this builder as the correct type.default DbStatements.Builderupdate(Consumer<DbStatements.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
addStatement
Add named database statement to database configuration..- Parameters:
name- database statement namestatement- database statementString- Returns:
- database provider builder
-
config
Set statements from configuration. Each key in the current node is treated as a name of the statement, each value as the statement content.- Parameters:
config- config node located on correct node- Returns:
- updated builder instance
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<DbStatements.Builder, DbStatements>- Returns:
- instance of the built type
-