comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefinedchannel/PredefinedChannelAccess.java @ 9112:189cc8ededbd

Added datacage select and chart display for river channel sizes loaded from database
author mschaefer
date Mon, 04 Jun 2018 08:36:09 +0200
parents
children
comparison
equal deleted inserted replaced
9111:ee77e544e890 9112:189cc8ededbd
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.predefinedchannel;
12
13 import org.dive4elements.river.artifacts.D4EArtifact;
14 import org.dive4elements.river.artifacts.access.RangeAccess;
15
16 /**
17 * Access to the database loaded channel artifact data
18 *
19 * @author Matthias Schäfer
20 */
21 final class PredefinedChannelAccess extends RangeAccess {
22
23 /***** FIELDS *****/
24
25 private Integer id;
26
27 private String name;
28
29 /***** CONSTRUCTORS *****/
30
31 public PredefinedChannelAccess(final D4EArtifact artifact) {
32 super(artifact);
33 }
34
35 /***** METHODS *****/
36
37 public Integer getId() {
38 if (this.id == null) {
39 this.id = getInteger("channel_id");
40 }
41 return this.id;
42 }
43
44 public String getName() {
45 if (this.name == null) {
46 this.name = getString("name");
47 }
48 return this.name;
49 }
50 }

http://dive4elements.wald.intevation.org