comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/predefinedinfrastructure/PredefinedInfrastructureAccess.java @ 9377:e8d65cecc950

Renaming (predefined...) and own package for database loaded S-Info series of collisions and infrastructure height
author mschaefer
date Mon, 06 Aug 2018 11:48:49 +0200
parents artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/InfrastructureAccess.java@a165cd63099f
children
comparison
equal deleted inserted replaced
9376:f318359b81a2 9377:e8d65cecc950
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.predefinedinfrastructure;
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 PredefinedInfrastructureAccess extends RangeAccess {
22
23 /***** FIELDS *****/
24
25 private Integer id;
26
27 private String name;
28
29
30 /***** CONSTRUCTORS *****/
31
32 public PredefinedInfrastructureAccess(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