Mercurial > dive4elements > gnv-client
view geo-backend/src/main/java/de/intevation/gnv/geobackend/base/query/QueryExecutor.java @ 542:f0b6d0e2a0f6
Small fixes for Ehcache based SQL results caching.
geo-backend/trunk@463 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 19 Dec 2009 14:45:21 +0000 |
parents | 3cbf11c67fdc |
children | 8b442223741c |
line wrap: on
line source
/** * */ package de.intevation.gnv.geobackend.base.query; import java.util.Collection; import de.intevation.gnv.geobackend.base.Result; import de.intevation.gnv.geobackend.base.query.exception.QueryException; /** * This Interface provides the Method to execute Queries * against a Datastore eg. Databases * @author Tim Englich <tim.englich@intevation.de> * */ 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); }