ingo@1127: /* ingo@1127: * Copyright (c) 2010 by Intevation GmbH ingo@1127: * ingo@1127: * This program is free software under the LGPL (>=v2.1) ingo@1127: * Read the file LGPL.txt coming with the software for details ingo@1127: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1127: */ ingo@1127: tim@132: package de.intevation.gnv.geobackend.base.query.container; tim@132: tim@891: import java.util.Properties; tim@891: sascha@886: import de.intevation.gnv.geobackend.base.query.container.exception.QueryContainerException; sascha@886: tim@132: /** tim@891: * Querycontainer is an Interface which defines the Method that are tim@891: * required to provide the access to SQL-Queries. sascha@887: * @author Tim Englich tim@132: * tim@132: */ tim@132: public interface QueryContainer { sascha@885: tim@132: tim@132: /** tim@132: * Returns the Query specified by the given queryID. tim@132: * @param queryID the ID which speciogies the Query which should be returned tim@132: * @return the Query tim@132: * @throws QueryContainerException tim@132: */ tim@132: public String getQuery(String queryID) throws QueryContainerException; tim@132: tim@132: /** tim@132: * Initializes the QueryContainer tim@132: * @param properties The Properties which should be used for initializing QueryContainer tim@132: * @throws QueryContainerException tim@132: */ tim@132: public void initialize(Properties properties) throws QueryContainerException; tim@132: }