public interface ConnectionDecorator
Modifier and Type | Method and Description |
---|---|
default void |
cleanup(Connection connection)
Cleans up a used connection before it is returned to a connection pool.
|
void |
configure(Connection connection)
Configures a newly allocated connection before use.
|
void configure(Connection connection) throws SQLException
connection
- to apply configuration toSQLException
- if unable to configure the connectionNullPointerException
- if the provided connection
is null
default void cleanup(Connection connection) throws SQLException
connection
- to apply configuration toSQLException
- if unable to cleanup the connectionNullPointerException
- if the provided connection
is null
Copyright © 2019 Speedment, Inc.. All rights reserved.