public static final class StatementCustomizers.QueryTimeoutCustomizer extends BaseStatementCustomizer
Constructor and Description |
---|
QueryTimeoutCustomizer(int seconds) |
Modifier and Type | Method and Description |
---|---|
void |
beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Make the changes you need to inside this method.
|
afterExecution, cleanup
public void beforeExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException
BaseStatementCustomizer
beforeExecution
in interface StatementCustomizer
beforeExecution
in class BaseStatementCustomizer
stmt
- Prepared statement being customizedctx
- Statement context associated with the statement being customizedSQLException
- go ahead and percolate it for jDBI to handleCopyright © 2018. All rights reserved.