view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/SQRelationAccess.java @ 3226:cd79a4e1e80d

Removed line properties from fixation point themes and added missing point properties. flys-artifacts/trunk@4852 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 03 Jul 2012 07:23:46 +0000
parents ae14f412ba10
children e7a67407dea1
line wrap: on
line source
package de.intevation.flys.artifacts.access;

import de.intevation.flys.artifacts.FLYSArtifact;

import de.intevation.flys.artifacts.model.DateRange;

import org.apache.log4j.Logger;

public class SQRelationAccess
extends      Access
{
    private static Logger log = Logger.getLogger(SQRelationAccess.class);

    protected String       river;

    protected Double       location;

    protected DateRange [] periods;

    protected Double       outliers;

    public SQRelationAccess() {
    }

    public SQRelationAccess(FLYSArtifact artifact) {
        super(artifact);
    }

    public String getRiver() {
        if (river == null) {
            river = getString("river");
        }
        if (log.isDebugEnabled()) {
            log.debug("river: '" + river + "'");
        }
        return river;
    }

    public Double getLocation() {
        if (location == null) {
            // XXX: The parameter name suggests plural!?
            location = getDouble("ld_locations");
        }

        if (log.isDebugEnabled()) {
            log.debug("location: " + location);
        }

        return location;
    }

    public DateRange [] getPeriods() {
        if (periods == null) {
            periods = getDateRange("periods");
        }
        return periods;
    }

    public Double getOutliers() {
        if (outliers == null) {
            outliers = getDouble("outliers");
        }
        if (log.isDebugEnabled()) {
            log.debug("outliers: " + outliers);
        }
        return outliers;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org