public interface StatementCustomizer
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecution(PreparedStatement stmt,
StatementContext ctx)
This will be invoked after execution of the prepared statement, but before any results
are accessed.
|
void |
beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Make the changes you need to inside this method.
|
void |
cleanup(StatementContext ctx)
Invoked at cleanup time to clean resources used by this statement.
|
void afterExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException
stmt - Prepared statement being customizedctx - Statement context associated with the statement being customizedSQLException - go ahead and percolate it for jDBI to handlevoid beforeExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException
stmt - Prepared statement being customizedctx - Statement context associated with the statement being customizedSQLException - go ahead and percolate it for jDBI to handlevoid cleanup(StatementContext ctx) throws SQLException
ctx - Statement context associated with the statement being customizedSQLException - go ahead and percolate it for jDBI to handleCopyright © 2018. All rights reserved.