public interface PreparedStatementObserver
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the recorded PreparedStatements and associated data.
|
void |
connectionProviderStopped()
Called after the ConnectionProvider is stopped.
|
java.sql.PreparedStatement |
getPreparedStatement(java.lang.String sql)
Get one and only one PreparedStatement associated to the given SQL statement.
|
java.util.List<java.sql.PreparedStatement> |
getPreparedStatements()
Get the PreparedStatements that were executed since the last clear operation.
|
java.util.List<java.sql.PreparedStatement> |
getPreparedStatements(java.lang.String sql)
Get the PreparedStatements that are associated to the following SQL statement.
|
void |
preparedStatementCreated(java.sql.PreparedStatement preparedStatement,
java.lang.String sql)
Called after a PreparedStatement is created.
|
void |
preparedStatementMethodInvoked(java.sql.PreparedStatement preparedStatement,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object invocationReturnValue)
Called after the specified method was invoked on the specified PreparedStatement.
|
void preparedStatementCreated(java.sql.PreparedStatement preparedStatement, java.lang.String sql)
preparedStatement
- The created PreparedStatementsql
- The SQL used to create the PreparedStatementvoid preparedStatementMethodInvoked(java.sql.PreparedStatement preparedStatement, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object invocationReturnValue)
preparedStatement
- The PreparedStatement to which the Method has been invoked.method
- The Method that was invoked.args
- The arguments passed to the Method.invocationReturnValue
- The value returned by the Method invocation.void connectionProviderStopped()
java.sql.PreparedStatement getPreparedStatement(java.lang.String sql)
sql
- SQL statement.java.lang.IllegalArgumentException
- If there is no matching PreparedStatement or multiple instances, an exception is being thrown.java.util.List<java.sql.PreparedStatement> getPreparedStatements(java.lang.String sql)
sql
- SQL statement.java.util.List<java.sql.PreparedStatement> getPreparedStatements()
void clear()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.