comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/InfrastructureAccess.java @ 9115:a165cd63099f

Added datacage select and chart display for river infrastructure heights loaded from database
author mschaefer
date Mon, 04 Jun 2018 11:55:08 +0200
parents
children
comparison
equal deleted inserted replaced
9114:31b3cae5de0d 9115:a165cd63099f
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
2 * Software engineering by
3 * Björnsen Beratende Ingenieure GmbH
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
5 *
6 * This file is Free Software under the GNU AGPL (>=v3)
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the
8 * documentation coming with Dive4Elements River for details.
9 */
10
11 package org.dive4elements.river.artifacts.sinfo.flood_duration;
12
13 import org.dive4elements.river.artifacts.D4EArtifact;
14 import org.dive4elements.river.artifacts.access.RangeAccess;
15
16 /**
17 * Access to the database loaded infrastructure artifact data
18 *
19 * @author Matthias Schäfer
20 */
21 final class InfrastructureAccess extends RangeAccess {
22
23 /***** FIELDS *****/
24
25 private Integer id;
26
27 private String name;
28
29
30 /***** CONSTRUCTORS *****/
31
32 public InfrastructureAccess(final D4EArtifact artifact) {
33 super(artifact);
34 }
35
36
37 /***** METHODS *****/
38
39 public Integer getId() {
40 if (this.id == null) {
41 this.id = getInteger("infrastructure_id");
42 }
43 return this.id;
44 }
45
46 public String getName() {
47 if (this.name == null) {
48 this.name = getString("name");
49 }
50 return this.name;
51 }
52 }

http://dive4elements.wald.intevation.org