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.
-
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:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DbStatements.Builder,
DbStatements> - Returns:
- instance of the built type
-