Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/SedimentLoadAccess.java @ 8239:b207eeb66edd
(issue1448) Objectify sq_time_interval id.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 08 Sep 2014 19:47:01 +0200 |
parents | 90727aa9913d |
children | 73a4c3c202e5 |
comparison
equal
deleted
inserted
replaced
8238:be3c11bef6e8 | 8239:b207eeb66edd |
---|---|
25 | 25 |
26 private int [][] epochs; | 26 private int [][] epochs; |
27 | 27 |
28 private int [] period; | 28 private int [] period; |
29 | 29 |
30 private int sqTiId; | 30 private Integer sqTiId; |
31 | 31 |
32 public SedimentLoadAccess(D4EArtifact artifact) { | 32 public SedimentLoadAccess(D4EArtifact artifact) { |
33 super(artifact); | 33 super(artifact); |
34 } | 34 } |
35 | 35 |
113 } | 113 } |
114 return unit; | 114 return unit; |
115 } | 115 } |
116 | 116 |
117 /** Returns the selected time interval id */ | 117 /** Returns the selected time interval id */ |
118 public int getSQTiId () { | 118 public Integer getSQTiId () { |
119 if (sqTiId == 0) { | 119 if (sqTiId == null) { |
120 Integer obj = getInteger("sq_ti_id"); | 120 sqTiId = getInteger("sq_ti_id"); |
121 sqTiId = obj == null ? 0 : obj; | |
122 } | 121 } |
123 return sqTiId; | 122 return sqTiId; |
124 } | 123 } |
125 | 124 |
126 } | 125 } |