java.lang.Object
io.helidon.dbclient.DbStatements.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<DbStatements.Builder,,DbStatements> Supplier<DbStatements>
- Enclosing interface:
- DbStatements
public static class DbStatements.Builder
extends Object
implements io.helidon.common.Builder<DbStatements.Builder,DbStatements>
Fluent API builder for
DbStatements.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStatement(String name, String statement) Add named database statement to database configuration..build()Set statements from configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Constructor Details
-
Builder
public Builder()
-
-
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
- Specified by:
buildin interfaceio.helidon.common.Builder<DbStatements.Builder,DbStatements>
-