tim@132: package de.intevation.gnv.geobackend.base.query; tim@132: sascha@886: import de.intevation.gnv.geobackend.base.Result; tim@132: tim@132: import de.intevation.gnv.geobackend.base.query.exception.QueryException; tim@132: sascha@886: import java.util.Collection; sascha@886: tim@132: /** tim@132: * This Interface provides the Method to execute Queries tim@132: * against a Datastore eg. Databases tim@132: * @author Tim Englich tim@132: * tim@132: */ tim@132: public interface QueryExecutor { tim@132: tim@132: tim@132: /** tim@132: * This Method executes the Query an returns the Result tim@132: * in an Collection. tim@132: * @param queryID the ID of the Query which should be used. tim@132: * @param filter the Filterarguments to limit the Data tim@132: * @return the fetched Values tim@132: * @throws QueryException tim@132: */ sascha@541: Collection executeQuery(String queryID, String[] filter) throws QueryException; sascha@541: sascha@541: Collection cachedResults(String query); sascha@541: sascha@541: void cacheResults(String query, Collection results); tim@132: }