Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java @ 8145:52504fc2cd58
Calculate all single years in given interval but only once.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 27 Aug 2014 15:01:54 +0200 |
parents | a97b2926de5e |
children | e4606eae8ea5 |
rev | line source |
---|---|
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
2 * Software engineering by Intevation GmbH |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
3 * |
5994
af13ceeba52a
Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5863
diff
changeset
|
4 * This file is Free Software under the GNU AGPL (>=v3) |
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
5994
af13ceeba52a
Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5863
diff
changeset
|
6 * documentation coming with Dive4Elements River for details. |
5863
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
7 */ |
4897a58c8746
River artifacts: Added new copyright headers.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
8 |
5831
bd047b71ab37
Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4051
diff
changeset
|
9 package org.dive4elements.river.artifacts.model; |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
10 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
11 import java.util.List; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
12 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
13 import net.sf.ehcache.Cache; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
14 import net.sf.ehcache.Element; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
15 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
16 import org.apache.log4j.Logger; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
17 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
18 import org.hibernate.Session; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
19 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
20 import org.hibernate.SQLQuery; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
21 import org.hibernate.type.StandardBasicTypes; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
22 |
5831
bd047b71ab37
Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4051
diff
changeset
|
23 import org.dive4elements.river.artifacts.cache.CacheFactory; |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
24 |
5831
bd047b71ab37
Repaired internal references
Sascha L. Teichmann <teichmann@intevation.de>
parents:
4051
diff
changeset
|
25 import org.dive4elements.river.backend.SessionHolder; |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
26 |
3442
cd5eb8f5f6f1
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3317
diff
changeset
|
27 |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
28 /** |
3076
5642a83420f2
FLYS artifacts: Removed trailing whitespace.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1897
diff
changeset
|
29 * Factory to access ready-made WKms for other (than computed) 'kinds' of |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
30 * WST-data. |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
31 */ |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
32 public class WKmsFactory |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
33 { |
3442
cd5eb8f5f6f1
Cosmetics, docs.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
3317
diff
changeset
|
34 /** Private logger to use here. */ |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
35 private static Logger log = Logger.getLogger(WKmsFactory.class); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
36 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
37 /** Query to get km and ws for wst_id and column_pos. */ |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
38 public static final String SQL_SELECT_WS = |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
39 "SELECT km, w FROM wst_w_values " + |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
40 "WHERE wst_id = :wst_id AND column_pos = :column_pos"; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
41 |
1729
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
42 /** Query to get name for wst_id and column_pos. */ |
1726
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
43 public static final String SQL_SELECT_NAME = |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
44 "SELECT name " + |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
45 "FROM wst_columns "+ |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
46 "WHERE wst_id = :wst_id AND position = :column_pos"; |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
47 |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
48 /** Query to get name and kind for wst_id and column_pos. */ |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
49 public static final String SQL_SELECT_Q_NAME = |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
50 "SELECT wqr.q, wc.name " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
51 "FROM wst_column_q_ranges wcqr " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
52 "JOIN wst_q_ranges wqr ON wcqr.wst_q_range_id = wqr.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
53 "JOIN wst_columns wc ON wcqr.wst_column_id = wc.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
54 "JOIN wsts ON wc.wst_id = wsts.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
55 "WHERE wc.wst_id = :wst_id AND wc.position = :column_pos"; |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
56 /* |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
57 Test statement: |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
58 SELECT wqr.q, wc.name |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
59 FROM wst_column_q_ranges wcqr |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
60 JOIN wst_q_ranges wqr ON wcqr.wst_q_range_id = wqr.id |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
61 JOIN wst_columns wc ON wcqr.wst_column_id = wc.id |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
62 JOIN wsts ON wc.wst_id = wsts.id |
7884
a97b2926de5e
Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7703
diff
changeset
|
63 WHERE wc.wst_id = 1817 AND wc.position = 29; |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
64 */ |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
65 |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
66 |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
67 |
1892
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
68 /** Query to get name (description) for wst_id. */ |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
69 public static final String SQL_SELECT_WST_NAME = |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
70 "SELECT description from wsts "+ |
1897
cf8a376eb4c9
Fix and use SQL statement to fetch wst-names.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1893
diff
changeset
|
71 "WHERE id = :wst_id"; |
1892
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
72 |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
73 /** Query to get name (description) and kind for wst_id. */ |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
74 public static final String SQL_SELECT_WST_Q_NAME = |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
75 "SELECT wqr.q, wc.name " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
76 "FROM wst_column_q_ranges wcqr " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
77 "JOIN wst_q_ranges wqr ON wcqr.wst_q_range_id = wqr.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
78 "JOIN wst_columns wc ON wcqr.wst_column_id = wc.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
79 "JOIN wsts ON wc.wst_id = wsts.id " + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
80 "WHERE wc.wst_id = :wst_id"; |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
81 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
82 private WKmsFactory() { |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
83 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
84 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
85 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
86 /** |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
87 * Get WKms for given column and wst_id, caring about the cache. |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
88 */ |
1726
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
89 public static WKms getWKms(int column, int wst_id) { |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
90 log.debug("WKmsFactory.getWKms"); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
91 Cache cache = CacheFactory.getCache(StaticWKmsCacheKey.CACHE_NAME); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
92 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
93 StaticWKmsCacheKey cacheKey; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
94 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
95 if (cache != null) { |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
96 cacheKey = new StaticWKmsCacheKey(wst_id, column); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
97 Element element = cache.get(cacheKey); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
98 if (element != null) { |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
99 log.debug("Got static wst values from cache"); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
100 return (WKms)element.getValue(); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
101 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
102 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
103 else { |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
104 cacheKey = null; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
105 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
106 |
1726
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
107 WKms values = getWKmsUncached(column, wst_id); |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
108 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
109 if (values != null && cacheKey != null) { |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
110 log.debug("Store static wst values in cache."); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
111 Element element = new Element(cacheKey, values); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
112 cache.put(element); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
113 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
114 return values; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
115 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
116 |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
117 /** Get name for a WKms wrapped in W, if suitable. */ |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
118 public static String getWKmsNameWWrapped(int wst_id) { |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
119 return getWKmsNameWWrapped(-1, wst_id); |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
120 } |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
121 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
122 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
123 /** Get name for a WKms wrapped in W, if suitable. */ |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
124 public static String getWKmsNameWWrapped(int column, int wst_id) { |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
125 log.debug("WKmsFactory.getWKmsNameWWrapped c/" + column + ", wst_id/" + wst_id); |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
126 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
127 String name = null; |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
128 Session session = SessionHolder.HOLDER.get(); |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
129 |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
130 SQLQuery nameQuery; |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
131 if (column != -1) { |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
132 nameQuery = session.createSQLQuery(SQL_SELECT_Q_NAME); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
133 nameQuery.setInteger("column_pos", column); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
134 } else { |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
135 nameQuery = session.createSQLQuery(SQL_SELECT_WST_Q_NAME); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
136 } |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
137 |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
138 nameQuery.addScalar("q", StandardBasicTypes.DOUBLE) |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
139 .addScalar("name", StandardBasicTypes.STRING); |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
140 nameQuery.setInteger("wst_id", wst_id); |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
141 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
142 List<Object[]> names = nameQuery.list(); |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
143 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
144 if (names.size() >= 1) { |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
145 Object[] row = names.get(0); |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
146 Double q = (Double) row[0]; |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
147 name = (String) row[1]; |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
148 if (q >= 0) { |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
149 name = "W(" + name + ")"; |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
150 } |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
151 } else { |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
152 // This should handle the case of Q = NULL |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
153 if (column != -1) { |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
154 name = getWKmsName(column, wst_id); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
155 } else { |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
156 name = getWKmsName(wst_id); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
157 } |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
158 } |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
159 |
7703
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
160 log.debug("WKmsFactory.getWKmsNameWWrapped c/" + column + |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
161 ", wst_id/" + wst_id + " = name/ " + name); |
5484818087de
(issue1577, issue1494) Wrap wst name depending on Q > 0
Andre Heinecke <aheinecke@intevation.de>
parents:
7686
diff
changeset
|
162 |
7686
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
163 return name; |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
164 } |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
165 |
7484132b2fbb
issue1577: Add W-Wrapping of wst-names in WKmsFactory if kind is one
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
5994
diff
changeset
|
166 |
1892
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
167 /** Get name for a WKms. */ |
1893
1cf36ffe69b5
Fix definition.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1892
diff
changeset
|
168 public static String getWKmsName(int wst_id) { |
1892
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
169 log.debug("WKmsFactory.getWKmsName wst_id/" + wst_id); |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
170 |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
171 String name = null; |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
172 Session session = SessionHolder.HOLDER.get(); |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
173 |
1897
cf8a376eb4c9
Fix and use SQL statement to fetch wst-names.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1893
diff
changeset
|
174 SQLQuery nameQuery = session.createSQLQuery(SQL_SELECT_WST_NAME) |
cf8a376eb4c9
Fix and use SQL statement to fetch wst-names.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1893
diff
changeset
|
175 .addScalar("description", StandardBasicTypes.STRING); |
1892
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
176 nameQuery.setInteger("wst_id", wst_id); |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
177 |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
178 List<String> names = nameQuery.list(); |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
179 if (names.size() >= 1) { |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
180 name = names.get(0); |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
181 } |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
182 |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
183 return name; |
eef657302834
Added function to get name/description of Wst.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1796
diff
changeset
|
184 } |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
185 |
1729
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
186 /** Get name for a WKms. */ |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
187 public static String getWKmsName(int column, int wst_id) { |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
188 log.debug("WKmsFactory.getWKmsName c/" + column + ", wst_id/" + wst_id); |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
189 |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
190 String name = null; |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
191 Session session = SessionHolder.HOLDER.get(); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
192 |
1726
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
193 SQLQuery nameQuery = session.createSQLQuery(SQL_SELECT_NAME) |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
194 .addScalar("name", StandardBasicTypes.STRING); |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
195 nameQuery.setInteger("wst_id", wst_id); |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
196 nameQuery.setInteger("column_pos", column); |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
197 |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
198 List<String> names = nameQuery.list(); |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
199 if (names.size() >= 1) { |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
200 name = names.get(0); |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
201 } |
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
202 |
1729
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
203 return name; |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
204 } |
1726
e3b9164a85fe
Fetch name of static WKms.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1722
diff
changeset
|
205 |
1729
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
206 |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
207 /** |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
208 * Get WKms from db. |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
209 * @param column the position columns value |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
210 * @param wst_id database id of the wst |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
211 * @return according WKms. |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
212 */ |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
213 public static WKms getWKmsUncached(int column, int wst_id) { |
1796
ae6ace900c07
Small loop optimization
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1729
diff
changeset
|
214 |
ae6ace900c07
Small loop optimization
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1729
diff
changeset
|
215 if (log.isDebugEnabled()) { |
ae6ace900c07
Small loop optimization
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1729
diff
changeset
|
216 log.debug("WKmsFactory.getWKmsUncached c/" + column + ", wst_id/" + wst_id); |
ae6ace900c07
Small loop optimization
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1729
diff
changeset
|
217 } |
1729
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
218 |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
219 WKmsImpl wkms = new WKmsImpl(getWKmsName(column, wst_id)); |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
220 |
2e5ebdeb8af9
Give StaticWKmsArtifacts proper names, and pre-deselect them.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
1726
diff
changeset
|
221 Session session = SessionHolder.HOLDER.get(); |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
222 SQLQuery sqlQuery = session.createSQLQuery(SQL_SELECT_WS) |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
223 .addScalar("km", StandardBasicTypes.DOUBLE) |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
224 .addScalar("w", StandardBasicTypes.DOUBLE); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
225 sqlQuery.setInteger("wst_id", wst_id); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
226 sqlQuery.setInteger("column_pos", column); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
227 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
228 List<Object []> results = sqlQuery.list(); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
229 |
1796
ae6ace900c07
Small loop optimization
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1729
diff
changeset
|
230 for (int i = 0, N = results.size(); i < N; i++) { |
1722
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
231 Object[] row = results.get(i); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
232 wkms.add((Double) row[0], (Double) row[1]); |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
233 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
234 |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
235 return wkms; |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
236 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
237 } |
fb4fb1c67c35
Added WKmsFactory.
Felix Wolfsteller <felix.wolfsteller@intevation.de>
parents:
diff
changeset
|
238 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |