view src/main/java/de/intevation/lada/model/query/QueryConfig.java @ 366:567ce7697fc7 0.5

Code documentation.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 10 Sep 2013 15:55:54 +0200
parents b196ef9d8645
children 183f8116d9a6
line wrap: on
line source
package de.intevation.lada.model.query;

import java.util.List;

import de.intevation.lada.model.LProbeInfo;

/**
 * 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;
    }
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)