/*
 *   Copyright (c) 2007 Mike Heath.  All rights reserved.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */
package org.adbcj;

/**
 * Receives notification of the logical results of a database query.  You may think of this as the SAX
 * {@link org.sax.ContentHandler} for database result set parsing.
 * 
 * <p>Each method accepts an accumulator that may be used for holding the parsing state.
 * 
 * @author Mike Heath
 *
 * @param <T>  The accumulator type.
 */
public interface ResultHandler<T> {

	/**
	 * Invoked when field definitions are about to be received.
	 * 
	 * @param accumulator
	 */
	void startFields(T accumulator);
	
	/**
	 * Invoked for each field definition.
	 * 
	 * @param field the field definition
	 * @param accumulator
	 */
	void field(Field field, T accumulator);
	
	/**
	 * Invoked when all field definitions have been received.
	 * 
	 * @param accumulator
	 */
	void endFields(T accumulator);

	/**
	 * Invoked when rest rows are about to be received.
	 *
	 * @param accumulator
	 */
	void startResults(T accumulator);
	
	/**
	 * Invoked at the beginning of a data row.
	 * 
	 * @param accumulator
	 */
	void startRow(T accumulator);
	
	/**
	 * Invoked for each column in a data row.
	 * 
	 * @param value the value of the column 
	 * @param accumulator
	 */
	void value(Value value, T accumulator);
	
	/**
	 * Invoked at the end of a data row.
	 * 
	 * @param accumulator
	 */
	void endRow(T accumulator);
	
	/**
	 * Invoked after all the data rows have been processed.
	 * 
	 * @param accumulator
	 */
	void endResults(T accumulator);

}

@@ -1133,44 +1133,14 @@
 d.%0D%0A
-%09 * %0D%0A%09 * @param accumulator%0D%0A
 %09 */%0D%0A
+
 %09voi
@@ -1223,77 +1223,8 @@
 n.%0D%0A
-%09 * %0D%0A%09 * @param field the field definition%0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1340,38 +1340,8 @@
 d.%0D%0A
-%09 * %0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1441,37 +1441,8 @@
 d.%0D%0A
-%09 *%0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1537,38 +1537,8 @@
 w.%0D%0A
-%09 * %0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1628,81 +1628,8 @@
 w.%0D%0A
-%09 * %0D%0A%09 * @param value the value of the column %0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1724,38 +1724,8 @@
 w.%0D%0A
-%09 * %0D%0A%09 * @param accumulator%0D%0A
 %09 */
@@ -1757,32 +1757,32 @@
 tor);%0D%0A%09%0D%0A%09/**%0D%0A
+
 %09 * Invoked afte
@@ -1827,38 +1827,8 @@
 d.%0D%0A
-%09 * %0D%0A%09 * @param accumulator%0D%0A
 %09 */

Remove useless Javadoc tags