view artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefinedflowdepth/PredefinedFlowDepthColumnAccess.java @ 9596:fbfd66e8fb81

Softwaretests...20181219 6.2.2: Sinfo/Ued Haupt-/Extremwerte update for current km, W/Q of selected WSPL initially visible
author mschaefer
date Tue, 05 Feb 2019 15:43:27 +0100
parents 189cc8ededbd
children
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
 * Software engineering by
 *  Björnsen Beratende Ingenieure GmbH
 *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */

package org.dive4elements.river.artifacts.sinfo.predefinedflowdepth;

import org.dive4elements.river.artifacts.D4EArtifact;
import org.dive4elements.river.artifacts.access.RangeAccess;

/**
 * Access to the database loaded flow depth column artifact data
 *
 * @author Matthias Schäfer
 */
final class PredefinedFlowDepthColumnAccess extends RangeAccess {

    /***** FIELDS *****/

    private Integer columnId;

    private Integer seriesId;

    private String name;

    /***** CONSTRUCTORS *****/

    public PredefinedFlowDepthColumnAccess(final D4EArtifact artifact) {
        super(artifact);
    }

    /***** METHODS *****/

    public Integer getSeriesId() {
        if (this.seriesId == null) {
            this.seriesId = getInteger("flowdepth_id");
        }
        return this.columnId;
    }

    public Integer getColumnId() {
        if (this.columnId == null) {
            this.columnId = getInteger("flowdepth_col_id");
        }
        return this.columnId;
    }

    public String getName() {
        if (this.name == null) {
            this.name = getString("name");
        }
        return this.name;
    }
}

http://dive4elements.wald.intevation.org