- 
- 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 DbStatements Configuration of statements to be used by database provider.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classDbStatements.BuilderFluent API builder forDbStatements.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static DbStatements.Builderbuilder()Builder of statements.static DbStatementscreate(Config config)Create statements from configuration.Stringstatement(String name)Get statement text for a named statement.
 
- 
- 
- 
Method Detail- 
statementString statement(String name) throws DbClientException Get statement text for a named statement.- Parameters:
- name- name of the statement
- Returns:
- text of the statement (such as SQL code for SQL-based database statements)
- Throws:
- DbClientException- in case the statement name does not exist
 
 - 
builderstatic DbStatements.Builder builder() Builder of statements.- Returns:
- a builder to customize statements
 
 - 
createstatic DbStatements create(Config config) Create statements from configuration. Statement configuration is expected to be a map of name to statement pairs.- Parameters:
- config- configuration of the statements
- Returns:
- statements as read from the configuration
 
 
- 
 
-