SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

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

Method Summary
 void eventOccured(SQLExecutionEvent event)
           
 

Method Detail

eventOccured

public void eventOccured(SQLExecutionEvent event)

SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.