Package org.jdbi.v3.core.statement
Interface StatementCustomizer
public interface StatementCustomizer
Allows tweaking of statement behaviour.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidafterExecution(PreparedStatement stmt, StatementContext ctx) This will be invoked after execution of the prepared statement, but before any results are accessed.default voidbeforeBinding(PreparedStatement stmt, StatementContext ctx) Invoked prior to applying bound parameters to thePreparedStatement.default voidbeforeExecution(PreparedStatement stmt, StatementContext ctx) Make the changes you need to inside this method.default voidbeforeTemplating(PreparedStatement stmt, StatementContext ctx) Invoked prior to using the TemplateEngine to render sql from definitions.
- 
Method Details- 
beforeTemplatingInvoked prior to using the TemplateEngine to render sql from definitions.- Parameters:
- stmt- the statement we are about to render
- ctx- the context associated with the statement
- Throws:
- SQLException- go ahead and percolate it for Jdbi to handle
 
- 
beforeBindingInvoked prior to applying bound parameters to thePreparedStatement.- Parameters:
- stmt- Prepared statement being customized
- ctx- Statement context associated with the statement being customized
- Throws:
- SQLException- go ahead and percolate it for Jdbi to handle
 
- 
beforeExecutionMake the changes you need to inside this method. It will be invoked prior to execution of the prepared statement- Parameters:
- stmt- Prepared statement being customized
- ctx- Statement context associated with the statement being customized
- Throws:
- SQLException- go ahead and percolate it for Jdbi to handle
 
- 
afterExecutionThis will be invoked after execution of the prepared statement, but before any results are accessed.- Parameters:
- stmt- Prepared statement being customized
- ctx- Statement context associated with the statement being customized
- Throws:
- SQLException- go ahead and percolate it for Jdbi to handle
 
 
-