comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/collision/CollisionDbAccess.java @ 9125:820ae41c81b6

Fixed adding missing files for the river bed collision counts selectable in the datacage
author mschaefer
date Wed, 06 Jun 2018 08:02:55 +0200
parents
children
comparison
equal deleted inserted replaced
9124:3f619f8dfa8e 9125:820ae41c81b6
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.collision;
12
13 import org.dive4elements.river.artifacts.D4EArtifact;
14 import org.dive4elements.river.artifacts.access.RangeAccess;
15
16 /**
17 * Access to the database loaded river bed collision artifact data
18 *
19 * @author Matthias Schäfer
20 */
21 final class CollisionDbAccess extends RangeAccess {
22
23 /***** FIELDS *****/
24
25 private Integer id;
26
27 private String name;
28
29
30 /***** CONSTRUCTORS *****/
31
32 public CollisionDbAccess(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("collision_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