[ Back | Previous | Next ]

How to create an Event every time the session queries the database?

Package:
TOPLink.Public.Expressions.*
Product:
TopLink
Release:
2.0
Related Links:
General
General
General
General
General
Comment:


		SessionEventAdapter sea = new SessionEventAdapter() {
			public void preExecuteQuery(SessionEvent se) {
	dbg("-- PreExecuteQuery ---- EVENT ----- --------------------------");
	getBar().setString("Laden parameter locaties...");
	getBar().repaint();
			}
		};
		try {
			getAmethystclient().getDatabaseSession().getEventManager().addListener(sea);
		} catch (Exception e) {
			handleException(e);
		}
1