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 Details

    • addStatement

      public DbStatements.Builder addStatement(String name, String statement)
      Add named database statement to database configuration..
      Parameters:
      name - database statement name
      statement - database statement String
      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 interface Builder<DbStatements.Builder,DbStatements>
      Returns:
      instance of the built type