com.solarmetric.kodo.impl.jdbc
Interface SQLExecutionListener
- All Known Implementing Classes:
- AbstractSQLExecutionListener, PerformanceTracker
- public interface SQLExecutionListener
An abstract listener for all SQLExecutionEvents that
occur on for a given SQLExecutionManager. A
SQLExecutionListener can be installed on a
JDBCStoreManager and used as a callback interface to
provide fine-grained notification of generic SQL events.
Example usage:
PersistenceManagerImpl pm = (PersistenceManagerImpl)factory
.getPersistenceManager ();
JDBCStoreManager sm = (JDBCStoreManager)pm.getStoreManager ();
SQLExecutionListener listener = new AbstractSQLExecutionListener ()
{
public void afterCommit (SQLExecutionEvent event, Connection c)
{
System.out.println ("Commit occured for connection: " + c);
}
};
sm.addSQLExecutionListener (listener);
- Since:
- 2.4
- See Also:
AbstractSQLExecutionListener
eventOccured
public void eventOccured(SQLExecutionEvent event)
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.