Class Overview
A SQL interceptor that stores all SQL call invocations as well as timing information in a thread local cache.
Summary
Nested Classes |
class |
PerformanceSQLInterceptor.SQLPerfCache |
|
Public Methods |
void
|
afterSuccessfulExecution(String sql, List<String> params, Statement statement, ResultSet resultSet, int i)
|
void
|
beforeExecution(String sql, List<String> params, Statement statement)
|
void
|
onConnectionReplaced(Connection connection, ConnectionPoolState connectionPoolState)
|
void
|
onConnectionTaken(Connection connection, ConnectionPoolState connectionPoolState)
|
void
|
onException(String sql, List<String> params, Statement statement, SQLException e)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor
|
From interface
org.ofbiz.core.entity.jdbc.interceptors.connection.SQLConnectionInterceptor
void
|
onConnectionReplaced(Connection arg0, ConnectionPoolState arg1)
|
void
|
onConnectionTaken(Connection arg0, ConnectionPoolState arg1)
|
|
Constants
public
static
final
String
SQL_PERF_CACHE
Constant Value:
"sql.perf.cache"
Public Constructors
public
PerformanceSQLInterceptor
()
Public Methods
public
void
onConnectionReplaced
(Connection connection, ConnectionPoolState connectionPoolState)
public
void
onConnectionTaken
(Connection connection, ConnectionPoolState connectionPoolState)