Interface StatementBuilderFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StatementBuilderFactory
Used to specify how prepared statements are built. A factory is attached to a Jdbi instance, and whenever the Jdbi instance is used to create a Handle the factory will be used to create a StatementBuilder for that specific handle.
  • Method Details

    • createStatementBuilder

      StatementBuilder createStatementBuilder(Connection conn)
      Creates a new StatementBuilder from a Connection object.
      Parameters:
      conn - the connection to create a statement builder for
      Returns:
      a StatementBuilder, called when a new handle is opened