Mercurial > lada > lada-server
view src/main/java/de/intevation/lada/query/QueryConfig.java @ 426:7b3b9e5f040d
Added classes to handle serversite configured queries.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 04 Feb 2015 16:08:55 +0100 |
parents | |
children | 819747a8d037 |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ package de.intevation.lada.query; import java.util.List; /** * Container for SQL query configuration. * * The server can filter {@link LProbeInfo} objects by configurable SQL queries * as described in the project wiki (<link>https://bfs-intern.intevation.de/Server/Suche</link>). * This container is used to store the config at runtime. * * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ public class QueryConfig { int id; String name; String description; String sql; List<QueryFilter> filters; List<ResultConfig> results; public QueryConfig() { } /** * @return the id */ public int getId() { return id; } /** * @param id the id to set */ public void setId(int id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the description */ public String getDescription() { return description; } /** * @param description the description to set */ public void setDescription(String description) { this.description = description; } /** * @return the sql */ public String getSql() { return sql; } /** * @param sql the sql to set */ public void setSql(String sql) { this.sql = sql; } /** * @return the filter */ public List<QueryFilter> getFilters() { return filters; } /** * @param filters the filter to set */ public void setFilters(List<QueryFilter> filters) { this.filters = filters; } /** * @return the results */ public List<ResultConfig> getResults() { return results; } /** * @param results the results to set */ public void setResults(List<ResultConfig> results) { this.results = results; } }