Uses of Class
org.jdbi.v3.core.statement.SqlStatements
Package
Description
The
statement
package provides most of the Fluent API
to drive statement execution.-
Uses of SqlStatements in org.jdbi.v3.core.statement
Modifier and TypeMethodDescriptionSqlStatements.addCustomizer
(StatementCustomizer customizer) Provides a means for custom statement modification.SqlStatements.createCopy()
Define an attribute forStatementContext
for statements executed by Jdbi.Defines attributes for each key/value pair in the Map.SqlStatements.setQueryTimeout
(Integer seconds) Jdbi does not implement its own timeout mechanism: it simply callsStatement.setQueryTimeout(int)
, leaving timeout handling to your jdbc driver.SqlStatements.setSqlLogger
(SqlLogger sqlLogger) SqlStatements.setSqlParser
(SqlParser sqlParser) Sets theSqlParser
used to parse parameters in SQL statements executed by Jdbi.SqlStatements.setTemplateCache
(com.github.benmanes.caffeine.cache.Caffeine<Object, Object> caffeineSpec) Sets the Caffeine cache used to avoid repeatedly parsing SQL statements.SqlStatements.setTemplateEngine
(TemplateEngine templateEngine) Sets theTemplateEngine
used to render SQL for allSQL statements
executed by Jdbi.SqlStatements.setUnusedBindingAllowed
(boolean unusedBindingAllowed) Sets whether or not an exception should be thrown when any arguments are given to a query but not actually used in it.