2010-04-15 20:52:34 +00:00
|
|
|
package zutil.db;
|
|
|
|
|
|
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
import java.sql.Statement;
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
|
|
|
|
|
|
public interface SQLResultHandler<T> {
|
|
|
|
|
/**
|
|
|
|
|
* Is called to handle an result from an query.
|
|
|
|
|
*
|
|
|
|
|
* @param stmt is the query
|
|
|
|
|
* @param result is the ResultSet
|
|
|
|
|
*/
|
2010-10-07 11:27:23 +00:00
|
|
|
public T handleQueryResult(Statement stmt, ResultSet result) throws SQLException;
|
2010-04-15 20:52:34 +00:00
|
|
|
}
|