view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/QueryExecutor.java @ 887:b757def3ff55

Bring @author javadoc tags in form '@author <a href="john.doe@example.com">John Doe</a>' geo-backend/trunk@859 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 09:45:05 +0000
parents 8b442223741c
children eb777022b628
line wrap: on
line source
package de.intevation.gnv.geobackend.base.query;

import de.intevation.gnv.geobackend.base.Result;

import de.intevation.gnv.geobackend.base.query.exception.QueryException;

import java.util.Collection;

/**
 * This Interface provides the Method to execute Queries
 * against a Datastore eg. Databases
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 *
 */
public interface QueryExecutor {


    /**
     * This Method executes the Query an returns the Result
     * in an Collection.
     * @param queryID the ID of the Query which should be used.
     * @param filter the Filterarguments to limit the Data
     * @return the fetched Values
     * @throws QueryException
     */
    Collection<Result> executeQuery(String queryID, String[] filter) throws QueryException;

    Collection<Result> cachedResults(String query);

    void cacheResults(String query, Collection<Result> results);
}

http://dive4elements.wald.intevation.org