Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerMetaData.java @ 875:5e9efdda6894
merged gnv-artifacts/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:56 +0200 |
parents | dfd02f8d3602 |
children | 04967dc9c83f |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.state.layer; | |
5 /** | |
6 * Beanclass for storing Metainformation to create Shapefiles or Layer | |
7 * in an WMS-Output. | |
8 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
9 * | |
10 */ | |
11 public class LayerMetaData { | |
12 | |
13 private String table = null; | |
14 private String geometryType = null; | |
15 private String where = null; | |
16 private String columns = null; | |
17 private String templateID = null; | |
18 private String[] queryValues = null; | |
19 private String geometryWKT = null; | |
20 | |
21 /** | |
22 * Constructor | |
23 * @param table the Name of the Databasetable the Data should be fetched from. | |
24 * @param geometryType the Geometrytype of the Layer | |
25 * @param where the Query-Statement which should be used to fetch the Data. | |
26 * @param columns the Columnnames which should be fetched to generate the | |
27 * Shapefile | |
28 * @param templateID the Id of the Template which should be used to create | |
29 * the Mapfileentry. | |
30 * @param queryValues the Values that should be used to Query the data | |
31 * @param geometryWKT The Geometry represented by as an WKT to Query the Data. | |
32 */ | |
33 public LayerMetaData(String table, String geometryType, String where, | |
34 String columns, String templateID, | |
35 String[] queryValues,String geometryWKT) { | |
36 super(); | |
37 this.table = table; | |
38 this.geometryType = geometryType; | |
39 this.where = where; | |
40 this.columns = columns; | |
41 this.templateID = templateID; | |
42 this.queryValues = queryValues; | |
43 this.geometryWKT = geometryWKT; | |
44 } | |
45 | |
46 /** | |
47 * Returns the Geometry WKT | |
48 * @return the Geometry WKT | |
49 */ | |
50 public String getGeometryWKT() { | |
51 return geometryWKT; | |
52 } | |
53 | |
54 /** | |
55 * Returns the Name of the Databasetable the Data should be fetched from. | |
56 * @return the Name of the Databasetable the Data should be fetched from. | |
57 */ | |
58 public String getTable() { | |
59 return table; | |
60 } | |
61 | |
62 /** | |
63 * Returns the Geometrytype of the Layer. | |
64 * @return the Geometrytype of the Layer. | |
65 */ | |
66 public String getGeometryType() { | |
67 return geometryType; | |
68 } | |
69 | |
70 /** | |
71 * Returns the Query-Statement which should be used to fetch the Data. | |
72 * @return the Query-Statement which should be used to fetch the Data. | |
73 */ | |
74 public String getWhere() { | |
75 return where; | |
76 } | |
77 | |
78 /** | |
79 * Returns the Columnnames which should be fetched to generate the | |
80 * Shapefile | |
81 * @return the Columnnames which should be fetched to generate the | |
82 * Shapefile | |
83 */ | |
84 public String getColumns() { | |
85 return columns; | |
86 } | |
87 | |
88 /** | |
89 * Returns the Id of the Template which should be used to create | |
90 * the Mapfileentry. | |
91 * @return the Id of the Template which should be used to create | |
92 * the Mapfileentry. | |
93 */ | |
94 public String getTemplateID() { | |
95 return templateID; | |
96 } | |
97 | |
98 /** | |
99 * Returns the Values that should be used to Query the data. | |
100 * @return the Values that should be used to Query the data. | |
101 */ | |
102 public String[] getQueryValues() { | |
103 return queryValues; | |
104 } | |
105 | |
106 } |