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.addContextListener
(StatementContextListener listener) SqlStatements.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.setJfrParamMaxLength
(int jfrParamMaxLength) When recording JFR events, the maximum length of rendered parameters to store in the event record.SqlStatements.setJfrSqlMaxLength
(int jfrSqlMaxLength) When recording JFR events, the maximum length of rendered SQL to store in the event record.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) Sets aSqlLogger
instance to log all SQL operations.SqlStatements.setSqlParser
(SqlParser sqlParser) Sets theSqlParser
used to parse parameters in SQL statements executed by Jdbi.SqlStatements.setTemplateCache
(JdbiCacheBuilder cacheBuilder) Sets the 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.setTimingCollector
(TimingCollector timingCollector) Deprecated.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.
setSqlLogger(org.jdbi.v3.core.statement.SqlLogger)
instead