public class BaseStatementCustomizer extends Object implements StatementCustomizer
Constructor and Description |
---|
BaseStatementCustomizer() |
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.
|
public void afterExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException
afterExecution
in interface StatementCustomizer
stmt
- Prepared statement being customizedctx
- Statement context associated with the statement being customizedSQLException
- go ahead and percolate it for jDBI to handlepublic void beforeExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException
beforeExecution
in interface StatementCustomizer
stmt
- Prepared statement being customizedctx
- Statement context associated with the statement being customizedSQLException
- go ahead and percolate it for jDBI to handlepublic void cleanup(StatementContext ctx) throws SQLException
cleanup
in interface StatementCustomizer
ctx
- Statement context associated with the statement being customizedSQLException
- go ahead and percolate it for jDBI to handleCopyright © 2018. All rights reserved.