com.townleyenterprises.persistence
Interface QueryListener

All Known Implementing Classes:
QueryAdapter

public interface QueryListener

This interface should be implemented by classes that wish to be notified of QueryEvents by a QueryHandler.

Version:
$Id: QueryListener.java,v 1.3 2004/07/28 10:33:59 atownley Exp $
Author:
Andrew S. Townley

Method Summary
 void nextRow(QueryEvent event)
          This method is called by the QueryHandler for each row processed in the result set.
 void queryCompleted(QueryEvent event)
          This method is called by the QueryHandler after executing a query.
 void queryExecuted(QueryEvent event)
          This method is called by the QueryHandler before executing a query.
 

Method Detail

queryCompleted

public void queryCompleted(QueryEvent event)
This method is called by the QueryHandler after executing a query.

Parameters:
event - the QueryEvent containing the data

queryExecuted

public void queryExecuted(QueryEvent event)
This method is called by the QueryHandler before executing a query.

Parameters:
event - the QueryEvent containing the data

nextRow

public void nextRow(QueryEvent event)
             throws java.sql.SQLException
This method is called by the QueryHandler for each row processed in the result set.

Parameters:
event - the QueryEvent containing the data
Throws:
java.sql.SQLException - if something happens processing the result row


Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.