- java.lang.Object
-
- io.helidon.dbclient.DbStatements.Builder
-
- All Implemented Interfaces:
Builder<DbStatements>
,Supplier<DbStatements>
- Enclosing interface:
- DbStatements
public static class DbStatements.Builder extends Object implements Builder<DbStatements>
Fluent API builder forDbStatements
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbStatements.Builder
addStatement(String name, String statement)
Add named database statement to database configuration..DbStatements
build()
Build the instance from this builder.DbStatements.Builder
config(Config config)
Set statements from configuration.
-
-
-
Method Detail
-
addStatement
public DbStatements.Builder addStatement(String name, String statement)
Add named database statement to database configuration..- Parameters:
name
- database statement namestatement
- database statementString
- Returns:
- database provider builder
-
config
public DbStatements.Builder config(Config 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
public DbStatements build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DbStatements>
- Returns:
- instance of the built type
-
-